Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

New Install, SSL problem


evanair

Recommended Posts

Hi. I've installed the software using the SSL option, and the admin and catalog section of the site are working properly. However, when I try to check out or create an account, I get a 404 error, saying that the "create_account.php" script can't be found.

 

I see that the 'check out' and 'create account' links are both properly pointing to my "https://secure.mySite.com/ directory. But I'm surprised that there are no scripts (i.e. *.php files) in the "/secure_server" section of my site.

 

Do I need to manually copy (or move) some or all of the scripts into the secure folder? I would have thought the install script would have handled this.

 

I'm also surprised I couldn't find a similar topic in the forums when I searched.

 

Feeling pretty dumb. Anyone know what I screwed up?

 

Thanks.

 

-em

Link to comment
Share on other sites

1. Do you have either Full or Shared SSL installed?

2. If not then set 'enable_ssl' to false in both configure.php files.

3. If you do have ssl and your hosts use one of those old-fashioned two-folder systems then either get them to symbolically link the httpsdocs folder to the httpdocs folder or else you will have to duplicate your folders/files.

 

Vger

Link to comment
Share on other sites

1. Do you have either Full or Shared SSL installed?

2. If not then set 'enable_ssl' to false in both configure.php files.

3. If you do have ssl and your hosts use one of those old-fashioned two-folder systems then either get them to symbolically link the httpsdocs folder to the httpdocs folder or else you will have to duplicate your folders/files.

 

Vger

 

I have a "Full" SSL Account.

 

My host does in fact use one of those "old fashioned two-folder systems". So once I created a symlink between the secure_server directory and the regular "/catalog" directory, things started to work properly. I'm now able to create an account, start a checkout procedure, etc.

 

The only thing that doesn't seem to be working is on the admin panel. When I visit the admin panel using the address, "mySite.com/catalog/admin", it says that I am not protected by an SSL connection. But, if I instead log on to the admin panel though "secure.mySite.com/catalog/admin", then I get the "You are protected by 256-bit..." How would I set things up so that the admin panel is always a secure connection? Would I just move the whole admin directory over to the secure folder??

 

Thanks for the help so far!

 

-em

Link to comment
Share on other sites

I have a shared SSL deal, and I just spent hours trying to configure my osc for SSL. I finally found the answer within the /includes/config.php file.

 

You have to assure that the following tag lines are pointing to the correct places on your server

 

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

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

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

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

define('HTTPS_COOKIE_DOMAIN', 'yoursecureserveraddress');

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

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

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

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

 

 

Also, I finally got it to work after copy and pasting my ssl address into the correct "define" section above.

The SSL provided by my hosting company seems work well with OSC. Here's the link: http://www.ez-web-hosting.com/go.cgi/webhosting1

Link to comment
Share on other sites

I have a shared SSL deal, and I just spent hours trying to configure my osc for SSL. I finally found the answer within the /includes/config.php file....

 

Actually, this doesn't address the problem I'm experiencing, which is related to using symbolic links in a secure, two folder system used by my ISP.

 

But thanks for trying!

 

-em

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...