Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Configuration problem


davywap161

Recommended Posts

Hi,

 

I'm relatively inexperienced with OSC and I'm having some problems after installation.

 


  •  
  • First problem is I cannot access/load the main index.php page. On a freshly opened browser it doesn't load and shows the 500 error. Once you go to the admin page (which loads OK) whenever you go back to the main index page it reverts back to the admin page every time.
  • Second problem is that the file system directories are showing as not existing when clicking on certain admin pages, such as the catalog menu option. For example, when clicking on this I get the error message at the top of the screen "Error: Catalog images directory does not exist: /wwwroot/images/"
     

 

Here are my 2 configure.php file's details (which coincidently I had to populate manually as after the online installation nothing was filled in).

NB.My web pages are stored in the wwwroot folder with no catalog or any other folder being used.

 

main configure.php:

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://www.mydomainname.com.au/'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://www.mydomainname.com.au/'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', false); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'http://www.mydomainname.com.au/');

define('HTTPS_COOKIE_DOMAIN', 'https://www.mydomainname.com.au/');

define('HTTP_COOKIE_PATH', '');

define('HTTPS_COOKIE_PATH', '');

define('DIR_WS_HTTP_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', '/wwwroot/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

// define our database connection

define('DB_SERVER', 'my IP address is here'); // eg, localhost - should not be empty for productive servers

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

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

define('DB_DATABASE', 'database_name');

define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

 

 

Admin configure.php:

 

// define our webserver variables

// FS = Filesystem (physical)

// WS = Webserver (virtual)

define('HTTP_SERVER', 'http://www.mydomainname.com.au/'); // eg, http://localhost or - https://localhost should not be NULL for productive servers

define('HTTP_CATALOG_SERVER', 'http://www.mydomainname.com.au/');

define('HTTPS_CATALOG_SERVER', 'https://www.mydomainname.com.au/');

define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', '/wwwroot/'); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)

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

define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);

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

 

// define our database connection

define('DB_SERVER', 'my IP address is here');

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

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

define('DB_DATABASE', 'database_name');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

 

My hosting space is Windows IIS and has PHP v5.2.5 and mysql equipped (this is purchased through a provider, not my own server). When doing the online installation all the items on the checklist were verified.

 

I've tried using every combination possible for the DIR_FS_DOCUMENT_ROOT including the entire directory address given to me by the hosting provider and also using '$DOCUMENT_ROOT', with no luck.

 

The mysql/database aspect is working fine as the tables were entered into the database during installation OK and once I populate the database info on the configure.php files things such as login & product details were working/showing.

 

If anyone out there can help me out with either or both of these problems I would gladly appreciate it as its currently doing my head in.

 

Cheers,

 

Dave.

Link to comment
Share on other sites

 

 

Here are my 2 configure.php file's details (which coincidently I had to populate manually as after the online installation nothing was filled in).

This tells me that your installation failed miserably and a complete wipe and reinstall would be your best avenue of recovery.

Community Bootstrap Edition, Edge

 

Avoid the most asked question. See How to Secure My Site and How do I...?

Link to comment
Share on other sites

This tells me that your installation failed miserably and a complete wipe and reinstall would be your best avenue of recovery.

 

Sorry, forgot to mention that I did that already and got the same exact result the second time.

Link to comment
Share on other sites

Hi,

 

I'm relatively inexperienced with OSC and I'm having some problems after installation.

 


  •  
  • First problem is I cannot access/load the main index.php page. On a freshly opened browser it doesn't load and shows the 500 error. Once you go to the admin page (which loads OK) whenever you go back to the main index page it reverts back to the admin page every time.
  • Second problem is that the file system directories are showing as not existing when clicking on certain admin pages, such as the catalog menu option. For example, when clicking on this I get the error message at the top of the screen "Error: Catalog images directory does not exist: /wwwroot/images/"
     

 

Here are my 2 configure.php file's details (which coincidently I had to populate manually as after the online installation nothing was filled in).

NB.My web pages are stored in the wwwroot folder with no catalog or any other folder being used.

 

