Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Can anyone help with my configure files ?


beauregard

Recommended Posts

I have changed directory so that the store is now located directly in /public_html/ and not in /catalog/

Almost everything is fine but when I click on a category or try to get into admin, I get an error.

There something wrong in the path but I can't figure it out, can anyone look at the path and suggest corrections ?

 

/include/configure.php

 

<?php

 

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

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

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

define('HTTP_COOKIE_DOMAIN', 'mysite.com');

define('HTTPS_COOKIE_DOMAIN', 'mysite.com');

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', 'http:///mysite/public_html');

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

define('DB_SERVER_PASSWORD', 'abc');

define('DB_DATABASE', 'mysite_osc1');

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

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

define('EP_TEMP_DIR', DIR_WS_CATALOG . 'temp/');

 

 

// STS: ADD: Define Simple Template System files

define('STS_TEMPLATE_DIR', DIR_WS_INCLUDES . 'sts_templates/mysite/');

define('STS_START_CAPTURE', DIR_WS_INCLUDES . 'sts_start_capture.php');

define('STS_STOP_CAPTURE', DIR_WS_INCLUDES . 'sts_stop_capture.php');

define('STS_RESTART_CAPTURE', DIR_WS_INCLUDES . 'sts_restart_capture.php');

define('STS_DEFAULT_TEMPLATE', STS_TEMPLATE_DIR . 'sts_template.html');

define('STS_DISPLAY_OUTPUT', DIR_WS_INCLUDES . 'sts_display_output.php');

define('STS_USER_CODE', DIR_WS_INCLUDES . 'sts_user_code.php');

define('STS_PRODUCT_INFO', DIR_WS_INCLUDES . 'sts_product_info.php');

define('STS_FUNCTIONS', DIR_WS_INCLUDES . 'sts_functions.php');

// STS: EOADD

 

?>

 

 

/include/admin/

 

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

define('HTTP_CATALOG_SERVER', 'http://mysite.com');

define('HTTPS_CATALOG_SERVER', 'http://mysite.com');

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

define('DIR_FS_DOCUMENT_ROOT', 'home/mysite/public_html'); // where the pages are located on the server

define('DIR_WS_ADMIN', 'admin/'); // absolute path required

define('DIR_FS_ADMIN', '/home/mysite/public_html/admin/'); // absolute pate required

define('DIR_WS_CATALOG', '/home/mysite/public_html/'); // absolute path required

define('DIR_FS_CATALOG', '/home/mysite/public_html/'); // 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('EP_TEMP_DIR', 'temp/');

 

// define our database connection

define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'mysite_osc1');

define('DB_SERVER_PASSWORD', 'abc');

define('DB_DATABASE', 'mysite_osc1');

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

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

?>

Thanks all in advance

Link to comment
Share on other sites

/includes/configure.php

 

 

define('DIR_FS_CATALOG', 'http:///mysite/public_html');

 

should read something like: (i.e. the physical path on your server not the webaddress)

 define('DIR_FS_CATALOG', '/home/mysite/public_html/');

 

and

/admin/includes/configure.php

 

define('DIR_WS_CATALOG', '/home/mysite/public_html/'); // absolute path required

 

should be:

 define('DIR_WS_CATALOG', '/');

Link to comment
Share on other sites

should read something like: (i.e. the physical path on your server not the webaddress)

 define('DIR_FS_CATALOG', '/home/mysite/public_html/');

 

and

should be:

 define('DIR_WS_CATALOG', '/');

I made the changes as you suggested.

Almost everything works, the index page is ok, the login, cart contents, checkout pages are all ok.

Still wen I click on a category or item from my featured items, I get the error 404

Can you have a second look at the file.

Thanks in advance

Link to comment
Share on other sites

What is the link URLs you are getting the error with?

 

Can you post an example here, maybe with your updated configure.php.

 

Tom

Link to comment
Share on other sites

What is the link URLs you are getting the error with?

 

Can you post an example here, maybe with your updated configure.php.

 

Tom

Many urls do work, the ones that don't are the ones linked to the items themselves,

I can't reach admin which does not recognize the password

The site is here http://www.SHOPP3RS.com/

Thanks for taking time to help, it is very appreciated !

Jacques

 

/includes/configure

<?php

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

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

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

define('HTTP_COOKIE_DOMAIN', 'shopp3rs.com');

define('HTTPS_COOKIE_DOMAIN', 'shopp3rs.com');

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', '/home/shopp3rs/public_html/');

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

define('DB_SERVER_PASSWORD', 'door');

define('DB_DATABASE', 'abc_osc1');

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

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

define('EP_TEMP_DIR', DIR_WS_CATALOG . 'temp/');

 

 

// STS: ADD: Define Simple Template System files

define('STS_TEMPLATE_DIR', DIR_WS_INCLUDES . 'sts_templates/mysite/');

