View Full Version : PHP Broken?
codek 12-23-2004, 06:11 AM Hi,
It seems my PHP install was broken by last nights update to fix the current round of security holes.
Now my php sites are just blank.
How can i figure out whats going on? there's nothing in the apache error_log ... Does php log elsewhere?
The box is Linux running CPanel.
Thanks!
Dan
I have the exact same problem. Who is your host?
codek 12-23-2004, 06:17 AM I manage the box myself... So i'm looking for a solution!
codek 12-23-2004, 06:29 AM ah i get this:
PHP Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0
???
that dir exists fine!?
Goldwing 12-23-2004, 06:32 AM Did you update Zend after installing PHP
/scripts/installzendopt
codek 12-23-2004, 06:42 AM no, but i dont think that made any difference
I've fixed the problem with the permissions on the session dir, but now im getting undefined function mysql_connect()
!!!
Wehodef 12-23-2004, 06:44 AM Hi,
Upgrade Mysql ;)
codek 12-23-2004, 06:47 AM grr, i dont understand why an overnight update has removed mysql!
I'm just rebuilding apache, i've ticked mysql module, see if that works.
Where do i go in whm to upgrade mysql?
codek 12-23-2004, 06:54 AM ok rebuilding apache sorted it.
Shame the cp didnt tell me i needed to do that! Grr
Its annoying that an overnight update can make such a bodge job of it.
Still not clear why php 4.3.9 didnt continue working tho!
TR Seeks 12-23-2004, 07:06 AM you need to update zend for the update to work
codek 12-23-2004, 08:19 AM well if that was the case, then its a bug in cpanel's update procedure.
It shouldnt have left me with a broken install.
Goldwing 12-23-2004, 08:53 AM Originally posted by codek
well if that was the case, then its a bug in cpanel's update procedure.
It shouldnt have left me with a broken install.
The new PHP needs to be compiled into Apache this is not part of the update process. Where many fell down is they never updated zend after updating PHP
Cpanel should not be relied upon to admin a server, although Cpanel still shows 4.3.9 as current version which could be confusing.
codek 12-23-2004, 09:16 AM Cpanel should not be relied upon to admin a server, although Cpanel still shows 4.3.9 as current version which could be confusing. [/B]
Yup, thats exactly what confused me - Logging in it said everything was up to date when it wasnt!
I still dont think it should break your configuration - fair enough telling me it needs manual intervention, but in doing that it broke the existing setup. not nice!
boeki 12-23-2004, 09:26 AM it's not update php then zend. it's the other way around. it should be.
/scripts/updatenow
/scripts/installzendopt
/scripts/easyapache
Goldwing 12-23-2004, 09:41 AM Originally posted by boeki
it's not update php then zend. it's the other way around. it should be.
/scripts/updatenow
/scripts/installzendopt
/scripts/easyapache
Hmmmm......
AFAIK
Installzendopt when run looks at the PHP installed on the server and installs the appropriate version so if you have not updated PHP then the wrong install will be carried out.
Even doing this manually PHP needs to be installed before Zend can be so I can see how your method would work.
boeki 12-23-2004, 09:47 AM i think that's what the /scripts/updatenow does. it updates the script that installs zend to install the 2.5.7 version.
definitely php has to be installed first if it does not exist but it being cpanel, of course it's already installed. so updating zend first before php should work out okay.
and, hey, with this method, we don't have any of the problems that have sprouted up everywhere after hosts have updated their php to 4.3.10.
|