Forums / Installing on a Linux/Unix Server / cPanel says PHP 5. server_info says PHP 4. What's up with that?

cPanel says PHP 5. server_info says PHP 4. What's up with that?

Locked

Views: 1,275

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
13 Oct 2010, 8:35 PM
#1
ts232 avatar

ts232

Zen Follower

Join Date:
May 2006
Posts:
167
Plugin Contributions:
0

cPanel says PHP 5. server_info says PHP 4. What's up with that?

My cart has been humming along for some time now without problem, a moderately modded 1.3.7.1. When installing the Backup Zencart mod I found an error that a PHP class was not being found (RecursiveIteratorIterator). I checked my cPanel for the host and it shows that the system is using PHP 5, but when I checked from within the Zen admin using system_info.php it says I am using 4.4.9.

Any ideas what could be causing this? Possibly related, there are numerous times in the admin that I will select an item (view a report, etc) and I will get kicked back to the admin login. The page loads fine after logging in. This is not a case of session time out, it can happen immediately after a regular log in. I am guessing this might have something to do with different parts of Zen activating different PHP versions?

Any suggestions for how to get Zen to recognize that I have PHP 5 running on the server more consistently?

--
Author of Stock vs. Sales Report

13 Oct 2010, 8:50 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: cPanel says PHP 5. server_info says PHP 4. What's up with that?

Zen Cart is just reporting what PHP is telling it.

You need to sort out the version issue with your hosting company.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

13 Oct 2010, 10:14 PM
#3
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: cPanel says PHP 5. server_info says PHP 4. What's up with that?

With cPanel you do have the ability to run different versions of PHP side-by-side, but one of them will be the main (default) version. It's possible that you chose PHP 4 whilst PHP 5 is the main (default) version.

p.s. You need to upgrade from 1.3.7

Vger