cooldude7273

Well-Known Member
Jan 11, 2004
357
0
166
Roswell, GA
Hi!

I recently upgraded to php 5.0.4 from 4.4.0, however, cPanel is still showing that it is 4.4.0 is what is installed. I know this is not true because a php info file of mine does confirm that it is 5.0.4 that is running.

Any ideads on what is going on?

Thanks.
 

elix

Well-Known Member
Jan 18, 2005
67
0
156
Have you tried restarting the cPanel service?
 

cooldude7273

Well-Known Member
Jan 11, 2004
357
0
166
Roswell, GA
ZeonFx.com said:
Have you tried restarting the cPanel service?
Could you refresh my memory on the command for that? It's been a long time since I have had to do that!
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
31
473
Go on, have a guess
Are you sure that you're not looking at the cPanel/WHM version of php (which will be v4) as opposed to the one the clients use? They are two different binaries, so in phpmyadmin for example, it will show v4.40.
 

cooldude7273

Well-Known Member
Jan 11, 2004
357
0
166
Roswell, GA
I'm looking under "General server information:" on the main cPanel page.
 

Bakadesu

Member
Feb 11, 2005
17
0
151
I am also having the same problem. I upgraded php 4 to php5 in WHM. The client's cpanel shows php4 while phpinfo() and whm show php5. I tried restarting apache and cpanel with no luck. I'm running apache 1.3+
I've searched every where and I can't find the solution posted anywhere. People just indicate that they got it working.
 

akhthar

Member
May 4, 2004
23
0
151
bangalore
Do run the following commands

which php

/usr/bin/php -v

/usr/local/bin/php -v

You may be able to find the problem.
 

Bakadesu

Member
Feb 11, 2005
17
0
151
(ok, bad joke)

Anyway, I got it working

I just used:
/scripts/upcp --force

after:
1) I upgraded to the latest EDGE build (through cPanel)
2**) (restarted cpanel in root) # /etc/rc.d/init.d/cpanel restart

**Not sure if this was needed

And now cPanel is displaying the correct php 5.0+ version.

Thanks cooldude7273, linux-image, & chirpy!
 

Website Rob

Well-Known Member
Mar 23, 2002
1,501
1
318
Alberta, Canada
cPanel Access Level
Root Administrator
Thanks for sharing your troubleshooting methods, Bakadesu. Always good to provide that type information as there will usually be others in the same situation, so seeing how one person fixed a problem is always helpful.

Now the question is, what version of PHP shows in a 'phpinfo' page, is it the correct version and have you noticed any Client PHP scripts not working?
 
Last edited:

Bakadesu

Member
Feb 11, 2005
17
0
151
It appears to be the correct version. The only clients that complain are the ones that scripted with globals on. But other than that, everything seems okay. Sorry for the late reply.