Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Any Help is GREAT!


ricktbo

Recommended Posts

OK go to www.360surplus.com/catalog you will see where im stuggling. I tried to install it via /install but when i got to the step asking for /install/oscommerce.php it says its not found. i have re-uploaded it MANY times and nothing... can anyone help? THANKS!

Link to comment
Share on other sites

ok, lETS START WITH THE ERROR MESSAGES (oops, caps lock)

 

First one, all you have to do is delete the install directory, you've installed so now you dont need it!

 

Secondly, configure.php stores all your sensitive info (database passwords etc) so that file must be secured so that visitors to your site cant access it. See knowledgebase or search this forum for this!

 

Thirdly, you need to sreate a sessions directory. I don't ever remember having to do this but again search KB or the forum for instructions.

 

Now on to why theres no images etc...

 

You need to set up the various paths in your configure.php file so that oscommerce knows where to find your images, stylesheet etc.

 

something like....

  define('HTTP_SERVER', 'http://www.mysite.com'); // eg, http://localhost - should not be empty for productive servers
define('HTTPS_SERVER', 'https://www.mysite.com'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', true); // 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', '/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://www.mysite.com/catalog');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

Light, in the absence of eyes, illuminates nothing.

Link to comment
Share on other sites

define('HTTP_COOKIE_DOMAIN', 'www.yourdomain.com'); //not 'localhost'

 

define('DIR_FS_CATALOG', 'http://www.mysite.com/catalog'); //sorry - just plain wrong!

 

for example, something like (depends on server):

 

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

 

or:

 

define('DIR_FS_CATALOG', '/usr/local/apache/htdocs/catalog');

 

Thirdly, you need to sreate a sessions directory. I don't ever remember having to do this but again search KB or the forum for instructions.

 

Edit the last line of both configure.php files to read 'mysql' where indicated - which stores sessions in the database and not in files in a 'tmp' folder.

 

Now on to why theres no images etc...

 

It's usually because the folder does not have permissions set to 755 or 777.

 

I know you were trying to help Brian, but much of your post was wrong and would have confused people even more if they'd tried to follow the advice.

 

And finally, if you're having trouble with the install read the Quick Install Guide - link below my name.

 

Vger

Link to comment
Share on other sites

This is usually only a problem on Windows servers. Do the install manually. Provided you have set up a blank database and you have access to phpMyAdmin use the SQL tab in phpMyAdmin and then the Browse function to locate the sql file on your own computer, click Go and the default database will be installed. Then edit both configure.php files manually. If you need help configuring them then come back for more advice.

 

Vger

OK go to www.360surplus.com/catalog you will see where im stuggling. I tried to install it via /install but when i got to the step asking for /install/oscommerce.php it says its not found. i have re-uploaded it MANY  times and nothing... can anyone help? THANKS!

Link to comment
Share on other sites

define('HTTP_COOKIE_DOMAIN', 'www.yourdomain.com'); //not 'localhost'

 

define('DIR_FS_CATALOG', 'http://www.mysite.com/catalog'); //sorry - just plain wrong!

 

Your quite right, was being lazy and copied the config from another post, probably should have read it.

 

Now on to why theres no images etc...

 

 

It's usually because the folder does not have permissions set to 755 or 777

Sorry, but from looking the properties for the missing images that's unquestionably a config problem!

Light, in the absence of eyes, illuminates nothing.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...