Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Newbie Setup & config help


extremeimport

Recommended Posts

Posted

I have just installed oscommerce today and i am able to get view the default index.php and also i can get to the admin page but when any of the links are clicked on admin page all i get is :-

 

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

 

More information about this error may be available in the server error log.

 

 

 

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

 

Apache/1.3.23 Server at localhost Port 80

 

I am running windows 2003 server & phptriad

 

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

 

Any help at all is appreciated as I am trying to sort out my online shop as quickley as possible.

 

Many thanks in advance

 

Peter

Posted

if you are accessing default.php then you are accessing a very old version. you need to download the latest version from the main osCommerce site.

 

ummmmmm, if you have not worked with php then 'quickly' will be a bit of time . . .

Posted
if you are accessing default.php then you are accessing a very old version.? you need to download the latest version from the main osCommerce site.

 

ummmmmm, if you have not worked with php then 'quickly' will be a bit of time . . .

 

 

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

 

Sorry i might of explained wrong, i am able to access the demo shop page www.mysite.com/catalog/index.php and also www.mysite.com/catalog/admin/index.php

 

But i cannot access any of the links in the admin section I just get the error as stated as above.

 

I am using oscommerce-2.2ms2 - Is this the latest version ?

 

 

Thanks

 

Peter

Posted

Accessing the 'admin' splash page is easy, you just type the address in. But where you go from there depends upon whether your admin/includes/configure.php file is set up correctly.

 

MS2.2 is the latest version.

 

Your admin/includes/configure.php file should look like this (substitute catalog for the name of your osCommerce folder in htdocs)

 

<?php
/*
 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
 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', 'C:/your_path_here/htdocs/catalog/'); // where the pages are located on the server
 define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required
 define('DIR_FS_ADMIN', 'C:/your_path_here/htdocs/catalog/admin/'); // absolute pate required
 define('DIR_WS_CATALOG', '/catalog/'); // absolute path required
 define('DIR_FS_CATALOG', 'C:/your_path_here/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', '******');
 define('DB_SERVER_PASSWORD', '******');
 define('DB_DATABASE', '******');
 define('USE_PCONNECT', 'false'); // use persisstent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>

 

Vger

Posted
Accessing the 'admin' splash page is easy, you just type the address in.  But where you go from there depends upon whether your admin/includes/configure.php file is set up correctly.

 

MS2.2 is the latest version.

 

Your admin/includes/configure.php file should look like this (substitute catalog for the name of your osCommerce folder in htdocs)

 

<?php
/*
?osCommerce, Open Source E-Commerce Solutions
?http://www.oscommerce.com

?Copyright (c) 2003 osCommerce

?Released under the GNU General Public License
*/

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

many thanks

Peter

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
?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', 'C:/your_path_here/htdocs/catalog/'); // where the pages are located on the server
?define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required
?define('DIR_FS_ADMIN', 'C:/your_path_here/htdocs/catalog/admin/'); // absolute pate required
?define('DIR_WS_CATALOG', '/catalog/'); // absolute path required
?define('DIR_FS_CATALOG', 'C:/your_path_here/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', '******');
?define('DB_SERVER_PASSWORD', '******');
?define('DB_DATABASE', '******');
?define('USE_PCONNECT', 'false'); // use persisstent connections?
?define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>

 

Vger

Posted

Heres a REALLY STUPID Question:

 

How can I tell what version of OS Commerce I am running ?

 

Regs,

 

Matt

**************************************

The Media Centre Experts

Sydney - Australia

**************************************

Archived

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

×
×
  • Create New...