Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Installation problem on XP-AMP


namid

Recommended Posts

Posted

Have followed the steps in osCommerce 2.2 Milestone 2 Installation Guide.

 

Step 3 says:

go to the following address: http://[your site]/catalog/install and follow the instructions on the screen.

 

When I do this, the Index of /catalog/install appears, instead of index.php being run.

 

When I run http://[your site]/catalog/install/index.php the screen stays blank.

 

Have tested this with Opera and IE, and with cookies turned off and turned on.

 

Are there maybe any specific installation steps for Windows XP that are not mentioned in the installation guide?

 

TIA

 

Remy

Posted

Hi Tom,

 

> Shouldn't that be

> http://[your site]/catalog/install/install.php

 

Have tried that as well. Same result: blank screen. Html not being generated.

 

Proceeded with manual installation of the database (succesful) and making the necessary changes in catalog/includes/configure.php.

 

Tried to run http://[your site]/catalog/index.php with again the same result: blank screen.

 

Basic settings of Apache, Php and MySQL should be OK as phpMyAdmin and phpBB are running OK.

 

Looking forward to more suggestions!

 

Remy

Posted

Set error_reporting to E_ALL in your php.ini file and then reload apache.

 

The blank screen is a sign of a parse error.

Mark Evans

osCommerce Monkey & Lead Guitarist for "Sparky + the Monkeys" (Album on sale in all good record shops)

 

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

Software is like sex: It's better when it's free. (Linus Torvalds)

Posted

Check that the source unzipped ok.

 

Post your catalog/includes/configure.php file without passwords so some of us can check it for you.....

 

Tom

Posted

Thanks Tom and Sparky,

 

Had to add C:\Program Files\Apache Group\Apache2\htdocs\catalog to the include_path in php.ini. Configure.php is now found.

 

Remaining error:

Fatal error: Call to undefined function: tep_db_connect() in C:\Program Files\Apache Group\Apache2\htdocs\catalog\includes\application_top.php on line 65

 

Any clues?

 

Remy

Posted

Hi,

 

database.php is called but the tep_db_connect() function doesn't seem to get "passed on" to application_top.php. If I include the tep_db_connect() function definition in application_top.php the database connect works but then the database query function returns as undefined.

 

Does the configure.php for Win32 under includes/local/ play a role in this? It doesn't seem to because when I rename configure.php to something else the problem persists.

 

Any clues where exactly things go awry?

 

Remy

Posted

These settings in configure.php made catalog/index.php work:

 

define('HTTP_SERVER', 'http://localhost/');

define('HTTPS_SERVER', 'http://localhost/');

define('ENABLE_SSL', false);

define('HTTP_COOKIE_DOMAIN', '');

define('HTTPS_COOKIE_DOMAIN', '');

define('HTTP_COOKIE_PATH', '');

define('HTTPS_COOKIE_PATH', '');

define('DIR_WS_HTTP_CATALOG', 'catalog/');

define('DIR_WS_HTTPS_CATALOG', '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', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']));

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');

define('DB_SERVER_USERNAME', '**********');

define('DB_SERVER_PASSWORD', '**********');

define('DB_DATABASE', 'oscommerce');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

 

Next step will be to solve this error: Fatal error: Call to undefined function: tep_get_languages() in C:\Program Files\Apache Group\Apache2\htdocs\catalog\admin\index.php on line 58

 

:(

 

Remy

Posted

Check your catalog/admin/includes/configure.php settings just like you did with the catalog/includes/configure.php. You may have a setting for the includes etc. not set correctly.

 

Tom

Posted

Thanks for the suggestion. Gave that a try but haven't succeeded yet. This is in catalog/admin/includes/configure.php:

 

define('HTTP_SERVER', 'http://localhost/');

define('HTTP_CATALOG_SERVER', 'http://localhost/');

define('HTTPS_CATALOG_SERVER', 'https://localhost/');

define('ENABLE_SSL_CATALOG', 'false');

define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT);

define('DIR_WS_ADMIN', 'catalog/admin/');

define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);

define('DIR_WS_CATALOG', 'catalog/');

define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);

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/');

 

And this in php.ini:

 

include_path = "f:\php\includes;C:\Program Files\Apache Group\Apache2\htdocs\catalog;C:\Program Files\Apache Group\Apache2\htdocs\catalog\admin"

 

Any idea where I got off-track?

 

BTW, there is no configure.php in catalog/admin/includes/local/. Should there be? And, if so, with the same settings as in catalog/includes/local/configure.php?

 

Remy

Posted

It appears as though you have installed the CVS MS3 development version and not the MS2 "production" release. Is that so?

 

I'm not sure where to go with this as I don't have MS3 installed.

 

You might want to consider going with the production version, as there maybe issues with the "snapshot" on the day you downloaded it.

 

If not then maybe someone with MS3 installed can help out with your defines etc. in the various configure.php files.

 

Any idea where I got off-track?

 

BTW, there is no configure.php in catalog/admin/includes/local/. Should there be? And, if so, with the same settings as in catalog/includes/local/configure.php?

 

The standard Osc configure.php's are normally in catalog/includes/ or admin/includes not catalog/includes/local.

 

Sorry I could not help further.

Good Luck with MS3.....

 

Tom

Posted

Have now solved all installation problems. What it all boiled down to was finding the correct include_path setting in php.ini. This works for me with osCommerce 2.2ms2 in the Apache document root:

 

include_path = ".\;f:\php\includes;C:\Program Files\Apache Group\Apache2\htdocs\"

 

Remy

Archived

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

×
×
  • Create New...