Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

A guide to the configure.php files


Gil_e_n

Recommended Posts

Hey guys, I need so much help here. I've copied an oSC from one site to another (production) and I've been unable to get to the proper admin/configure.php.

 

Admin site keeps telling me "ERROR_CATALOG_IMAGE_DIRECTORY_DOES_NOT_EXIST".

 

I could see that this one, and other labels as well, are shown as their variable names, not their values. For example, when I clic on a product, I see on the right pane:

 

TEXT_DATE_ADDED 01/12/2009

TEXT_LAST_MODIFIED 02/12/2009

 

TEXT_IMAGE_NONEXISTENT

 

TEXT_PRODUCTS_PRICE_INFO $0.00

TEXT_PRODUCTS_QUANTITY_INFO 0

 

TEXT_PRODUCTS_AVERAGE_RATING 0.00%

I tried to reinstall but didn't work, and I switched the definitions from /public_html to / to nothing and back again for all and every line... The site is www.MYSITE.cl and osC is installed under /public_html/catalog (or /catalog if you prefer). Then admin/configure.php file is:

 

<?php
 define('HTTP_SERVER', 'http://www.MYSITE.cl/');
 define('HTTP_CATALOG_SERVER', 'http://www.MYSITE.cl/catalog');
 define('HTTPS_CATALOG_SERVER', 'https://www.MYSITE.cl/catalog');
 define('ENABLE_SSL_CATALOG', 'false');
 define('DIR_FS_DOCUMENT_ROOT', '/catalog/');
 define('DIR_WS_ADMIN', '/catalog/admin/');
 define('DIR_FS_ADMIN', '/admin/');
 define('DIR_WS_CATALOG', 'catalog/');
 define('DIR_FS_CATALOG', '/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/');

...yada yada ?>

Should I edit this file? Am I missing something in some tables in the database? WHAT??!! It's driving me out of my mind...

 

Any help will be REMARKABLY appreciated.

 

(BTW, the production site works fine but doesn't show any images, obviously because no image could be uploaded.)

 

TIA

Bernardo

Link to comment
Share on other sites

  • Replies 83
  • Created
  • Last Reply

Make the following changes.

 define('HTTP_SERVER', 'http://www.MYSITE.cl');
 define('HTTP_CATALOG_SERVER', 'http://www.MYSITE.cl');
 define('HTTPS_CATALOG_SERVER', 'https://www.MYSITE.cl');

 define('ENABLE_SSL_CATALOG', 'false');

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

 define('DIR_WS_ADMIN', '/catalog/admin/');
 define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . '/catalog/admin/');

 define('DIR_WS_CATALOG', '/catalog/');
 define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . '/catalog/');

Link to comment
Share on other sites

  • 2 months later...

Hello! (Hello?)

 

 

I've moved my store from its development location to its new location. I was very hopeful of getting no trouble (or not much) because the hosting service (and provider) is IDENTICAL, so I only had to change my www.mysite.com references, my /home/www/mysite/catalog/ -type references and my database name and password, in both the config files.

 

Shazam! It worked! My database and page layouts all survived!

 

EXCEPT >_<

 

All of my images have unlinked somehow. Product images, spacers, Easy Graphical Borders, arrows, buttons, every image in both the front end and admin area. How can this be?

 

So all of these still work fine:

 

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

 

But this one doesn't ?? :blink:

 

define('DIR_WS_IMAGES', 'images/');

 

 

(I've tried changing it to '/images/' like I saw somewhere in this thread, but no surprise it didn't work.)

 

 

CLUE: the empty boxes displayed are all the correct size for the missing graphics, rather than square boxes with a red x. Take a look here. You can even see the browser trying to find the images in exactly the right place! But it fails somehow.

 

 

It must be something really simple, surely. Pleeease help!

.

Link to comment
Share on other sites

I'm having trouble getting my site to work, but I can't even figure out if this is where I put the message. The problem is in the configuration file, but I've tried everything there is to try, every possible combination imaginable.

 

