Jump to content

[SOLVED] Fasthosts Business Gold (UK) is UNABLE to run Prestashop with SSL!


ASP

Recommended Posts

I currently have Prestashop installed in domain.com/shop/ whilst building in maintenance mode, and plan to move to the root when ready to go live.

 

My host offers "Thawte Secure SSL spacfor secure online shop Checkout pages, linked from the main website". Using their service I've created a unique folder entitled 'secure-ssl' which generated the following URL: https://secure53.prositehosting.co.uk/secure-ssl
 

If I add this URL as the 'SSL domain' in the 'SEO & URLs' section and then try to enable SSL, a 'Not found' page is displayed as it is looking for: /secure-ssl/shop/admin9540/index.php

 

How do I correctly configure Prestashop to make use of this SSL folder for account and checkout purposes?

Edited by ASP (see edit history)
Link to comment
Share on other sites

ASP, your SSL (HTTPS) must point to the same place as your HTTP. It looks like you are creating a new directory separate from the directory you have Prestashop installed. Also you don't add the directory to the domain. If the the https domain is  https://secure53.pro...o.ukthat is all you enter, all folders within that domain will be allowed. If you need to use the directory "secure-ssl" ... that needs to be the root directory for your shop.

  • Like 1
Link to comment
Share on other sites

Thank you for the response. I think it best if I explain my situation.

I'm using Fasthosts and pay for their Business Gold package. They are a popular host in the UK and list Prestashop as their most installed e-commerce platform.

The help page explains that I can add a shared SSL space for e-commerce by creating a folder on their SSL server. This must be uniquely titled and is accessed by uploading files to a folder with the same name on my domain.

The folder name "secure-ssl" was available, so I created this directory as a test. To save confusion, let's say I went with "ASP-Shop" instead as advised by Fasthosts. I obviously don't want my shop URLs to be prefixed by ASPdomain.com/ASP-Shop/, so is there a way of making the checkout section the only area using the SSL directory instead of the whole site as per Amazon, eBay etc.?

Edited by ASP (see edit history)
Link to comment
Share on other sites

I understand. They will allow you to create a folder and anything you put in the folder can use SSL. Unless you setup your PrestaShop in that SSL folder it will be useless to you. You need to have both the http and https pointing to the same directory. Usually with a shared host you would just need to enter their SSL domain and it would work for your existing site path.

 

You should contact your host for more info.

  • Like 1
Link to comment
Share on other sites

Spoke with the host and I cannot have my desired root location, so have settled upon /wares/ which was available on the shared SSL directory and suits my brand.

I've changed the Base URI to /wares/ and renamed my "shop" folder to "wares", which has worked. I've entered secure53.prositehosting.co.uk as the SSL domain and clicked on the Please click here to us HTTPS... link and entered my login details.

The back office is now running from the SSL domain and shows the padlock in the browser, but the customer account and cart on the front office are still insecure. Under the 
Enable SSL option in the back office General tab, it still displays this:

post-823043-0-72313100-1413038503_thumb.png

Link to comment
Share on other sites

  On 10/11/2014 at 4:46 PM, Bill Dalton said:

That means your theme may be pointing to resource with http address and not https. If you need help with that you'll need to post a link to your web site.

 

I cannot post a link to the site as it is in maintenance mode and only visible with my IP. It contains forthcoming products and info that we don't want to be leaked early.

 

I can provide full details and screenshots of any aspect of my Prestashop installation. My theme is a duplicate of the default with modifications to the CSS files.

 

Please let me know what to check or provide. Thank you!

Link to comment
Share on other sites

Other problems may be found with your search module and others, take a look at this thread,

http://www.prestashop.com/forums/topic/346307-chrome-ssl-error/

 

Unfortunately it could be one of many things. If you know how to use the developer tools within your browser they will help you quickly identify the resource calls that need to be converted to an SSL call.

You may find a http:// link to Google fonts in your theme headertpl. 
If so change to https://
Edited by Bill Dalton (see edit history)
  • Like 1
Link to comment
Share on other sites

Thank you for the continued support Mr. Dalton, I greatly appreciate the help.

Please note that I am not at the stage of the scenario above. I'm stuck at the point of enabling SSL. The Pref/General page still displays the "Please click here to us HTTPS..." link. When I click, the admin page refreshes but nothing changes:

 

post-823043-0-72313100-1413038503_thumb.png
Link to comment
Share on other sites

