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 after migration on new disk

Discussion in 'General Discussion' started by testlog_4u, Nov 26, 2007.

  1. testlog_4u

    testlog_4u Active Member

    Joined:
    Sep 17, 2007
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    Hello,

    We had a hard disk failure issue on our server so we have to get it replaced by a new one. We moved all files to the new hard disk. Everything seems to be working fine on cPanel/WHM except that all php programs including drupal, fantastico, squirrel mail and Horde etc are generating some php errors. This was alright before we got the hard disk replaced. Can someone please guide me how do I resolve this. Yet I am not getting any fix for this :(

    I am getting errors like this in Fantastico, Squirrel mail:

    ================================================== =============
    Warning: session_start() [function.session-start]: open(/tmp/sess_37394d8b5a1dd541d59c9f95805df474, O_RDWR) failed: Read-only file system (30) in /usr/local/cpanel/base/3rdparty/squirrelmail/functions/global.php on line 405

    Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /usr/local/cpanel/base/3rdparty/squirrelmail/functions/global.php:405) in /usr/local/cpanel/base/3rdparty/squirrelmail/functions/global.php on line 405

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /usr/local/cpanel/base/3rdparty/squirrelmail/functions/global.php:405) in /usr/local/cpanel/base/3rdparty/squirrelmail/functions/global.php on line 405

    Warning: Cannot modify header information - headers already sent by (output started at /usr/local/cpanel/base/3rdparty/squirrelmail/functions/global.php:405) in /usr/local/cpanel/base/3rdparty/squirrelmail/functions/i18n.php on line 335
    ================================================== =============


    Thank you,
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    The bottom 3 errors are the result of that first error message printing - so you only have one error message complaining about permissions on /tmp. You may wish to investigate the permissions on /tmp and ensure PHP scripts can write to /tmp. PHP scripts typically rely on /tmp to store session data, which could explain why Drupal and other PHP scripts served by Apache rather than cpsrvd (which serves cPanel, WHM and webmail) are also experiencing issues.
     
  3. testlog_4u

    testlog_4u Active Member

    Joined:
    Sep 17, 2007
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    Thanks

    Hello David,

    Thanks for it. The issue is resolved for errors on Fantastico, Squirrel Mail etc but I am facing a little issue here. I am not able to change paasswords any of users in the server through WHM. Whenever I clicked on 'change' button in WHM in password modification tool its gone loading and loading and it is never come back with message of success. not getting any point to investigate this...

    Thank you,
     
  4. cbwass

    cbwass Well-Known Member

    Joined:
    Mar 29, 2002
    Messages:
    148
    Likes Received:
    0
    Trophy Points:
    16
    Try running '/scripts/upcp --force' in case somethings missing in the Cpanel install.
     
  5. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    If that doesn't fix it, check which version of Perl you are running by typing perl -v via SSH. If you are running 5.8.8 then you are alright, otherwise you may want to consider upgrading to 5.8.8.

    If you are running 5.8.8 and are experiencing this issue after a upcp, doing /scripts/checkperlmodules via SSH as root may help.
     
    #5 cPanelDavidG, Nov 29, 2007
    Last edited: Nov 29, 2007
  6. testlog_4u

    testlog_4u Active Member

    Joined:
    Sep 17, 2007
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    Sorry for delay in reply

    Hello David and cbwass,

    I tried with upcp --force before post this thread. David, I have checked Perl version and done /scripts/checkperlmodules but I am not able to reset passwords of users through WHM :(

    ---------------------------------------------
    root@server [~]# perl -v

    This is perl, v5.8.8 built for i686-linux

    Copyright 1987-2006, Larry Wall

    Perl may be copied only under the terms of either the Artistic License or the
    GNU General Public License, which may be found in the Perl 5 source kit.

    Complete documentation for Perl, including FAQ lists, should be found on
    this system using "man perl" or "perldoc perl". If you have access to the
    Internet, point your browser at http://www.perl.org/, the Perl Home Page.
    ---------------------------------------------

    Thank you for your help,
     
    #6 testlog_4u, Dec 5, 2007
    Last edited: Dec 5, 2007
  7. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    I'd recommend submitting a support ticket to your cPanel licensing provider for assistance regarding this issue.
     
Loading...

Share This Page