For now, just let me know if I am even posting in the right way.

 

Thanks

 

What kind of trouble do you have?

Link to comment
Share on other sites

  • 1 month later...

hei boss many people said osCsid show in url show cause i do some thing wrong in my config and this mine

<?php

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

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

define('ENABLE_SSL', false);

define('HTTP_COOKIE_DOMAIN', 'localhost');

define('HTTPS_COOKIE_DOMAIN', 'localhost');

define('HTTP_COOKIE_PATH', '/dw-collection/');

define('HTTPS_COOKIE_PATH', '/dw-collection/');

define('DIR_WS_HTTP_CATALOG', '/dw-collection/');

define('DIR_WS_HTTPS_CATALOG', '/dw-collection/');

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', 'C:/wamp/www/dw-collection//');

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

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

 

define('DB_SERVER', 'localhost');

define('DB_SERVER_USERNAME', 'root');

define('DB_SERVER_PASSWORD', '');

define('DB_DATABASE', 'dw-collection');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

?>

i hope you wanna help me find the wrong config of my configure.php cause every thing i do it doesn't work the osCsid still show up in my url please help me.:'( :'(

 

thnx b 4

 

regard

Link to comment
Share on other sites

  • 2 months later...
  • 1 month later...

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

# Begin Ultimate SEO V2.2d 
Options +FollowSymLinks
RewriteEngine On 

 # RewriteBase instructions 
 # Change RewriteBase dependent on how your shop is accessed as below. 
 # https://www.mysite = ***** / 
 # https://www.mysite/catalog/ = ***** /catalog/  
 # https://www.mysite/catalog/shop/ = ****** /catalog/shop/ 

 # Change the following line using the instructions above  

RewriteBase /"folder where shop is located" /

RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-m-(.*).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pi-(.*).html$ popup_image.php?pID=$2&%{QUERY_STRING}
RewriteRule ^(.*)-by-(.*).html$ all-products.php?fl=$2&%{QUERY_STRING}
RewriteRule ^(.*)-t-(.*).html$ articles.php?tPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-a-(.*).html$ article_info.php?articles_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-au-(.*).html$ articles.php?authors_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pr-(.*).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pri-(.*).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-f-(.*).html$ faqdesk_info.php?faqdesk_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-fc-(.*).html$ faqdesk_index.php?faqPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-fri-(.*).html$ faqdesk_reviews_info.php?faqdesk_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-fra-(.*).html$ faqdesk_reviews_article.php?faqdesk_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-i-(.*).html$ information.php?info_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-links-(.*).html$ links.php?lPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pm-([0-9]+).html$ info_pages.php?pages_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-n-(.*).html$ newsdesk_info.php?newsdesk_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-nc-(.*).html$ newsdesk_index.php?newsPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-nri-(.*).html$ newsdesk_reviews_info.php?newsdesk_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-nra-(.*).html$ newsdesk_reviews_article.php?newsdesk_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-po-([0-9]+).html$ pollbooth.php?pollid=$2&%{QUERY_STRING}
# End Ultimate SEO V2.2d

 

 

www.dcsstore.net.au

 

can you please help i'm getting an

Internal Server Error

 

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

 

Please contact the server administrator, [email protected] 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.

 

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

 

Thanks DJ

Link to comment
Share on other sites

  • 1 month later...

I'll be changing hosts as soon as I can and am wondering, wouldn't it be easiest to back up my current store, then at my new host, do a fresh install of osC so all the configure files are set up okay, and then just upload to overwrite all the other files from my back up (i.e. upload my back up except for the back up's configure files)?

 

Does anyone know of any problems with this way of doing it?

Link to comment
Share on other sites

  • 2 months later...

Example of that error here

 

The problem is always in the first file metioned in the error, and the line number is at the end.

 

In that example:

 

Warning: Cannot modify header information - headers already sent by (output started at /home/content/s/t/a/stacie1818/html/index.php:2)

 

The problme is in index.php, line 2.

 

The cause/fix is here: Headers Already Sent

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

hi guys,

 

I'm new to this forum and to OsCommerce and i badly need assistance from all you experts out there.

 

I tried to install this addon. Followed the instructions to the T but my store won't load at all after that. I can't even access my store admin dashboard now...

 

I got an Apache server error before that. Error 500. Then what I did was re-upload all the 4 php files (original backup copies) that were told to be modified back to where it belong but my site loads a blank empty page up.

 

Any idea what went wrong?

 

I suspect it might be due to the .htacess that I upload initially & if i could get this right, if my store is not stored in any subdirectory...www.abc.com, would this be the correct .htacess file?

 

# Begin Ultimate SEO V2.2d

Options +FollowSymLinks

RewriteEngine On

 

# RewriteBase instructions

# Change RewriteBase dependent on how your shop is accessed as below.

# http://www.abc.com = RewriteBase /

# http://www.abc.com/catalog/ = RewriteBase /catalog/

# http://www.abc.com/catalog/shop/ = RewriteBase /catalog/shop/

 

# Change the following line using the instructions above

 

RewriteBase /

 

RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}

RewriteRule ^(.*)-m-(.*).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pi-(.*).html$ popup_image.php?pID=$2&%{QUERY_STRING}

RewriteRule ^(.*)-by-(.*).html$ all-products.php?fl=$2&%{QUERY_STRING}

RewriteRule ^(.*)-t-(.*).html$ articles.php?tPath=$2&%{QUERY_STRING}

RewriteRule ^(.*)-a-(.*).html$ article_info.php?articles_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-au-(.*).html$ articles.php?authors_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pr-(.*).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pri-(.*).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-f-(.*).html$ faqdesk_info.php?faqdesk_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-fc-(.*).html$ faqdesk_index.php?faqPath=$2&%{QUERY_STRING}

RewriteRule ^(.*)-fri-(.*).html$ faqdesk_reviews_info.php?faqdesk_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-fra-(.*).html$ faqdesk_reviews_article.php?faqdesk_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-i-(.*).html$ information.php?info_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-links-(.*).html$ links.php?lPath=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pm-([0-9]+).html$ info_pages.php?pages_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-n-(.*).html$ newsdesk_info.php?newsdesk_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-nc-(.*).html$ newsdesk_index.php?newsPath=$2&%{QUERY_STRING}

RewriteRule ^(.*)-nri-(.*).html$ newsdesk_reviews_info.php?newsdesk_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-nra-(.*).html$ newsdesk_reviews_article.php?newsdesk_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-po-([0-9]+).html$ pollbooth.php?pollid=$2&%{QUERY_STRING}

# End Ultimate SEO V2.2d

Link to comment
Share on other sites

hi........

 

i have a problem with the fresh install. i am not able to add a product to the cart.

please help me in getting out of this.

 

here are my config settings:

 

<?php

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

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

define('ENABLE_SSL', false);

define('HTTP_COOKIE_DOMAIN', 'localhost');

define('HTTPS_COOKIE_DOMAIN', 'localhost');

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

define('HTTPS_COOKIE_PATH', '/oscommerce1/');

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

define('DIR_WS_HTTPS_CATALOG', '/oscommerce1/');

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', '/var/www/html/oscommerce1/');

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

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

 

define('DB_SERVER', 'localhost');

define('DB_SERVER_USERNAME', 'root');

define('DB_SERVER_PASSWORD', '');

define('DB_DATABASE', 'oscommerce1');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

?>

 

 

 

for admin

 

<?php

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

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

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

define('ENABLE_SSL_CATALOG', 'false');

define('DIR_FS_DOCUMENT_ROOT', '/var/www/html/oscommerce1/');

define('DIR_WS_ADMIN', '/oscommerce1/admin1/');

define('DIR_FS_ADMIN', '/var/www/html/oscommerce1/admin1/');

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

define('DIR_FS_CATALOG', '/var/www/html/oscommerce1/');

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('DB_SERVER', 'localhost');

define('DB_SERVER_USERNAME', 'root');

define('DB_SERVER_PASSWORD', '');

define('DB_DATABASE', 'oscommerce1');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

?>

 

 

thanks

Link to comment
Share on other sites

  • 2 weeks later...

I am having trouble setting up my configure file. I have tried copying the initial post in this thread to no avail. I am not sure what I am missing.

 

here is a link to the site in question: http://www.sackling.com/catalog/cat_coveralls_all.php

 

the site is not working right now because I am currently installing Ultimate SEO urls and my configure.php file is apparently not setup correctly. So that link wont work anyways but just for the hell of it here is the login:

 

login: sackling

password: testsite

 

here are my configure files with the database login info changed up.

 

catalog/includes/configure.php:

 

<?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://www.sackling.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://www.sackling.com/catalog/'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', false); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'www.sackling.com');
 define('HTTPS_COOKIE_DOMAIN', 'https://www.sackling.com');
 define('HTTP_COOKIE_PATH', '/www.sackling.com/catalog/');
 define('HTTPS_COOKIE_PATH', '/catalog/');
 define('DIR_WS_HTTP_CATALOG', '/catalog/');
 define('DIR_WS_HTTPS_CATALOG', '');

 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_IMAGES_CAT', 'images/product_mid/');
 define('LARGE_IMAGES', 'images/product_big/');
 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_WS_CATALOG', '/catalog/');
 define('DIR_FS_CATALOG', '/www.sackling.com/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', 'server'); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', 'user');
 define('DB_SERVER_PASSWORD', 'password');
 define('DB_DATABASE', 'database_name');
 define('USE_PCONNECT', 'false'); // use persistent connections?
 define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'
?>

 

 

admin/includes/configure.php:

 

<?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://www.sackling.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTP_CATALOG_SERVER', 'http://www.sackling.com/catalog/');
 define('HTTPS_CATALOG_SERVER', 'https://www.sackling.com/catalog/');
 define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', '/www.sackling.com/catalog/'); // where the pages are located on the server
 define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required
 define('DIR_FS_ADMIN', '/www.sackling.com/catalog/admin'); // absolute pate required
 define('DIR_WS_CATALOG', '/catalog/'); // absolute path required
 define('DIR_FS_CATALOG', '/www.sackling.com/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/');

 /* not sure why I ever added these two 
 define('DIR_WS_IMAGES_CAT', 'images/product_mid/');
 define('', 'images/product_mid/'); */

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

// define our database connection
 define('DB_SERVER', 'database'); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', 'user');
 define('DB_SERVER_PASSWORD', 'pass');
 define('DB_DATABASE', 'database_name');
 define('USE_PCONNECT', 'false'); // use persisstent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>

 

any help letting me know what I am doing wrong here is greatly appreciated!

Link to comment
Share on other sites

 

the site is not working right now because I am currently installing Ultimate SEO urls and my configure.php file is apparently not setup correctly. So that link wont work anyways but just for the hell of it here is the login:

 

 

Don't you think you ought to have a working shop before you try and modify it?

 

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

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

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

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

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

define('HTTP_COOKIE_PATH', '/www.sackling.com/catalog/');

https server does NOT include any directories...

Cookie domains do NOT include any http://

 

 

 

define('DIR_FS_CATALOG', '/www.sackling.com/catalog/');

This does not look right to me. It should probably be something like /home/www.sackling.com/public_html/catalog but we really cannot tell for sure because we do not know your true file structure. All of your paths should start at your home directory, whatever that is. But hey, maybe that is your home directory. I don't really know.

 

 

Pretty much the same stuff in the admin configure.

 

 

Edit: Actually, I don't even see a catalog directory. If you think you have a working installation somewhere is it in an aliased directory?

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

Don't you think you ought to have a working shop before you try and modify it?

 

 

https server does NOT include any directories...

Cookie domains do NOT include any http://

 

 

 

This does not look right to me. It should probably be something like /home/www.sackling.com/public_html/catalog but we really cannot tell for sure because we do not know your true file structure. All of your paths should start at your home directory, whatever that is. But hey, maybe that is your home directory. I don't really know.

 

 

Pretty much the same stuff in the admin configure.

 

 

Edit: Actually, I don't even see a catalog directory. If you think you have a working installation somewhere is it in an aliased directory?

 

Thanks for the reply. The site actually was actually working perfectly before I decided to go for this contribution. And then on the contributions forum I was led here to make sure my configure file was correct. The catalog file is not aliased. Actually that is the issue... There is an .htaccess file that is added to the catalog folder that when added is making it "dissappear" in the index but it is still very much there in the ftp.

 

In any case. I just want to make sure I have the configure file setup correctly. I contacted my host and found the real root which I added. Does everything look correct now in your opinion?

 

<?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://www.sackling.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://www.sackling.com'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', false); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'www.sackling.com');
 define('HTTPS_COOKIE_DOMAIN', 'www.sackling.com');
 define('HTTP_COOKIE_PATH', '/www.sackling.com/catalog/');
 define('HTTPS_COOKIE_PATH', '/catalog/');
 define('DIR_WS_HTTP_CATALOG', '/catalog/');
 define('DIR_WS_HTTPS_CATALOG', '');

 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_IMAGES_CAT', 'images/product_mid/');
 define('LARGE_IMAGES', 'images/product_big/');
 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_WS_CATALOG', '/catalog/');
 define('DIR_FS_CATALOG', '/path_to/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', 'dbservername'); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', 'username');
 define('DB_SERVER_PASSWORD', 'userpassword');
 define('DB_DATABASE', 'name_of_database');
 define('USE_PCONNECT', 'false'); // use persistent connections?
 define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'
?>

Link to comment
Share on other sites

Thanks for the reply. The site actually was actually working perfectly before I decided to go for this contribution. And then on the contributions forum I was led here to make sure my configure file was correct. The catalog file is not aliased. Actually that is the issue... There is an .htaccess file that is added to the catalog folder that when added is making it "dissappear" in the index but it is still very much there in the ftp.

 

In any case. I just want to make sure I have the configure file setup correctly. I contacted my host and found the real root which I added. Does everything look correct now in your opinion?

 

<?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://www.sackling.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://www.sackling.com'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', false); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'www.sackling.com');
 define('HTTPS_COOKIE_DOMAIN', 'www.sackling.com');
 define('HTTP_COOKIE_PATH', '/www.sackling.com/catalog/');
 define('HTTPS_COOKIE_PATH', '/catalog/');
 define('DIR_WS_HTTP_CATALOG', '/catalog/');
 define('DIR_WS_HTTPS_CATALOG', '');

 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_IMAGES_CAT', 'images/product_mid/');
 define('LARGE_IMAGES', 'images/product_big/');
 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_WS_CATALOG', '/catalog/');
 define('DIR_FS_CATALOG', '/home/gostwear/www.sackling.com/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', 'dbservername'); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', 'username');
 define('DB_SERVER_PASSWORD', 'userpassword');
 define('DB_DATABASE', 'name_of_database');
 define('USE_PCONNECT', 'false'); // use persistent connections?
 define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'
?>

That's probably a lot closer. Now change both of your cookie paths to '.sackling.com' and your https catalog to '/catalog/' even though you are not using https just yet.

 

Finally, remove the .htaccess file so we can see a good working shop. Once the shop is working again if the .htaccess breaks it then let's look at the code in the .htaccess file.

 

Oh yeah, you probably want to store the session in mysql, although I have had no experience with 2.3 yet.

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

That's probably a lot closer. Now change both of your cookie paths to '.sackling.com' and your https catalog to '/catalog/' even though you are not using https just yet.

 

Finally, remove the .htaccess file so we can see a good working shop. Once the shop is working again if the .htaccess breaks it then let's look at the code in the .htaccess file.

 

Oh yeah, you probably want to store the session in mysql, although I have had no experience with 2.3 yet.

 

Ok I made the changes to the configure file so it looks like this now:

 

<?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://www.sackling.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://www.sackling.com'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', false); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'www.sackling.com');
 define('HTTPS_COOKIE_DOMAIN', 'www.sackling.com');
 define('HTTP_COOKIE_PATH', '.sackling.com');
 define('HTTPS_COOKIE_PATH', '.sackling.com');
 define('DIR_WS_HTTP_CATALOG', '/catalog/');
 define('DIR_WS_HTTPS_CATALOG', '/catalog/');

 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_IMAGES_CAT', 'images/product_mid/');
 define('LARGE_IMAGES', 'images/product_big/');
 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_WS_CATALOG', '/catalog/');
 define('DIR_FS_CATALOG', '/home/gostwear/www.sackling.com/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', 'mysql.site.com'); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', 'user');
 define('DB_SERVER_PASSWORD', 'pass');
 define('DB_DATABASE', 'database');
 define('USE_PCONNECT', 'false'); // use persistent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>

 

It still isnt working with the .htaccess file in place. and will still work with it removed. I'll take it off now just to prove it to you... ok its off now and the site is up again (pictures are missing but that is just because this is a test site. go to this link http://www.sackling.com/catalog/cat_coveralls_pollycotton.php

 

here is the code in the htaccess file:

 

# Begin Ultimate SEO V2.2d 
Options +FollowSymLinks
RewriteEngine On 

 # RewriteBase instructions 
 # Change RewriteBase dependent on how your shop is accessed as below. 
 # http://www.mysite.com = RewriteBase / 
 # http://www.mysite.com/catalog/ = RewriteBase /catalog/  
 # http://www.mysite.com/catalog/shop/ = RewriteBase /catalog/shop/ 

 # Change the following line using the instructions above  

RewriteBase /catalog/

RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-m-(.*).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pi-(.*).html$ popup_image.php?pID=$2&%{QUERY_STRING}
RewriteRule ^(.*)-by-(.*).html$ all-products.php?fl=$2&%{QUERY_STRING}
RewriteRule ^(.*)-t-(.*).html$ articles.php?tPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-a-(.*).html$ article_info.php?articles_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-au-(.*).html$ articles.php?authors_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pr-(.*).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pri-(.*).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-f-(.*).html$ faqdesk_info.php?faqdesk_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-fc-(.*).html$ faqdesk_index.php?faqPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-fri-(.*).html$ faqdesk_reviews_info.php?faqdesk_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-fra-(.*).html$ faqdesk_reviews_article.php?faqdesk_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-i-(.*).html$ information.php?info_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-links-(.*).html$ links.php?lPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pm-([0-9]+).html$ info_pages.php?pages_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-n-(.*).html$ newsdesk_info.php?newsdesk_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-nc-(.*).html$ newsdesk_index.php?newsPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-nri-(.*).html$ newsdesk_reviews_info.php?newsdesk_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-nra-(.*).html$ newsdesk_reviews_article.php?newsdesk_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-po-([0-9]+).html$ pollbooth.php?pollid=$2&%{QUERY_STRING}
# End Ultimate SEO V2.2d

 

Any Idea? I thin this may be best suited to be posted in that contributions forum now that my configure.php is in better shape. Thanks for your help.

Link to comment
Share on other sites

Ok, I goofed on the cookie. Mixed them up. The cookie path should be /catalog/ and the cookie domain should be .sackling.com (notice the period in front of sackling.com

 

 

Lets look at your working shop now, and then we can all look at the .htaccess as there are much better diagnosticians here than me...

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

It appears to me that...

 

1. Your site is already using a URL SEO. Do you have 'Use Search Engine Safe URLs' enabled (if it is in that version.) If so, turn it off.

 

2. If you are on 2.3.1 then I do not think that the add on that you are trying to use is necessary, and will not work anyway because the URLs that you shop is displaying does not match the expected convention of the add on.

 

Give others a chance to evaluate it as it is...and me too. I need to look at my 2.3.1 install..

 

 

After looking...you are using a template which already alters the stock url scheme of osCommerce. I think you are either stuck with what you have, or you will have to take the chance of uninstalling the seo part of the template prior to attempting to install the Ultimate SEO URLs add on.

 

That's a big chance for someone without a high lever of technical osC experience.

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

It appears to me that...

 

1. Your site is already using a URL SEO. Do you have 'Use Search Engine Safe URLs' enabled (if it is in that version.) If so, turn it off.

 

2. If you are on 2.3.1 then I do not think that the add on that you are trying to use is necessary, and will not work anyway because the URLs that you shop is displaying does not match the expected convention of the add on.

 

Give others a chance to evaluate it as it is...and me too. I need to look at my 2.3.1 install..

 

 

After looking...you are using a template which already alters the stock url scheme of osCommerce. I think you are either stuck with what you have, or you will have to take the chance of uninstalling the seo part of the template prior to attempting to install the Ultimate SEO URLs add on.

 

That's a big chance for someone without a high lever of technical osC experience.

 

The page I sent you to is a custom made page by me. So yes I think the url is seo safe. However if you click on any of the products, the link will look like a regular oscommerce link like this for instance:

 

http://www.sackling.com/catalog/product_info.php?products_id=41

 

If I enable the seo addon the url link changes to this:

 

http://www.sackling.com/catalog/black-coverall-p-41.html

 

which I think is best for seo purposes i think? that second link is supposed to redirect via the htaccess file from my understanding but that is not happening and for some reason the htaccess is making the whole directory dissappear..

 

I am on version 2.2-MS2 btw.

 

 

**The main reason I was installing htis contribution was because I thought it would help me get rid of the OSCID session IDs at the end of every link. Now that the configure file is fixed though that is all taken care of so thank you very muchly!**

Link to comment
Share on other sites

The page I sent you to is a custom made page by me. So yes I think the url is seo safe. However if you click on any of the products, the link will look like a regular oscommerce link like this for instance:

 

http://www.sackling.com/catalog/product_info.php?products_id=41

 

If I enable the seo addon the url link changes to this:

 

http://www.sackling.com/catalog/black-coverall-p-41.html

 

which I think is best for seo purposes i think? that second link is supposed to redirect via the htaccess file from my understanding but that is not happening and for some reason the htaccess is making the whole directory dissappear..

 

I am on version 2.2-MS2 btw.

 

 

**The main reason I was installing htis contribution was because I thought it would help me get rid of the OSCID session IDs at the end of every link. Now that the configure file is fixed though that is all taken care of so thank you very muchly!**

I didn't go to your custom page, I went to you main catalog and the url's look like this:

http://www.gostwear.com/product_sites/pants/128B.htm

 

That is either not osCommerce or has a SEO URL add on. I guess maybe that was an old html site? Glad you got the osCID took care of.

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

I didn't go to your custom page, I went to you main catalog and the url's look like this:

http://www.gostwear.com/product_sites/pants/128B.htm

 

That is either not osCommerce or has a SEO URL add on. I guess maybe that was an old html site? Glad you got the osCID took care of.

 

Yea sorry about that. If you go to the main catalog it redirects to an different base url (my current active site) I just was lazy to switch the redirect so you'd have to go to the page I linked to.

 

That old site is not using any sort of oscommerce besides it's link to the shopping cart.

Link to comment
Share on other sites

  • 1 month later...

I'll be changing hosts as soon as I can and am wondering, wouldn't it be easiest to back up my current store, then at my new host, do a fresh install of osC so all the configure files are set up okay, and then just upload to overwrite all the other files from my back up (i.e. upload my back up except for the back up's configure files)?

 

Does anyone know of any problems with this way of doing it?

 

This, in my opinion, is the easiest way as they are the only files that dont change with addons etc, there are the odd exceptions, but you can find the changes quite easily if necessary.

 

Hope this help somebody.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...