Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Need help with configure.php files


xylene2301

Recommended Posts

Posted

Hello Group,

 

I'm new here and there may be a faq or knowledge base that I've overlooked; if so please excuse...

 

I installed oscommerce using a hosting service wizard.

I had changed my website's root path using the host service's control panel so that I could install oscommerce to a folder other than the root. The install was directed to a folder /osc and proceeded without error.

I then corrected the website's path back to its original setting.

 

When I bring up the catalog, the pages are unformatted (no css) and no images. The image links have incorrect paths and I assume the path to the css is mangled as well.

 

I'm pretty sure that these problems can be corrected by editing the admin and catalog/include configure.php files but I'm unsure of the configure.php option definitions and the files are not commented (perhaps they should be?).

 

First off, are the configure.php options defined in the oscommerce docs and if so, where?

If not, does anyone have any tips or advice?

 

Thanks,

Xylene

Posted
Hello Group,

 

I'm new here and there may be a faq or knowledge base that I've overlooked; if so please excuse...

 

I installed oscommerce using a hosting service wizard.

I had changed my website's root path using the host service's control panel so that I could install oscommerce to a folder other than the root. The install was directed to a folder /osc and proceeded without error.

I then corrected the website's path back to its original setting.

 

When I bring up the catalog, the pages are unformatted (no css) and no images. The image links have incorrect paths and I assume the path to the css is mangled as well.

 

I'm pretty sure that these problems can be corrected by editing the admin and catalog/include configure.php files but I'm unsure of the configure.php option definitions and the files are not commented (perhaps they should be?).

 

First off, are the configure.php options defined in the oscommerce docs and if so, where?

If not, does anyone have any tips or advice?

 

Thanks,

Xylene

 

 

Hello Xylene,

 

There's documentation under Solutions/Documentation and in the forums lots of questions already asked about the config files. Before going on, why don't you put your store directly in the root folder? Could be better for SEO purposes and easier to configure. Just a thought.

Posted

in configure.php have you got preceeding /'s before the paths?

Worth a shot?

 

Also do you a stylesheet.css in your catalog folder?

Posted
Hello Xylene,

 

There's documentation under Solutions/Documentation and in the forums lots of questions already asked about the config files.

 

I see the documentation but I can't find the section that addresses the configure.php files.

 

Before going on, why don't you put your store directly in the root folder? Could be better for SEO purposes and easier to configure. Just a thought.

 

...and that might be what I want to do but I'm doing this work for a website design company and this is an experiment to see how much flexibility I can offer.

Posted
in configure.php have you got preceeding /'s before the paths?

Worth a shot?

 

...not sure what you mean.

 

here's most of the catalog/includes/configure.php file:

 

(I'm particularly curious about the line

define('DIR_FS_CATALOG', 'c:\hosting\webhost4life\member\testsite\osc/catalog/');

How can all that \ / be right?)

 

 

 

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

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

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

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

define('HTTPS_COOKIE_DOMAIN', '');

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

define('HTTPS_COOKIE_PATH', '');

define('DIR_WS_HTTP_CATALOG', '/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', 'c:\hosting\webhost4life\member\testsite\osc/catalog/');

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

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

 

 

Also do you a stylesheet.css in your catalog folder?

 

yes.

Posted

I cant list your images from their folder I get:

 

Directory Listing Denied

This Virtual Directory does not allow contents to be listed.

 

Check the permissions if your images folder should be somthing like 745

Posted

Try this:

 

'c:/hosting/webhost4life/member/testsite/osc/catalog/');

 

Be aware that no domain is being used in the above pathway it resolves to a test folder - so any use of your domain in the configure.php files will probably be incorrect.

 

Vger

Posted

I'm really having a hard time with this configuration as I don't have either examples or definitions for what's exactly expected in the configure.php files.

I'm suprised that, as important as these files files are in the installation process, there's no specific section that covers them in the docs.

If I'm wrong and anyone knows exactly where I can find this info or if someone would post their configure.php files (both admin and cataog configure files, with the database info removed), I would be very appreciative.

Posted

Perhaps it's just me, but I find it a little ironic that you are struggling when the website you are trying to set up is called MCD Builds Great Sites .com

 

If the install had worked correctly you wouldn't need to touch your configure.php files, because they'd be set up correctly. Have you looked at the first few pages of the Quick Install Guide thread? It's pinned to the top of this forum.

 

Vger

Posted

Yes Vger...

The reason for the difficult install is that it was done via my hosting service's ecommerce wizard. I used some tricks to have the wizard install osc to a folder other than the root folder, which worked, but the wizard wrote the config files incorrectly.

 

X

Posted

Delete the current install. They will be using an out of date version of osCommerce anyway. Download the zip file of the latest version from downloads at www.oscommerce.com, unzip on your 'puter and upload to your site.

 

Go to phpMyAdmin and drop all of the tables in your osCommerce database.

 

Then go to http://www.yourdomain.com/install and use the osCommerce installer.

 

Vger

Posted

Thanks for your help Vger.

I have a few questions for you:

 

Where does my install of oscommerce keep its version info?

 

Does the oscommerce installer ask where its catalog should be installed? (...and then write the config files properly, I assume.)

(If yes, then that's definitely the way to go :))

 

Can multiple instances of oscommerce on a site function properly if the catalogs are in different folders and they have separate databases?

 

 

mcdbuildsgreatsites.com is just MCD's testsite where we learn before unleashing on actual clients. I'm MCD's programmer and I've built shopping carts of my own but never used or installed a prefab one, so this is a learning process. I gravitated to oscommerce because of the installer on the host service (which I will probably not be using) and the existence of this user forum.

 

Thanks again,

X

Archived

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

×
×
  • Create New...