Forums / Installing on a Linux/Unix Server / Install of 1.3.0.1 complains about php4 version 4.3.10-16

Install of 1.3.0.1 complains about php4 version 4.3.10-16

Locked

Started by zencartuser on 10 May 2006, 1:30 PM · Views: 7,248

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
10 May 2006, 1:30 PM
#1
zencartuser avatar

zencartuser

New Zenner

Join Date:
Apr 2006
Posts:
6
Plugin Contributions:
0

Install of 1.3.0.1 complains about php4 version 4.3.10-16

Hello,

I'm running zc_install from 1.3.0.1 on a box running the Debian unix stable release. It reports:
Warning: Problems Found

  • PHP Version not supported

catalog-1.3.0.1/zc_install/techsupp.php reports:

Server Info
* Webserver: Apache/1.3.33 Ben-SSL/1.55 (Debian GNU/Linux) PHP/4.3.10-16
* Server Free Disk Space Reported = 0.67 GB
* MySQL Version Reported =
* PHP MySQL Support = ON
* PHP PostGres SQL Support = OFF
PHP Info
* PHP version: 4.3.10-16

I'd prefer not to upgrade the php4 because I'd have to go to version 4.4.2. FWIW the mysql installed is 4.0.24-10sarge1.

Is it normal for the "MySQL Version" to go unreported?
How can I complete this install?

Thanks.

10 May 2006, 1:47 PM
#2
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: Install of 1.3.0.1 complains about php4 version 4.3.10-16

I'd prefer not to upgrade the php4 because I'd have to go to version 4.4.2.

This is what I would recommend actually, since PHP v4.3.10 could have some missing routines in order to be fully compatible with the latest versions of mySQL that has been released lately.

10 May 2006, 3:37 PM
#3
zencartuser avatar

zencartuser

New Zenner

Join Date:
Apr 2006
Posts:
6
Plugin Contributions:
0

Re: Install of 1.3.0.1 complains about php4 version 4.3.10-16

Thanks, but I was hoping to avoid upgrading several packages and I'd prefer not to move on to the latest version 5 of mysql. If I upgrade the php4 to 4.4.2-1 I'd have to also upgrade the apache web server, the curl library, libc6 and others; in total about 20 packages. I'm sure it would all work but it's not my first choice for a publicly available machine :-)

The message said "consider": "PHP Version = 4.3.10-16 {You should consider upgrading!}".
Do we know that Zen Cart won't work, or can't be made to work, with 4.3.10? What fails?

Thanks.

10 May 2006, 3:41 PM
#4
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: Install of 1.3.0.1 complains about php4 version 4.3.10-16

What fails?

The compatibility between an older version of PHP and recent releases of mySQL. Which is why, a PHP upgrade would strongly be advised in order have great stability within zencart (especially if you intend to install mySQL v5). Otherwise, you could end up with desastrous results. ;)

10 May 2006, 5:09 PM
#5
zencartuser avatar

zencartuser

New Zenner

Join Date:
Apr 2006
Posts:
6
Plugin Contributions:
0

Re: Install of 1.3.0.1 complains about php4 version 4.3.10-16

TheOracle:

The compatibility between an older version of PHP and recent releases of mySQL.

Thanks for the prompt replies Oracle :-), but since the Zen Cart installation isn't yet recommending mysql v5, and since both php4 v4.3.10-16 and mysql v4.0.24-10 are in Debian stable there are unlikely to be compatibility issues between them. But, naturally, I could be wrong ... and since Zen Cart isn't being maintained in Debian I am doubtless unaware of untold version-compatibility horrors.

The immediate problem here seems to be that Zen Cart doesn't recognise Debian's numbering scheme: corrections to php4 version 4.3.10 would not be released as version 4.3.11, instead as 4.3.10-1 or, in the case of multiple corrections to php4, 4.3.10-16 :-).

From a websearch of the old Zen Cart forum I found the fix:

a.polli
Posted: May 2 2006, 03:39 PM
QUOTE (a.polli @ May 2 2006, 02:34 PM)
I have a similar problem with zencart V1.3.0.1

Apache/1.3.33 (Debian GNU/Linux) PHP/4.3.10-16

I have only the 'PHP Version not supported' warning
and if I click 'Install' I am redirect to the same page and the installation don't proceed.

in zc_install/includes/modules/pages/inspect/header_php.php
at the PHP Version Check
if the version is not correct it raises an error
then it can't proceed to the system_setup page

I change

elseif (phpversion() < "4.3.2" && phpversion() != "4.3.11" && phpversion() != "4.3.10" ) {

with

elseif (phpversion() < "4.3.2" && phpversion() != "4.3.11" && phpversion() != "4.3.10" && phpversion() != "4.3.10-16") {

and now I can install zen cart!

10 May 2006, 5:14 PM
#6
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: Install of 1.3.0.1 complains about php4 version 4.3.10-16

Ah ! I understand what you were trying to do now. Glad you found the answer you were looking for.

10 May 2006, 6:11 PM
#7
lib99 avatar

lib99

Totally Zenned

Join Date:
Dec 2004
Location:
New York, USA
Posts:
965
Plugin Contributions:
0

Re: Install of 1.3.0.1 complains about php4 version 4.3.10-16

I have Zen Cart v1.3.0.1 running fine on a Fedora box with the following:

Server OS: Linux 2.6.5-1.358
Database: MySQL 3.23.58
PHP Version: 4.3.10 (Zend: 1.3.0)
HTTP Server: Apache/2.0.51 (Fedora)

It's a clean install used for sandboxing. Not sure why you have problems with the same PHP version. :huh:

10 May 2006, 6:15 PM
#8
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: Install of 1.3.0.1 complains about php4 version 4.3.10-16

Database: MySQL 3.23.58

Because you have a lower version of mySQL with a lower version of PHP 4 (almost last year if it isn't a whole year already. ;)).

10 May 2006, 6:27 PM
#9
raquel avatar

raquel

New Zenner

Join Date:
Mar 2006
Location:
Northern California
Posts:
36
Plugin Contributions:
0

Re: Install of 1.3.0.1 complains about php4 version 4.3.10-16

lib99:

I have Zen Cart v1.3.0.1 running fine on a Fedora box with the following:

Server OS: Linux 2.6.5-1.358
Database: MySQL 3.23.58
PHP Version: 4.3.10 (Zend: 1.3.0)
HTTP Server: Apache/2.0.51 (Fedora)

It's a clean install used for sandboxing. Not sure why you have problems with the same PHP version. :huh:

The reason is that Debian provides security updates, thus the 4.3.10-16. Zen Cart tests for an exact string match to 4.3.10, so the added "-16" doesn't exactly match "4.3.10".

I fixed the problem by editing catalog/zc_install/includes/modules/pages/inspect/header_php ... about line 222, from:

} elseif (phpversion() < "4.3.2" && phpversion() != "4.3.11" && phpversion() != "4.3.10") {

to:

} elseif (phpversion() < "4.3.2" && phpversion() != "4.3.11" && phpversion() != "4.3.10") && phpversion() != "4.3.10-16") {

I need no warrant for being, and no word of sanction upon my being. I am the warrant and the sanction.
Ayn Rand

14 May 2006, 11:13 PM
#10
angelia avatar

angelia

New Zenner

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

Re: Install of 1.3.0.1 complains about php4 version 4.3.10-16

I believe this is where the problem lies, but am not sure what to change if anything so that I don't get the "You need to enable PHP Session support on your webserver. You might try installing this module: php4-session" error.

//PHP Version Check
if (phpversion()=="4.1.2") {
$php_ver = "<span class='errors'>".phpversion().' {'. SHOULD_UPGRADE . '}</span>';
$zc_install->error = true;
$err_text = ERROR_TEXT_4_1_2;
$err_code = ERROR_CODE_4_1_2;
$this_class = 'WARN';
} elseif (phpversion() < "4.1.2") {
$php_ver = "<span class='errors'>".phpversion().' {'. MUST_UPGRADE . '}</span>';
$zc_install->error = true;
$zc_install->fatal_error = true;
$err_text = ERROR_TEXT_PHP_VERSION;
$err_code = ERROR_CODE_PHP_VERSION;
$this_class = 'FAIL';
} else {
$php_ver = phpversion();
$this_class = 'OK';
}

Any suggestions on this one?
Thanks

15 May 2006, 9:31 PM
#11
drbyte avatar

drbyte

Sensei

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

Re: Install of 1.3.0.1 complains about php4 version 4.3.10-16

Angelia,

Your comment is unrelated to the earlier posts in this particular thread. (They're talking about the detection of the version of PHP, not session-support).

I've answered your post here: http://www.zen-cart.com/forum/showthread.php?p=201660#post201660

.
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.

16 May 2006, 5:19 AM
#12
nepton avatar

nepton

New Zenner

Join Date:
May 2006
Location:
USA
Posts:
40
Plugin Contributions:
0

Re: Install of 1.3.0.1 complains about php4 version 4.3.10-16

I will offer you assistants, but due to the rules of no advertising on this forum all I can do is offer you a link to my web services site, my Web Design.

-Nepton

EDITED: Do not advertise on the forums ...

16 May 2006, 5:45 AM
#13
seethrou avatar

seethrou

Totally Zenned

Join Date:
May 2004
Location:
Hong Kong
Posts:
1,156
Plugin Contributions:
0

Re: Install of 1.3.0.1 complains about php4 version 4.3.10-16

nepton:

I will offer you assistants, but due to the rules of no advertising on this forum all I can do is offer you a link to my web services site.

-Nepton

Let me borrow some words from DrByte,

Your comments in many threads are unrelated to those posts in those particular threads.

(Please do the right thing in the right place. And don't too much! :wink2: )

A New Starter again