Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

necessary changes to the configure.php ?!


nina82

Recommended Posts

hello,

could someone help me:

i am uploading my website to the hosting company, i have to make necessary changes to the configure.php in my admin, but where exactly?

here is my configure.php

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

<?php

/*

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 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://127.0.0.1'); // eg, http://localhost - should not be empty for productive servers

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

define('HTTPS_CATALOG_SERVER', '');

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

define('DIR_FS_DOCUMENT_ROOT', 'C:/Documents and Settings/home/Desktop/web design/xampplite/htdocs/myapplecandy/catalog/'); // where the pages are located on the server

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

define('DIR_FS_ADMIN', 'C:/Documents and Settings/home/Desktop/web design/xampplite/htdocs/myapplecandy/catalog/admin/'); // absolute pate required

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

define('DIR_FS_CATALOG', 'C:/Documents and Settings/home/Desktop/web design/xampplite/htdocs/myapplecandy/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', '127.0.0.1'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'root');

define('DB_SERVER_PASSWORD', '');

define('DB_DATABASE', 'myapplecandy');

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

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

?>

 

-----------

 

and here is the new path on the server:

 

/home/httpd/vhosts/myapplecandy.com/httpdocs/myapplecandy/

/home/httpd/vhosts/myapplecandy.com/httpdocs/myapplecandy/catalog/admin/

/home/httpd/vhosts/myapplecandy.com/httpdocs/myapplecandy/catalog/admin/includes

 

----------

 

please i'm waiting for anyone to answer and help me with this!

Link to comment
Share on other sites

Try to install a new version/copy of osc on the hosting server, and save the configuration settings while installing. Retain the two configure.php files, then upload your osc from your local pc to the server, overwrite all files except the two configure.php. Replace the contents of the db on the server with yours if they are different.

Ken

commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile).

over 20 years of computer programming experience.

Link to comment
Share on other sites

I was having a similar problem and reinstalled oscommerce afresh onto webserver. However the errors messages I was originally having problems with still exist. Can anyone help? Messages noted below

 

The first error message appears at the top of the index.php - store side.

 

Warning: session_save_path(): SAFE MODE Restriction in effect. The script whose uid/gid is 806/503 is not allowed to access owned by uid/gid 0/0 in /home/users/uks08519/html/cotton-on.net/includes/functions/sessions.php on line 148

 

The second errors messages appear when accessing the admin side.

 

Warning: session_save_path(): SAFE MODE Restriction in effect. The script whose uid/gid is 806/503 is not allowed to access owned by uid/gid 0/0 in /home/users/uks08519/html/cotton-on.net/admin/includes/functions/sessions.php on line 110

 

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/users/uks08519/html/cotton-on.net/admin/includes/functions/sessions.php:110) in /home/users/uks08519/html/cotton-on.net/admin/includes/functions/sessions.php on line 67

 

 

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/users/uks08519/html/cotton-on.net/admin/includes/functions/sessions.php:110) in /home/users/uks08519/html/cotton-on.net/admin/includes/functions/sessions.php on line 67

 

Of course these messages do not appear when I am using oscommerce on my mac at local level.

Link to comment
Share on other sites

  • 3 weeks later...

When you click on any of the links in my category box, you are returned to

my index.php page.

 

http://www.dutchflowers.com

 

Please let me know if there is something wrong in my configure.php file copied below.

Please also let me know if there is another file I should be look at if this problem does

not originate in the configure.php file

 

Thanks,

John

 

*/

 

// Define the webserver and path parameters

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

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

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

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

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

define('HTTP_COOKIE_DOMAIN', 'www.dutchflowers.com');

define('HTTPS_COOKIE_DOMAIN', 'commerce4.pair.com');

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

define('HTTPS_COOKIE_PATH', '/dutchflo/catalog/');

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', '/usr/www/users/dutchflo/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', 'db95b.pair.com'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'dutchflo_2');

define('DB_SERVER_PASSWORD', '4FMJnPdk');

define('DB_DATABASE', 'dutchflo_osCommerce');

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

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

?>

Link to comment
Share on other sites

// define our database connection

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

define('DB_SERVER_USERNAME', 'dutchflo_2');

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

define('DB_DATABASE', 'dutchflo_osCommerce');

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

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

?>

 

Don't know if that is your password or not but you might want to remove it if it is.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...