main configure.php:

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://www.mydomainname.com.au/'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://www.mydomainname.com.au/'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', false); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'http://www.mydomainname.com.au/');

define('HTTPS_COOKIE_DOMAIN', 'https://www.mydomainname.com.au/');

define('HTTP_COOKIE_PATH', '');

define('HTTPS_COOKIE_PATH', '');

define('DIR_WS_HTTP_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', '/wwwroot/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

// define our database connection

define('DB_SERVER', 'my IP address is here'); // eg, localhost - should not be empty for productive servers

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

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

define('DB_DATABASE', 'database_name');

define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

 

 

Admin configure.php:

 

// define our webserver variables

// FS = Filesystem (physical)

// WS = Webserver (virtual)

define('HTTP_SERVER', 'http://www.mydomainname.com.au/'); // eg, http://localhost or - https://localhost should not be NULL for productive servers

define('HTTP_CATALOG_SERVER', 'http://www.mydomainname.com.au/');

define('HTTPS_CATALOG_SERVER', 'https://www.mydomainname.com.au/');

define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', '/wwwroot/'); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)

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

define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);

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

 

// define our database connection

define('DB_SERVER', 'my IP address is here');

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

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

define('DB_DATABASE', 'database_name');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

 

My hosting space is Windows IIS and has PHP v5.2.5 and mysql equipped (this is purchased through a provider, not my own server). When doing the online installation all the items on the checklist were verified.

 

I've tried using every combination possible for the DIR_FS_DOCUMENT_ROOT including the entire directory address given to me by the hosting provider and also using '$DOCUMENT_ROOT', with no luck.

 

The mysql/database aspect is working fine as the tables were entered into the database during installation OK and once I populate the database info on the configure.php files things such as login & product details were working/showing.

 

If anyone out there can help me out with either or both of these problems I would gladly appreciate it as its currently doing my head in.

 

Cheers,

 

Dave.

 

catalog/includes/configure.php

 

define('DIR_FS_CATALOG', '/wwwroot/');

 

DIR_FS_CATALOG requires a full path which \wwwroot\ isn't.

 

What happens when you replace that line with ..

 

define('DIR_FS_CATALOG', str_replace( DIRECTORY_SEPARATOR, '/', realpath( '.' ) . '/' ) );

Link to comment
Share on other sites

catalog/includes/configure.php

 

define('DIR_FS_CATALOG', '/wwwroot/');

 

DIR_FS_CATALOG requires a full path which \wwwroot\ isn't.

 

What happens when you replace that line with ..

 

define('DIR_FS_CATALOG', str_replace( DIRECTORY_SEPARATOR, '/', realpath( '.' ) . '/' ) );

 

That did not solve the problem, its still not finding the images directory. Also, I did note in my original post that I have tried every combination possible for the physical file path INCLUDING the full path, all to no avail.

Link to comment
Share on other sites

Try these changes.

 

main configure.php:

 

define('HTTP_SERVER', 'http://www.mydomainname.com.au');

define('HTTPS_SERVER', 'https://www.mydomainname.com.au');

 

define('HTTP_COOKIE_DOMAIN', 'www.mydomainname.com.au');

define('HTTPS_COOKIE_DOMAIN', 'www.mydomainname.com.au');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_WS_HTTPS_CATALOG', '/');

 

define('DIR_FS_CATALOG', $_SERVER['DOCUMENT_ROOT']);

 

Admin configure.php:

 

define('HTTP_SERVER', 'http://www.mydomainname.com.au');

define('HTTP_CATALOG_SERVER', 'http://www.mydomainname.com.au');

define('HTTPS_CATALOG_SERVER', 'https://www.mydomainname.com.au');

 

define('DIR_FS_DOCUMENT_ROOT', $_SERVER['DOCUMENT_ROOT'] )

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

 

define('DIR_WS_CATALOG', '/');

 

Also, check the permissions on your installation.

A 500 error is usually associated with permissions and/or htaccess.

 

You can also verify your 'DIR_FS_DOCUMENT_ROOT' full path.

Log in to your osc admin panel >>Tools-Server Info. Look for "DOCUMENT_ROOT" and verify the VALUE.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...