View Full Version : osCommerce SSL problem
spectr17
07-04-2003, 08:12 PM
I have installed osCommerce for our online store and have a question about SSL.
I read the ocCommerce support forum about SSL when checking out. They say there are 2 changes that need to be made to your includes/configure.php file:
1. HTTPS_SERVER needs to be https://www.yourdomain.com (note the s at the end of the protocol).
2. ENABLE_SSL has to be set to true.
I made these changes but I get a URL 404 error when I try and check out with my test account. I'm not sure if there are any other settings I need to do since this is my 1st attempt at setting up a SSL and shopping cart.
Thanks for any help.
admin
07-04-2003, 10:54 PM
There are 2 ways to get SSL working with any application.
1. Get a dedicated IP address, purchase an SSL certificate and then configure it such that it is https://www.yourdomain.com/shop/
2. Use a shared ssl. There is nothing additional you need to do to get this working other than change the configuration file. The correct url for the shared url is https://server.gahost.com/~username/shop/
where server.gahost.com = your actual server name such as inetsrv8.gahost.com
where ~username = your username
where /shop/ is the directory you installed OScommerce into.
spectr17
07-05-2003, 01:20 AM
Thanks Danny,
Everything's clear on option 2 except the "shop" directory.
I installed osCommerce into /public_html/osCommerce
Is that what I would need for shop?
I tried this and every version I could think of and no luck.
define('HTTPS_SERVER', 'https://inetsrv8.gahost.com/~spectr17/public_html/');
define('HTTPS_SERVER', 'https://inetsrv8.gahost.com/~spectr17/osCommerce/');
admin
07-05-2003, 04:29 AM
try inetsrv20. I used a different server in the example. Sorry for the confusion.
Xarien
09-12-2004, 07:44 AM
I am using shared SSL but I get a php error even on a clean install...
Warning: Unknown(): open_basedir restriction in effect. File(/home2/xarien/public_html/xarien/shop/checkout_shipping.php) is not within the allowed path(s): (/home/secure/:/usr/lib/php:/usr/local/lib/php:/tmp) in Unknown on line 0
Warning: Unknown(/home2/xarien/public_html/xarien/shop/checkout_shipping.php): failed to open stream: Operation not permitted in Unknown on line 0
Warning: (null)(): Failed opening '/home2/xarien/public_html/xarien/shop/checkout_shipping.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in Unknown on line 0
I have no idea why.
admin
09-12-2004, 08:10 AM
I think /home2 is the problem here. I do not believe we use that path on any of our servers. Try changing it to /home
Xarien
09-12-2004, 04:33 PM
Thanks !! :)
FastEddy
09-13-2004, 08:12 PM
If you are changing this setting by hand don't forget to make the changes in not only
catalog/includes/configure.php
but also in
catalog/admin/includes/configure.php
Xarien
09-13-2004, 08:43 PM
/home2 was changed to /home and yes in both configure.php files
I still get the same error though
punknroll
06-17-2005, 06:32 AM
hi there!
do i need two copies of all osc files?
http://www.test.com/catalog/
and
https://ssl.myprovider.com/test.com/catalog/
because this would be not comfortable for changing anything our should i just put the whole shop (catalog) in the ssl directory?
thanx
admin
06-17-2005, 07:35 AM
That is really dependant on how your hosting provider has chosen to implement shared ssl. At AOH, we have shared ssl certificates on each shared hosting server and therefore do not need to duplicate the files. It is only necessary to call the files by the correct URL. I recommend asking the tech support department at your webhost.
Note: If you are an AOH customer, please contact us for assistance with the proper url.
vBulletin® v3.8.1, Copyright ©2000-2010, Jelsoft Enterprises Ltd.