Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

osCommerce 2.2ms2-051113 + PHP 5.1.2 + Apache 2.0.55 + XP fail ?


oscmarlin

Recommended Posts

When I first run the catalog install.php, I have a different database-setup screen to the documentation.

 

In the documentation, the picture of step1 has Database Type & Database Table Prefix but mine doesn't have, why ?

 

And also after I entered value into each column correctly and click the Continue button, I get to step2 with mostly blank page. Only the header gif of osCommerce with two statements: New Installation & Database Import. Nothing else.

 

I have read other thread saying I need to turn on the register_long_arrays = On, I did it, restart the apache and it is still the same.

 

Please can anyone tell me what has gone wrong ?

Link to comment
Share on other sites

You probably have error reporting turned off and have Register Globals set to off in php.ini. Normally you'd see the error message but it's not being displayed. Try setting Register Globasl to on in php.ini, restart the server and then see what happens.

 

Vger

Link to comment
Share on other sites

You probably have error reporting turned off and have Register Globals set to off in php.ini. Normally you'd see the error message but it's not being displayed. Try setting Register Globasl to on in php.ini, restart the server and then see what happens.

 

Vger

 

Thank you Vger, but I do have the register global set to ON (or On, on). Restart the whole machine, no luck :<.

 

Regarding the error reporting turned off, do you mean this line in the application_top.php

 

// set the level of error reporting

error_reporting(E_ALL & ~E_NOTICE);

 

what value should I set it to ?

 

thankss.

Link to comment
Share on other sites

It's your server that's not reporting errors. Look in php.ini for this entry:

 

;error_reporting = E_ALL & ~E_NOTICE

 

and remove the semi-colon before it, then restart.

 

Vger

Link to comment
Share on other sites

It's your server that's not reporting errors. Look in php.ini for this entry:

 

;error_reporting = E_ALL & ~E_NOTICE

 

and remove the semi-colon before it, then restart.

 

Vger

 

Thanks for this instruction, but the same error (blank page without any message :<) even after the machine has restarted.

 

My apache & mysql are running fine, in fact I can get to step1 enter database info then nothing more.

 

Beside, is there any reason why my step1 has different entries to the one shown in the documentation, i mean I don't have database-type and table prefix, anything wrong here ? or it is new in 2.2ms2 ?

 

Should I try PHP 4 (although I read from other thread that another member has exactly the same problem as me and he is using PHP4).

 

Further to this, my php.ini is stored at Windows directory, i guess it is part of the PHP setup and it should be fine right ? i did try to search for any other php in my machine and found none.. so I guess I did change the setting correctly.

 

My php is running fine with apache too, i have tested some php command.

 

thanks for your help..

Link to comment
Share on other sites

Further to this, I assume it is okay to install PHP, Apache & MySQL under the c:\Program Files folder, rite ?

 

I did the apache=>php configuration correctly too just in case you are in doubt.

 

And regarding the "file permission" mention in the pre-installation documentation, do I need to do anything in WinXP ? although I have granted everyone I can find in my security user-profile with full right of accessing the

configure.php. Is this enough ?

 

thanks...

Link to comment
Share on other sites

i work with wamp server and i don't have any problems at all.

 

Try wampserver

 

Thank you Sousa for your suggestion but I don't want to try a webserver that is different to what my ISP has provided. I have already subscribed to an ISP and they use Apache as their webserver...

 

Or is Apache not recommended by osCommerce ?

Link to comment
Share on other sites

Please stop bumping your posts. It is against forum rules and unfair to other forum users who also want their posts seen and answered.

 

So far you have edited php.ini, turned on error reporting, set register_long_arrays to on, and nothing is happening.

 

The difference in what you see in the Knowledge Base to what you see on your screen is down to the fact that the Knowledge Base is showing images of MS3 - which hasn't been released yet. So don't worry about that.

 

To answer another question - Apache is much better for running osCommerce on than a Windows server.

 

To try to resolve this quickly, let's do a manual install.

 

Go to phpMyAdmin, set up a blank database if you haven't already done so, then click on the SQL tab and use the Browse box to locate the install/oscommerce.sql file, then click the Go button. This will install the sample products and data.

 

Then you need to edit both configure.php files manually, like so:

 

includes/configure.php

-------------------------

 

define('HTTP_SERVER', 'http://localhost');
 define('HTTPS_SERVER', '');
 define('ENABLE_SSL', false);
 define('HTTP_COOKIE_DOMAIN', 'localhost');
 define('HTTPS_COOKIE_DOMAIN', '');
 define('HTTP_COOKIE_PATH', '/catalog/');
 define('HTTPS_COOKIE_PATH', '');
 define('DIR_WS_HTTP_CATALOG', '/catalog/');
 define('DIR_WS_HTTPS_CATALOG', '');
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_INCLUDES', 'includes/');
 define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
 define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
 define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
 define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
 define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
 define('DIR_FS_CATALOG', 'your_path_to/htdocs/catalog/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

// define our database connection
 define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', 'your_user'_name);
 define('DB_SERVER_PASSWORD', 'your_password');
 define('DB_DATABASE', 'your_database');
 define('USE_PCONNECT', 'false'); // use persistent connections?
 define('STORE_SESSIONS', 'mysql');

 

admin/includes/configure.php

----------------------------------

 

define('HTTP_SERVER', 'http://localhost'); // eg, http://localhost - should not be empty for productive servers
 define('HTTP_CATALOG_SERVER', 'http://localhost');
 define('HTTPS_CATALOG_SERVER', '');
 define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', 'your_path_to/htdocs/catalog/'); // where the pages are located on the server
 define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required
 define('DIR_FS_ADMIN', 'your_path_to/htdocs/catalog/admin/'); // absolute pate required
 define('DIR_WS_CATALOG', '/catalog/'); // absolute path required
 define('DIR_FS_CATALOG', 'your_path_to/htdocs/catalog/'); // absolute path required
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
 define('DIR_WS_INCLUDES', 'includes/');
 define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
 define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
 define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
 define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
 define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
 define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
 define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
 define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

// define our database connection
 define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', 'your_user_name');
 define('DB_SERVER_PASSWORD', 'your_password');
 define('DB_DATABASE', 'your_database');
 define('USE_PCONNECT', 'false'); // use persisstent connections?
 define('STORE_SESSIONS', 'mysql');

 

Vger

Link to comment
Share on other sites

Thanks a lot Vger, please don't mis-understand that I am not trying to bumping my topic, I would think it is better I have put all whatever I have tried out and thought off in this thread in case anyone would ask for the question such as turn on the register_globals.

 

I used your contribution of register_globals to set it on because even I manually set it on in the php.ini, it was still showing "off" when I run the catalog install.

 

While I was waiting for any help here, I have already un-install my apache2 & php5 and put in apache1.3 & php4, things get worse now as my apache 1.3 can't start properly as it keeps saying fail to load the php4apache.dll in c:\php folder. I realise the php4apache.dll is not in the php folder but the php/sapi folder (the install.txt provided by php has some typo mistake). I changed it to php/sapi in the httpd.conf, but the same error message appears (and said fail to load c:\php\sapi\php4apache.dll). as soon as I remove the loading of php from the httpd.conf, then my apache 1.3 can start.

 

I have clean install of this php4 (just downloaded from php website), I can't believe this is the problem of php or apache somehow something is really wrong in my computer (even i have tried different machine, diff setup).

 

I will put back apache2 & php5 and try your workaround, hopefully i can get it work and don't bother anyone here again.

 

thankss again.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...