Tried in a different clean browser (Firefox), cleared my usual browser cache (Chrome) and deleted all files contained in:

 

\cache\smarty\compile
\cache\smarty\cache
\themes\your-theme\cache

 

All to no avail, I'm afraid. Still getting this: 

 

  On 10/13/2014 at 10:52 AM, ASP said:

Please note that I am not at the stage of the scenario above. I'm stuck at the point of enabling SSL. The Pref/General page still displays the "Please click here to us HTTPS..." link. When I click, the admin page refreshes but nothing changes:

 

Link to comment
Share on other sites

It seems for whatever reason the PHP routines are not recognising your SSL domain even though it is a working address.

 

Lets try to bypass that.

 

Your host controls ... use to open your MySQL directly.

 

In table ps_configuration

 

Change

id_configuration 31 PS_SSL_ENABLED Change to value 1
id_configuration 232 > PS_SHOP_DOMAIN_SSL Change to value secure53.prositehosting.co.uk

 

Please note the id_configuration numbers may be different, I used mine, the important part is to find PS_SSL_ENABLED and change the value to one, using the numeral 1. Also find PS_SHOP_DOMAIN_SSL.

  • Like 1
Link to comment
Share on other sites

You will need to contact your host,

 

I should be able to reach your web site here,

http://secure53.prositehosting.co.uk/wares/

 

If I use the secure version I am redirected.

https://secure53.prositehosting.co.uk/wares/

 

This as you can see doesn't work. Contact your host, let them know. They may be able to change the configuration to eliminate the redirect.

Edited by Bill Dalton (see edit history)
  • Like 1
Link to comment
Share on other sites

Live chatted with the host and we started from scratch as the previous advisor's solution was not correct.

I've made the Base URI /shop/ and renamed the "wares" folder "shop" as it was originally.

Following their recommendation I've deleted the "wares" folder on the shared secure server and created one called "MyDomain".

The SSL domain is now: secure53.prositehosting.co.uk/MyDomain/ and I have duplicates of my whole Prestashop /shop/ directory copied to secure53.prositehosting.co.uk/MyDomain/shop/

 

With SSL enabled the cart now points to secure53.prositehosting.co.uk/MyDomain/shop/order which is correct, but somewhere lodged into the Prestashop files is the "wares" directory relic as the browser displays the error:

Not Found

The requested URL /wares/index.php was not found on this server.

Link to comment
Share on other sites

Our responses crossed-over! :)  I deleted .htaccess, cleared cache and forced compilation which got rid of the /wares/ error, but now have another issue. Will update here tomorrow when I've had a chance to solve it.

Thank you for your patience and support Mr. Dalton, most helpful indeed.

Edited by ASP (see edit history)
  • Like 1
Link to comment
Share on other sites

As advised by the host, I have copied the full set of Prestashop files to https://secure53.prositehosting.co.uk/SecureDomainFolder/shop/ but the URLs for the secure content such as '/order' and '/my-account' are not real directories and result in this error:

"The requested URL /SecureDomainFolder/shop/order was not found on this server."

With SSL disabled I'm taken through to '/shop/order' for the cart summary page. 

Link to comment
Share on other sites

To be clear, you are trying to run two sets of files? If so that will not work. It will only work if you use one set of files. That means if you wish to use SSL, you must enable SSL access to the path of your PS installation.

 

For example, if you setup you shop in https://secure53.prositehosting.co.uk/SecureDomainFolder/shop/

 

You need to have your host point yourdomain.com to THAT folder SecureDomainFolder/shop/ so that both can be reached. As you can see using a shared SSL domain will cause some headaches. Including having two access points that also create some duplicate content issues. That means you must also make use of Robots.txt to block search engines from indexing content from the https://secure53.prositehosting.co.uk path and only the yourdomain.com path.

 

Add to that .... Google is now encouraging all websites to run 100% SSL. I really strongly suggest you consider installing your own dedicated SSL certificate for yourdomain.com.

 

That is not to say we can't continue with your present course. Full speed ahead Captain, if you like. B)

  • Like 1
Link to comment
Share on other sites

What a waste of everyone's time, Fasthosts are not able to run Prestashop with SSL enabled!

 

I will therefore be moving my hosting to TSO Host. They are Prestashop friendly and confirmed that I'll be able to have an SSL certificate and install Prestashop at https://MyDomain.com.

 

It will also save me nearly £50 a year on hosting fees!

Thanks again for all of your help with this Mr. Dalton!

Edited by ASP (see edit history)
  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...