define('STS_START_CAPTURE', DIR_WS_INCLUDES . 'sts_start_capture.php');

define('STS_STOP_CAPTURE', DIR_WS_INCLUDES . 'sts_stop_capture.php');

define('STS_RESTART_CAPTURE', DIR_WS_INCLUDES . 'sts_restart_capture.php');

define('STS_DEFAULT_TEMPLATE', STS_TEMPLATE_DIR . 'sts_template.html');

define('STS_DISPLAY_OUTPUT', DIR_WS_INCLUDES . 'sts_display_output.php');

define('STS_USER_CODE', DIR_WS_INCLUDES . 'sts_user_code.php');

define('STS_PRODUCT_INFO', DIR_WS_INCLUDES . 'sts_product_info.php');

define('STS_FUNCTIONS', DIR_WS_INCLUDES . 'sts_functions.php');

// STS: EOADD

 

?>

 

admin/includes/configure

<?php

 

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

define('HTTP_CATALOG_SERVER', 'http://shopp3rs.com');

define('HTTPS_CATALOG_SERVER', 'http://shopp3rs.com');

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

define('DIR_FS_DOCUMENT_ROOT', 'home/shopp3rs/public_html'); // where the pages are located on the server

define('DIR_WS_ADMIN', 'admin/'); // absolute path required

define('DIR_FS_ADMIN', '/home/shopp3rs/public_html/admin/'); // absolute pate required

define('DIR_WS_CATALOG', '/'); // absolute path required

define('DIR_FS_CATALOG', '/home/shopp3rs/public_html/'); // 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('EP_TEMP_DIR', 'temp/');

 

// define our database connection

define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'open');

define('DB_SERVER_PASSWORD', 'door');

define('DB_DATABASE', 'abc_osc1');

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

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

?>

Link to comment
Share on other sites

the configure.php files seem ok, looking at the site I see you have Ultimate SEO URLs installed - I think this is what is causing the problem.

 

Have you correctly added the required lines to your .htaccess file?

 

If you go into admin then Configuration->SEO URLs -> Enable SEO URLs and set to disabled does that get things working?

 

Tom

Link to comment
Share on other sites

the configure.php files seem ok, looking at the site I see you have Ultimate SEO URLs installed - I think this is what is causing the problem.

 

Have you correctly added the required lines to your .htaccess file?

 

If you go into admin then Configuration->SEO URLs -> Enable SEO URLs and set to disabled does that get things working?

 

Tom

Ultimate seo urls works fine with the original site.

The includes/.htaccess file on the cloned site and on the original site are the same,

I cannot go into admin as the new site's admin does not recognize the password which is the same as on the original site,

I'm in sort of a jam, any suggestion ?

Jacques

Link to comment
Share on other sites

in your .htaccess file you will have the following lines for Ultimate SEO URLs:

RewriteEngine On 
RewriteBase /catalog/

 

as your have moved directory change it to:

RewriteBase /

Link to comment
Share on other sites

in your .htaccess file you will have the following lines for Ultimate SEO URLs:

RewriteEngine On 
RewriteBase /catalog/

 

as your have moved directory change it to:

RewriteBase /

Got it, everything works fine,

There was also one more path to correct in the admin/includes/configure, now everything is fine

Thanks so much for taking the time to help !!

Jacques

Link to comment
Share on other sites

Got it, everything works fine,

There was also one more path to correct in the admin/includes/configure, now everything is fine

Thanks so much for taking the time to help !!

Jacques

Oops

There's one more path not working:

When I go to administration/tools/file manager, I get this error

 

Warning: dir(home/shopp3rs/public_html): failed to open dir: No such file or directory in /home/shopp3rs/public_html/admin/file_manager.php on line 178

 

Fatal error: Call to a member function on a non-object in /home/shopp3rs/public_html/admin/file_manager.php on line 179

 

This is what's on those 2 lines

else {

$showuser = (function_exists('posix_getpwuid') ? true : false);

$contents = array();

$dir = dir($current_path);

while ($file = $dir->read()) {

if ( ($file != '.') && ($file != 'CVS') && ( ($file != '..') || ($current_path != DIR_FS_DOCUMENT_ROOT) ) ) {

$file_size = number_format(filesize($current_path . '/' . $file)) . ' bytes';

Link to comment
Share on other sites

Just spotted in the admin configure.php

 

define('DIR_FS_DOCUMENT_ROOT', 'home/shopp3rs/public_html'); // where the pages are located on the server

 

needs to be '/home/shopp3rs/public_html' (missing initial slash)

 

 

Tom

Link to comment
Share on other sites

Just spotted in the admin configure.php

 

define('DIR_FS_DOCUMENT_ROOT', 'home/shopp3rs/public_html'); // where the pages are located on the server

 

needs to be '/home/shopp3rs/public_html' (missing initial slash)

Tom

Great, that opened up tools/file manager, all is cool

Thanks again

Jacques

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...