Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 17
  1. #1
    Member
    Join Date
    Jul 2003
    Posts
    257

    Default php sessions errors after PHP 4.4.1 and apache 1.3.4 upgrade

    Hi All,

    I'm running in Safe mode. No problems there.

    I've upgraded the Apache server with php to latest and now users complain about session issues.

    Aparently there is a problem with /tmp denying them write permissions Safe Mode restrictions in effect errors.

    Any suggestion?

    my /tmp is on a separate partition (has been like that for 4 months with no prob).

    /dev/lvmvol/tmp 4.0G 104M 3.7G 3% /tmp

    This is how the /tmp permission settings are:

    drwxrwxrwt 8 root root 69632 Nov 9 15:22 tmp

    Any pointers?

    -Alon

  2. #2
    Member
    Join Date
    Jun 2003
    Posts
    26

    Default

    I'm having the same problem, haven't figured out what the problem is yet though.

  3. #3
    Member
    Join Date
    Jan 2005
    Posts
    1,880

    Default

    It would probably be best for both of you to first post your OS version, Apache version and PHP version. I'm assuming you're both on Apache 1.3.4 and PHP 4.4.0, but what OS?

    This may both help to narrow the problem down and alert others with the same configuration to check their systems too.

    I'm on CentOS 3.6, Apache 1.3.4 and PHP 4.4.0 + 5.0.4 and I'm not experiencing this session issue and /tmp is being written to just fine by PHP scripts.

    That might not be too useful in itself, as it does nothing to solve the problem, however if you share your configurations you might be able to spot some common issue that points to the problem.

    On the assumption that Apache 1.3.4 is not the root cause here, as it causes me no woes, it might be the PHP version. If you're on 4.4.1, you could try downgrading to 4.4.0 as I've seen other threads of late that mention issues with 4.4.1 (not that I can find them now!).

  4. #4
    Member
    Join Date
    Jun 2003
    Posts
    19

    Default

    I'm facing the same problem! Here is my post: http://forums.cpanel.net/showthread.php?t=46280

    I had a problem with swap (being of zero size). I solved that problem, but not sure if it is related.

    I'm hosting lots of php scripts for customers and I'm in deep trouble already

    Edit: I'm running WHM 10.1.0 cPanel 10.2.0-R82 RedHat Enterprise 3 i686 apache 1.3.34 PHP 4,3.10 and tried 4.3.11
    Last edited by mss6; 11-09-2005 at 11:16 AM.

  5. #5
    Member
    Join Date
    Jun 2003
    Posts
    26

    Default

    Too many complaints to keep it in production, I'm downgrading now, hopefully all will go back to normal. For reference though:

    WHM 10.8.0 cPanel 10.8.1-C29
    RedHat Enterprise 3 i686 - WHM X v3.1.0

    RHE3, Apache 1.3.34

  6. #6
    Member
    Join Date
    Jun 2003
    Posts
    19

    Default

    This problem has nothing to do with PHP 4.x. I'm using 4.3.11 and facing the same trouble.

  7. #7
    Member
    Join Date
    Jan 2005
    Posts
    1,880

    Default

    Quote Originally Posted by mss6
    This problem has nothing to do with PHP 4.x. I'm using 4.3.11 and facing the same trouble.
    Regarding your MySQL related post in http://forums.cpanel.net/showthread.php?t=46280, what permissions do you have on /tmp?

  8. #8
    Member
    Join Date
    Jun 2003
    Posts
    19

    Default

    Quote Originally Posted by webignition
    Regarding your MySQL related post in http://forums.cpanel.net/showthread.php?t=46280, what permissions do you have on /tmp?
    Who changed /tmp permission on my server?!

    I solved it with chmod 777 /tmp and it is working now

    Thank you webignition

  9. #9
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    /tmp should always be chmod 1777 and not just 777 otherwise you're opening yourself up to serious server compromises.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  10. #10
    Member
    Join Date
    Jul 2003
    Posts
    257

    Default

    My OS is RH9
    Apache 1.3.34 and PHP 4.4.1 (both are stated in the title).
    I've upgraded from PHP 4.3.11 and Apache 1.3.33

    The errors I'm getting are:

    I am running in Safe Mode On,. but that shouldn't have an effect on /tmp as it is supposed to be available for sessions.

    Warning: session_save_path(): SAFE MODE Restriction in effect. The script whose uid is 32033 is not allowed to access owned by uid 0 in

    Well.. If I run phpinfo(); I see the correct value:

    session.save_path /tmp /tmp

    -Alon.

  11. #11
    Member
    Join Date
    Jun 2003
    Posts
    26

    Default

    Quote Originally Posted by chirpy
    /tmp should always be chmod 1777 and not just 777 otherwise you're opening yourself up to serious server compromises.
    That's what finally fixed it for me. I noticed that it was changed as well and re-upgraded php and it seems to be working well. I had to also turn off versioning because Zend stopped working with php 4.4.1

  12. #12
    Member
    Join Date
    Jul 2003
    Posts
    257

    Default

    Quote Originally Posted by Cloak
    That's what finally fixed it for me. I noticed that it was changed as well and re-upgraded php and it seems to be working well. I had to also turn off versioning because Zend stopped working with php 4.4.1

    Could Zend be the problem?
    I've had the Zend Performance Suite until now and of course it is dead now.
    I just purchased the Platform1 from them which will support 4.4.1 but haven't installed it yet.
    I don't think this is an issue, but I could be wrong.

    -Alon.

  13. #13
    Member
    Join Date
    Jan 2005
    Posts
    1,880

    Default

    Quote Originally Posted by mss6
    Who changed /tmp permission on my server?!

    I solved it with chmod 777 /tmp and it is working now

    Thank you webignition
    Good to hear that this fixed it for you and everyone else for whom it worked!

    However, as Chirpy says, 1777 is preferable to 0777 for /tmp permissions.

  14. #14
    Member
    Join Date
    Jul 2003
    Posts
    257

    Default

    In OsCommerce:

    "This is a bugfix in php 4.4.0. Previously session_save_path was not subject to safe_mode restrictions."

    http://il.php.net/manual/he/function...-save-path.php

    I've now changed the OsCommerce sessions to point to /home/user/tmp
    That solves the problem.

    Thanks,

    -Alon.

  15. #15
    Member rs-freddo's Avatar
    Join Date
    May 2003
    Location
    Australia
    Posts
    836
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Radiohead posted a nice fix for osCommerce, search...
    Michael

Similar Threads & Tags
Similar threads

  1. PHP upgrade causing session errors
    By iToke in forum cPanel and WHM Discussions
    Replies: 16
    Last Post: 04-19-2012, 03:20 AM
  2. Apache/PHP Lost sessions and WHM problems
    By subn3t in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 02-25-2008, 12:31 PM
  3. Apache and PHP upgrade
    By nitaish in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 01-05-2007, 10:20 AM
  4. Apache and PHP Upgrade
    By netxs in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-27-2006, 02:16 PM
  5. PHP Errors after upgrade to 7.2
    By bonnmac in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 07-16-2003, 03:17 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube