Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

problems with configure.php -- please help!


StephenGlynn

Recommended Posts

I've clearly misunderstood something basic in the installation instructions but I can't see what it is.

 

I'm trying to install osCommerce on my home pc (Windows XP). I realise I need to edit the configure.php files in /catalog/admin/includes and /catalog/includes but the damn things won't stay edited.

 

I've tried deleting them and creating new configure.php files, into which pasted the code I want. I then try to run the installation programme and it ends up telling me that I " don't have permission to access /catalog/install/://localhost/catalog/index.php on this server".

 

When I go back and check the configure.php files they've somehow reverted to the original version that I'd deleted.

 

Where am I going wrong? The installation program must find these settings from somewhere -- where is it, so I can fix it there?

 

Please someone help -- I've wasted three days on this and it's driving me mad.

 

Steve

Link to comment
Share on other sites

The information stored in the configure.php files is its own. It does not pull info from anywhere else after they are created. It sounds like you have some permissions set wrong on them, and when trying to save it's not actually writing to the file.

Kenneth S

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

Customer "Are you a real programmer?"

Me "No, but I did stay at a Holiday Inn Express last night"

Link to comment
Share on other sites

No, that can't possibly be the case.

 

As I said, I've tried deleting the configure.php files completely and then created completely new configure.php files into which I've pasted the code I want. I've saved them, and then, to test, have reopened them and found the code I'd just pasted in still there.

 

However, if I then close them again and try to install the shop I end up with an error message. I then open the configure.php files I'd created five minutes previously and discover that they've changed back into the files I'd deleted.

 

I certainly haven't changed them back so something has happened in between me pointing the browser at

 

http://localhost/catalog/install/install.php

 

and finishing the process.

 

Specifically, I've discovered, it happens at Step 5. I know this because I've tried making my configure.php files read only. At stage 5, when I click Continue, I get an error message telling that "the confguration files do not exist or permission levels are not set". I then change the permission levels, retry, and the damn things change back into what they were before I deleted and replaced them, causing me to get an error message telling me I don't have permission to access /catalog/install/://localhost/catalog/index.php on this server.

 

Something's causing the installation process to overwrite the configure files at this point and it's taking from somewhere the information on what to overwrite them with. I want to stop it from doing this.

 

I've tried changing them back to what I want them to be at this stage and pressing "refresh" on my browser, but that doesn't do any good.

 

I've read the instructions at oscommerce.com/docsInstallNew and I can't understand what it's asking me to do at this point in the process.

 

Steve

Link to comment
Share on other sites

Then only use the installation once then edit your files by hand. All the installation does is modify those configure files and creates the database.

Kenneth S

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

Customer "Are you a real programmer?"

Me "No, but I did stay at a Holiday Inn Express last night"

Link to comment
Share on other sites

I've tried doing that, again, but it doesn't do any good. I still can't get into the store. I'm assured the following code should work for an installation on a standalone pc -- maybe I'm wrong about this?

 

 

The code I've got for admin/configures.php is

 

<?php

/*

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

Catalog/includes/configure

 

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

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

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

define('HTTP_COOKIE_DOMAIN', 'localhost');

define('HTTPS_COOKIE_DOMAIN', '');

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

define('HTTPS_COOKIE_PATH', '');

define('DIR_WS_HTTP_CATALOG', 'localhost/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:/Program Files/Apache Group/Apache2/htdocs/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', 'localhost'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'root');

define('DB_SERVER_PASSWORD', '');

define('DB_DATABASE', 'osCommerce');

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

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

 

and for catalog/configure.php it's

 

<?php

/*

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

Catalog/includes/configure

 

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

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

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

define('HTTP_COOKIE_DOMAIN', 'localhost');

define('HTTPS_COOKIE_DOMAIN', '');

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

define('HTTPS_COOKIE_PATH', '');

define('DIR_WS_HTTP_CATALOG', 'localhost/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:/Program Files/Apache Group/Apache2/htdocs/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', 'localhost'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'root');

define('DB_SERVER_PASSWORD', '');

define('DB_DATABASE', 'osCommerce');

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

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

 

Steve

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...