Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SSL Setup


wilson123

Recommended Posts

Posted

I have recently purchase SSL support and a certificate for my works website and wish to instigate it into the website. Now I have already formed the webpage and so unchecked "import database" when I ran through the install over again to enable SSL, however when clicking on information entering pages - such as "Log In" pages it simply directs to the https:// of my site, obviously the page isn't there.

 

So I moved the account.php page to the same dir that shows up when you hover over the link and got the following error

 

"Warning: main(includes/application_top.php): failed to open stream: No such file or directory in /usr/local/psa/home/vhosts/myhostaddress/httpsdocs/catalog/account.php on line 13

 

Fatal error: main(): Failed opening required 'includes/application_top.php' (include_path='.:/usr/local/psa/apache/lib/php') in /usr/local/psa/home/vhosts/myhostaddress/httpsdocs/catalog/account.php on line 13"

 

Is there something that needs modifying by myself in the files directly or do I need to in the setup of the database? I have the shop working fine without the SSL but it seems, from reading the search pages of the forum that no clear answers are given on the ssl setting up.

Maybe some sort of file on the oscommerce info site would be great?

Posted

For me enabling SSL meant you also needed to edit your configure.php file to know that your using SSL.

 

Following is code from my file.

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

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

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

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

 

This is an example of how the configure.php file (includes and admin/includes) would nmeed to read for your SSL to be used. Also, note that you may never see the lock in your browser untill they are checking out.

 

But if you change your main settings to both say https then anytime your on the site, it should use the cert once you click on login.

 

Check it out on my site. www.rccwestern.com

 

Click on the catalog link. there is no lock. click on the ligin link, and the lock appears. I did this by simple putting https for both entries.

 

Give that a try and see if you get the results your looking for.

Posted

visit my site

 

http://www.cashconvertersscunthorpe.co.uk

 

and click on login or checkout and I get this error

 

"Warning: mysql_connect(): Access denied for user: 'root@localhost' (Using password: NO) in /usr/local/psa/home/vhosts/cashconvertersscunthorpe.co.uk/httpsdocs/catalog/includes/functions/database.php on line 19

Unable to connect to database server!"

 

Hmmm, I have copied all the /catalog/includes directories + the php files found in /catalog into my https folder and that is the message I get, the SSL is set-up correctly and I have a SSL Cert

 

Helllppppp!!

Posted

All that is telling me is that your account info for connecting to your SQL DB is not right.

 

If you like, PM me and we can get more detailed, or you can just work it oout in here.

 

Either way, for this to work, we will need to look in detail at your configure.php file.

 

Let me know how I can help.

Archived

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

×
×
  • Create New...