jonponton Posted March 11, 2007 Share Posted March 11, 2007 Hi There, I am having some issues trying to install OSCommerce. I am running it on a Windows 2003 server with PHP5.0 and MySQL4.1 installed. I have followed the documented install procedure, but I'm stuck at a point where the URL reads http://....../install/install.php?step=2 and the only thing displayed on the page is "New Installation" "Database Import" I have even tried running the install with the MySQL service stopped, and I get the same output, so I suspect there is an issue with PHP starting communications with the database. Any ideas?? Any help would be great! :thumbsup: Link to comment Share on other sites More sharing options...
Guest Posted March 11, 2007 Share Posted March 11, 2007 Hi There, I am having some issues trying to install OSCommerce. I am running it on a Windows 2003 server with PHP5.0 and MySQL4.1 installed. I have followed the documented install procedure, but I'm stuck at a point where the URL reads http://....../install/install.php?step=2 and the only thing displayed on the page is "New Installation" "Database Import" I have even tried running the install with the MySQL service stopped, and I get the same output, so I suspect there is an issue with PHP starting communications with the database. Any ideas?? Any help would be great! :thumbsup: Hi Jon, You are not the only one. I have the same problem too and don't know how to solve it. I have checked both configure files in admin/include / & include/ and they just like the ones on my production server. I believe the issue lies with MySQL and Apache because if you follow the same instructions with a production server everything will be fine. I imported my oscommerce.sql file in the database and the command mysqlshow shop shows everything is ok. I am running mine on FreeBSD and yours is on windows so there must be a problem that is version independent (Apache 2.2, Mysql 5, PHP 5). I know none this solves your problem but it saves me opening another thread. Rajen Link to comment Share on other sites More sharing options...
Guest Posted March 11, 2007 Share Posted March 11, 2007 Hey Jon, Try sticking register_long_arrays = ON in your php.ini. Rajen Link to comment Share on other sites More sharing options...
jonponton Posted March 11, 2007 Author Share Posted March 11, 2007 Hey Jon, Try sticking register_long_arrays = ON in your php.ini. Rajen Thanks Rajen, I've already tried this, but unfortunatley it didn't fix the problem... any other ideas??? Link to comment Share on other sites More sharing options...
Guest Posted March 11, 2007 Share Posted March 11, 2007 Hey Jon, Try this, trying throwing this in your .htaccess file php_value register_long_arrays on Let me know if this works. Rajen Link to comment Share on other sites More sharing options...
skeetone Posted March 11, 2007 Share Posted March 11, 2007 Hey Jon, Try this, trying throwing this in your .htaccess file php_value register_long_arrays on Let me know if this works. Rajen I'm running Apache with php5 and mysql myself on Os X. I've had problems with register globals as well. But I found out that because I installed php5 I couldn't set the register globals on in the .htaccess file not by adding an php.ini file in the catalog. I had to turn the globals thingy on in a seperate php file. PHP5 was installed in another directory then PHP4 (which I have disabled)....perhaps you should look into where the PHP5 files are located and try to turn registr globals on there. I might be completely wrong because you're windows setup is completely different then my os x set up...but perhaps it's something to look into. I've read about loads of problems with php5. good luck anyway. Gotta get back to my own problem.... dav. Link to comment Share on other sites More sharing options...
jonponton Posted March 11, 2007 Author Share Posted March 11, 2007 Hi, I just tried adding that line to the .htaccess file, but still no change. I have also tried doing an install on another Win2k3 server and I am getting the exact same problem. Does anyone know if this is a problem on every Win2k3 install? Has anyone out there managed to install OSCommerce successfully on Win2k3, and if so, what versions of MySQL and PHP are being used? Is it worth installing Apache onto Win2k3? Any other help would be great! Link to comment Share on other sites More sharing options...
♥Vger Posted March 11, 2007 Share Posted March 11, 2007 Some servers, especially Windows, are set up specifically not to allow you to turn on Register Globals locally (just on your site). .htaccess is Apache specific (not a Windows file or command). Vger Link to comment Share on other sites More sharing options...
jonponton Posted March 13, 2007 Author Share Posted March 13, 2007 Well I managed to get it wo work finally. I installed Easy PHP which is an installation kit for PHP 4. From what I have read there are several issues with php5 and Win2k3. For now this solution is good enuf for me. I will investigate at a later date if I can succesfully upgrade to PHP5. It's also worth noting that the scripted install provided by easy php does not take into account the tasks required in locking down IIS or PHP, so this will be another task on my to-do list. Link to comment Share on other sites More sharing options...
Reo Posted March 14, 2007 Share Posted March 14, 2007 In regards to this, and this post in general: Well I managed to get it wo work finally. I installed Easy PHP which is an installation kit for PHP 4. From what I have read there are several issues with php5 and Win2k3. For now this solution is good enuf for me. I will investigate at a later date if I can succesfully upgrade to PHP5. It's also worth noting that the scripted install provided by easy php does not take into account the tasks required in locking down IIS or PHP, so this will be another task on my to-do list. The problem is that when you upgrade to PHP 5, support for MySQL is no longer enabled by default. Also, when you use MySQL version 4.1+, you use MySQLi. This problem occurs when you don't have the MySQL extension enabled in the php.ini file. When you do that, the installation continues... ----------------------- Reo ----------------------- Link to comment Share on other sites More sharing options...
cedricn Posted March 14, 2007 Share Posted March 14, 2007 I had the same issue on Solaris. I installed PHP 4.0 instead PHP 5 and it works now. Cedric. Link to comment Share on other sites More sharing options...
Reo Posted March 14, 2007 Share Posted March 14, 2007 To clarify my first post, and just because I like PHP 5 so much better than PHP 4: It IS highly possible to install this with PHP 5! In the php.ini file, there should be a line that looks like this: ;extension=php_mysql.dll All you have to do is change it to: extension=php_mysql.dll and the installation will work just fine. Of course, you might prefer PHP 4, in which case, ignore me! But, if you want PHP 5... ----------------------- Reo ----------------------- Link to comment Share on other sites More sharing options...
jonponton Posted March 17, 2007 Author Share Posted March 17, 2007 Hi Reo, Thanks for this update! I am still in the testing phase, so I might run up another Win2k3 Virtual Server, and test it on that. My knowledge of PHP and how to configure it is very basic, so perhaps OSCommerce needs a central place for tips and hints on installing PHP/MySQL as well we their own product. Again, thanks for your input, and I will post how I go installing with PHP5 on a new server. Regards, Jon. To clarify my first post, and just because I like PHP 5 so much better than PHP 4: It IS highly possible to install this with PHP 5! In the php.ini file, there should be a line that looks like this: ;extension=php_mysql.dll All you have to do is change it to: extension=php_mysql.dll and the installation will work just fine. Of course, you might prefer PHP 4, in which case, ignore me! But, if you want PHP 5... ----------------------- Reo ----------------------- Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.