Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Should s files/folders be on secure server?


PurplePenny

Recommended Posts

When I ran osC installation I told it where the secure server was but nothing ended up in there. Should there be some folders/files on the secure server and if so which ones?

 

When I try to either login to the catalogue as an existing account or create a new one I get a 404 error. It is trying to access something in https but I don't know what.

 

PurplePenny

Link to comment
Share on other sites

If your secure server has a different file space, you will need to install osCommerce on there separately. On the first screen, when it asks if you want to import the database, select no because you did so already. Note: install always involves copying the files manually; the install just uploads the database and creates the includes/configure.php files.

 

It is reasonable in that case to delete the admin area from the non-secure server. You may have to edit admin/includes/configure.php manually to get the HTTP_SERVER right.

 

Hth,

Matt

Link to comment
Share on other sites

Thanks for the reply - sorry to be so dense but I don't know a thing about PHP or MySQL and I haven't had the chance to get hold of any books on the subject.

 

If your secure server has a different file space, you will need to install osCommerce on there separately.

 

In my root directory I have httpdocs which is unsecure and httpsdocs which is the secure space.

 

Note: install always involves copying the files manually; the install just uploads the database and creates the includes/configure.php files.

 

Can't I just copy the relevant files from http to https? If I install the whole thing in both areas won't I use up an awful lot of server space? If I knew what had to go where I could just move or copy files and not end up with redundant duplicates.

 

Thanks,

 

PurplePenny

Link to comment
Share on other sites

If your host will allow it, you can just link httpsdocs to httpdocs. Otherwise: The admin area only needs to be in one place (preferably httpsdocs). The straight SSL pages can be just in httpsdocs (checkout_*.php, account*.php, login.php, create_account.php). index.php needs to be in both as it is sometimes accessed through SSL. The includes and images directory trees need to be in both.

 

Linking httpsdocs to httpdocs (or repointing SSL to httpdocs in httpd.conf) would be simplest if space is at a premium.

 

Hth,

Matt

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...