The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Php Errors

Discussion in 'General Discussion' started by fusioncroc, Feb 19, 2005.

  1. fusioncroc

    fusioncroc Well-Known Member

    Joined:
    Sep 28, 2004
    Messages:
    261
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    U.K.
    Just today i started getting these errors come up randomly

    Fatal error: session_start(): Failed to initialize storage module: user (path: /tmp)
    tmp is chmoded to 777 and has sufficent permisions so im not sure what it could be i heard this could be something to do with a bug in php 4.3.10
    what does everyone else think ?
     
  2. fusioncroc

    fusioncroc Well-Known Member

    Joined:
    Sep 28, 2004
    Messages:
    261
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    U.K.
    EDIT: I recompiled MySQL 4.1.10 now it all works
     
    #2 fusioncroc, Feb 19, 2005
    Last edited: Feb 19, 2005
  3. fusioncroc

    fusioncroc Well-Known Member

    Joined:
    Sep 28, 2004
    Messages:
    261
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    U.K.
    EDIT: ALL FIXED :cool: ( except those annoying php errors that come up every couple of minutes )
     
    #3 fusioncroc, Feb 19, 2005
    Last edited: Feb 19, 2005
  4. fusioncroc

    fusioncroc Well-Known Member

    Joined:
    Sep 28, 2004
    Messages:
    261
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    U.K.
    seems to be fixed but thats what it looked like earlier everytime i try to change the mysql root pass i get errors and i cant see the databases under manage mysql , users can see them in phpmyadmin though

    and yesterday i could'nt find the mirrors for a /scripts/mysqlup so i got 4.1.10 from the rpm's
     
  5. fusioncroc

    fusioncroc Well-Known Member

    Joined:
    Sep 28, 2004
    Messages:
    261
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    U.K.
    getting the php errors again ( /tmp is chmod'ed to /tmp sometimes when i empty it works for 1 minute )

    this is from ls -al /tmp


    total 43
    drwxrwxrwx 5 carl carl 31744 Feb 20 15:24 ./
    drwxr-xr-x 23 root root 4096 Feb 20 01:27 ../
    -rwxrwxrwx 1 mailnull mail 0 Feb 20 15:01 exim_deny.lock*
    -rwxrwxrwx 1 root root 1611 Feb 20 15:24 horde.log*
    drwxrwxrwx 2 root root 1024 Feb 20 00:14 .ICE-unix/
    drwxrwxrwx 2 bin bin 1024 Feb 20 00:15 .iroha_unix/
    drwxr-xr-x 2 root root 2048 Dec 20 09:43 ixed/
    lrwxrwxrwx 1 root root 30 Feb 20 15:23 mysql.sock -> ../../var/lib/mysql/mysql.sock=
    -rwxrwxrwx 1 nobody nobody 0 Feb 20 15:22 sess_25f6fa9328dced2d6fe190e091cf0ab7*
    -rwxrwxrwx 1 nobody nobody 0 Feb 20 15:22 sess_6ba272dd9e9d49b0e42a018d28189471*
    -rwxrwxrwx 1 nobody nobody 0 Feb 20 15:24 sess_736becc16eb6a7b2f901ae5993d05820*
    -rwxrwxrwx 1 nobody nobody 65 Feb 20 15:25 sess_7b1a9048d7df20a42084bd146010348d*


    should /tmp be chowned to nobody ?
     
    #5 fusioncroc, Feb 20, 2005
    Last edited: Feb 20, 2005
  6. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Make sure that you chmod 1777 - it's important that you have the sticky bit set:

    chmod 1777 /tmp

    It should be owned by root:root.

    Edit: I've also seen problems if you switch phpsuexec on or off. If you have, delete any and all session files in /tmp too.
     
  7. fusioncroc

    fusioncroc Well-Known Member

    Joined:
    Sep 28, 2004
    Messages:
    261
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    U.K.
    I done what you said but i still get the errors ite getting worse and worse i've tryied to donwgrade to 4.3.9 but i still get errors


    Fatal error: session_start(): Failed to initialize storage module: user (path: /tmp) in /home/lynjay13/public_html/login.php on line 1
     
  8. fusioncroc

    fusioncroc Well-Known Member

    Joined:
    Sep 28, 2004
    Messages:
    261
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    U.K.
    chirpy how much would it cost for you to look at it ?
     
  9. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    I'll PM you.
     
  10. fusioncroc

    fusioncroc Well-Known Member

    Joined:
    Sep 28, 2004
    Messages:
    261
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    U.K.
    thanks chirpy
     
  11. fusioncroc

    fusioncroc Well-Known Member

    Joined:
    Sep 28, 2004
    Messages:
    261
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    U.K.
    i think its working now but im not sure this is what i did :

    session.use_trans_sid = 1 -> session.use_trans_sid = 0 now it seems to be working properly

    edit: working better but i still get the errors every 30 minutes or so
    also for somewierd reason mysql wont show as up in service status
    it just shows mysql 4.1.10 ( standard) as down even though mysql driven sites work
     
    #11 fusioncroc, Feb 20, 2005
    Last edited: Feb 20, 2005
  12. fusioncroc

    fusioncroc Well-Known Member

    Joined:
    Sep 28, 2004
    Messages:
    261
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    U.K.
    now i have 539 emails to go though( mysql and eximstats) as i forgot about making sure chkserv shows them up.

    edit: i got eximstats and spamd to show back up but it does'nt reckonise the mysql for some reason i might go down to 4.0 change root password -> back up to 4.1 but last time i tryied from one of the mysql mirror's i got 404's
     
    #12 fusioncroc, Feb 21, 2005
    Last edited: Feb 21, 2005
  13. fusioncroc

    fusioncroc Well-Known Member

    Joined:
    Sep 28, 2004
    Messages:
    261
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    U.K.
    If anybody could fix it i'm willing to pay pm me or email sales@fusioncroc.com if you can fix the mysql and php / apache

    edit: i was going to pay up to £50 but as now all of my customers are wanting refunds and everything now i cant realy afford to this month so i dunno what to do :mad:
     
    #13 fusioncroc, Feb 21, 2005
    Last edited: Feb 21, 2005
  14. Izzee

    Izzee Well-Known Member

    Joined:
    Feb 6, 2004
    Messages:
    469
    Likes Received:
    0
    Trophy Points:
    16
    Damn frustrating when things like this happen and you seem to be the only person who is affected.
    I did a google for "Failed to initialize storage module: user (path: /tmp)" and came up with a few possible answers, one of which is here.
    It might take some reading but could prove to be useful.

    http://bugs.php.net/bug.php?id=25876

    Good luck - and ask your clients for a tad more time to fix this error as it may well be a new bug etc etc blah blah.
     
  15. fusioncroc

    fusioncroc Well-Known Member

    Joined:
    Sep 28, 2004
    Messages:
    261
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    U.K.
    izzee thats the php bug report me and chirpy both found i tryied everything listed there it helps slightly but after a while its back to the errors the only thing that helps is stopping apache and starting it again as restarting pops up with a error message.

    by the way i seached google already and tryied everything and no fix yet :mad:
     
  16. DigitalN

    DigitalN Well-Known Member

    Joined:
    Sep 23, 2004
    Messages:
    420
    Likes Received:
    1
    Trophy Points:
    18
    Not sure this will help , but have you tried unmounting /tmp and running fsck on that partition or rebooting the server? (assuming it is a seperate /tmp partition)

    Have you checked inodes are actually avialable on /tmp ?

    # df -i /tmp

    What do the following give you

    # ulimit -a

    # dmesg

    # grep 'Oops' /var/log/messages

    I could think of a million things, but only 1 will be right.

    Have you tried to recompile apache/php after reinstalling mysql ?

    Have you tried to change the location for

    session.save_path = "/tmp"

    within your php.ini to something like

    session.save_path = "/usr/local/session/tmp"
     
    #16 DigitalN, Feb 22, 2005
    Last edited: Feb 22, 2005
  17. fusioncroc

    fusioncroc Well-Known Member

    Joined:
    Sep 28, 2004
    Messages:
    261
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    U.K.
    i tryied that and it did'nt work i think its a issue with either apache or php as chirpy just helped me re compile from scratch and its working fine now and my other friend fixed the mysql so everything is fixed now :)
     
Loading...

Share This Page