Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Can't get past "http://locahost/catalog/install/install.php?step=2", during install.


Mulder

Recommended Posts

I am trying to install OsCommerce on a XP machine with IIS 5.1 as an administrator. I have PHP (Windows binary) installed & MySQL installed + oscommerce db created, but cannot complete the install. I key in the host, username, password, etc... using the root account, clicked continue and that's it folks!

 

I found that is exactly dies on page install2.php at line 28: osc_db_connect($db['DB_SERVER'], $db['DB_SERVER_USERNAME'], $db['DB_SERVER_PASSWORD']);

 

The catalog folder is off of the wwwroot folder and the permissions are set to FULL for Everyone...

 

I tried to manually update the configure.php file, but still no luck!

 

I also am able to connect to database in MySQL (called oscommerce) via MSAccess with no problem...

 

Anyone have any ideas, besides writing my own shopping cart?

Link to comment
Share on other sites

The most common cause for installation getting stuck in step 2

is that most recent PHP installations have register_long_arrays = OFF

This needs to be turned to ON in the php.ini file (you will need to

stop and restart your server to get this change to take effect.)

 

Vger

Link to comment
Share on other sites

Thanks for you reply...

 

I just checked that, but it is turned on:

 

Excerpt from my php.ini file - "; Whether or not to register the old-style input arrays, HTTP_GET_VARS

; and friends. If you're not using them, it's recommended to turn them off,

; for performance reasons.

register_long_arrays = On"

 

Do we know where that function "osc_db_connect" resides?

Link to comment
Share on other sites

Thanks for you reply...

 

I just checked that, but it is turned on:

 

Excerpt from my php.ini file - "; Whether or not to register the old-style input arrays, HTTP_GET_VARS

; and friends. If you're not using them, it's recommended to turn them off,

; for performance reasons.

register_long_arrays = On"

 

Do we know where that function "osc_db_connect" resides?

 

I managed to get it working!

 

1) I didn't install the correct PHP with the MySQL Extension, I had to use v4.42 vs. v.5.1.4, which caused another error...

 

"How to fix "Client does not support authentication protocol requested by server; consider upgrading MySQL client" problem"

2) I add to reset the db password to a pre 4.1 version:

"mysql> SET PASSWORD FOR

-> ' some_user '@' some_host ' = OLD_PASSWORD(' newpwd ');"

 

and now, it all works.

Link to comment
Share on other sites

Thanks Vger,

I was having the same problem of getting stuck in the 2nd step, the New Installation screen.

I'm using php5.x on a Mac server; php.ini can be found in /usr/local/php/lib/php5

Get there by Finder-Go menu-Go To Folder then enter/usr/ and Return.

Turned-on long_arrays, restarted my server and I was able to complete the install on my own server; very satisfying.

 

thanks again!

 

for reference:

Mac OS X 10.4.6

osC 2.2

PHP 5.1.4

MySQL client=4.1.13, server=5.0.4

MySQL Administrator

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...