Zen Cart Logo
Forums / Installing on a Windows Server / Apache Exception on installation

Apache Exception on installation

Locked

Views: 1,659

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
17 Aug 2009, 3:44 PM
#1
percepts avatar

percepts

New Zenner

Join Date:
Aug 2004
Posts:
10
Plugin Contributions:
0

Apache Exception on installation

Going through installation. Have created zencart mysql schema.
First screen has everything ticked green.

Webserver = Apache/2.2.11 (Win32) DAV/2 mod_ssl/2.2.11 OpenSSL/0.9.8i PHP/5.3.0
HTTP Host = localhost
Path_Translated = D:/www/htdocs/zencart/zc_install/index.php(SCRIPT_FILENAME)
Real Path = D:\www\htdocs\zencart
PHP O/S = WINNT
PHP API Mode = apache2handler
PHP Max Execution Time per page = 30

Second screen which asks for MySQL details displays OK but I get a deprecated function notice from PHP.

Deprecated: Function set_magic_quotes_runtime() is deprecated in D:\www\htdocs\zencart\zc_install\includes\application_top.php on line 22

So I manually set:

$php_magic_quotes_runtime = 'OFF';
$php_magic_quotes_sybase = 'OFF';

and commented out the lines 21 thru 27.

using either 127.0.0.1 or localhost or not commenting above lines gives the following apache exception as soon as I hit the "save database settings" button.
No visible errors in apache error log files or mysql log files. I just get a windows alert box on httpd.exe which says:

The instruction at "0x021e2072" referenced memory at "0x00000000". The memory could not be "read"
Click OK to terminate the program.

I think it is making calls to MySQL because if I don't put password in, then I get can't connect to database message on screen as you would expect. So whether error is in MySQL or Apache I'm not sure.

So is zencart PHP 5.3 ready ?
is it MySQL server 5.1.36 ready ?
is it MySQL client 5.1.11 ready ?

and if it is then HELP !!!

17 Aug 2009, 4:03 PM
#2
percepts avatar

percepts

New Zenner

Join Date:
Aug 2004
Posts:
10
Plugin Contributions:
0

Re: Apache Exception on installation

N.B. Other PHP MySQL software on my setup are working OK.

No tables were created in the zencart schema before the exception.

using latest version of zencart I downloaded today.

18 Aug 2009, 5:42 AM
#3
drbyte avatar

drbyte

Sensei

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

Re: Apache Exception on installation

Zen Cart v1.3.8a is NOT compatible with PHP 5.3.

The upcoming v1.3.9 and v2.0 will be compatible with PHP 5.3. Until then, use something lower than 5.3.

13 Nov 2009, 8:47 PM
#4
percepts avatar

percepts

New Zenner

Join Date:
Aug 2004
Posts:
10
Plugin Contributions:
0

Re: Apache Exception on installation

Apache/2.2.11 (Win32) DAV/2 mod_ssl/2.2.11 OpenSSL/0.9.8i PHP/5.3.0

Zencart 1.3.8a fullset

I tried the new patch for PHP 5.3 but I still got the apache crash when installing. It happened on the database page. No tables were installed.

I got round the problem by doing a manual install.

First you need to work out zencart calculates its default password and use that code generate and new md5 value for password.
Then edit the mysql_zencart.sql file to add that passphrase md5 value. If you don't do this you won't be able to access the admin area.
Then run the mysql_zencart.sql file through a phpMyAdmin import to generate all your tables.
Then manually edit the configure.php files in admin/includes and includes to set the correct paths and db login details.

And copy the php 5.3 patch files to the relevant directories.

It works for me now but was frustrating because auto install wouldn't work even with php 5.3 patch files applied before install.

13 Nov 2009, 11:14 PM
#5
drbyte avatar

drbyte

Sensei

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

Re: Apache Exception on installation

percepts:

Apache/2.2.11 (Win32) DAV/2 mod_ssl/2.2.11 OpenSSL/0.9.8i PHP/5.3.0

Zencart 1.3.8a fullset

I tried the new patch for PHP 5.3 but I still got the apache crash when installing. It happened on the database page. No tables were installed.
From experience, an "apache crash" is almost always a result of a problem with your server configuration.

percepts:

First you need to work out zencart calculates its default password and use that code generate and new md5 value for password.
Then edit the mysql_zencart.sql file to add that passphrase md5 value. If you don't do this you won't be able to access the admin area.
That's overkill. The default username is "Admin" and the password "admin", also explained here: https://www.zen-cart.com/tutorials/index.php?article=2

13 Nov 2009, 11:36 PM
#6
percepts avatar

percepts

New Zenner

Join Date:
Aug 2004
Posts:
10
Plugin Contributions:
0

Re: Apache Exception on installation

DrByte:

From experience, an "apache crash" is almost always a result of a problem with your server configuration.
Maybe. But never had this problem with other installs using MySQL. The only clue was in the event logs which claim apache trying access address 000000... which isn't a lot of help.
php and mysql logs show nothing but apache auto restarts itself. So I have no idea how to overcome the glitch so that normal install works. Everything works after the manual instal so there's nothing else to trace for a problem.

DrByte:

That's overkill. The default username is "Admin" and the password "admin", also explained here: https://www.zen-cart.com/tutorials/index.php?article=2

wish I'd known that.

13 Nov 2009, 11:45 PM
#7
drbyte avatar

drbyte

Sensei

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

Re: Apache Exception on installation

percepts:

wish I'd known that.
You didn't ask :blush:

Nevertheless, I'm glad you finally got it to work for you despite your server issues.

13 Nov 2009, 11:51 PM
#8
percepts avatar

percepts

New Zenner

Join Date:
Aug 2004
Posts:
10
Plugin Contributions:
0

Re: Apache Exception on installation

DrByte:

You didn't ask :blush:

Nevertheless, I'm glad you finally got it to work for you despite your server issues.

I thought you were telepathic :smile: