prestashop 1.6 HTTPS not working

prestashop 1.6 HTTPS not working

I need SSL to get the Stripe payment gateway module working.
So I’m clicking on this text ” Please click here to use HTTPS protocol before enabling SSL.” and it’s not doing anything just refreshes the page. Hmm….
FOR SOLUTION SEE BELOW!
I’m using Prestashop version 1.6.0.2
image
The SSL cert is installed properly it seems.
image
I tried adding this to my htaccess that didnt work either.
#HTTPS FIX
SetEnvIf X-Forwarded-Proto https HTTPS=on
Checking apache error logs… good ole logs! 🙂
image
image
  #SSLCertificateFile “/opt/bitnami/apache2/conf/server.crt”
  #SSLCertificateKeyFile “/opt/bitnami/apache2/conf/server.key”
  SSLCertificateFile “/opt/bitnami/apache2/conf/www_domain_com.crt”
  SSLCertificateKeyFile “/opt/bitnami/apache2/conf/server.key”
  SSLCACertificateFile “/opt/bitnami/apache2/conf/COMODO_DV_SHA-256_bundle.crt”
image
Sorry, nevermind. I just found the solution and then realized you mentioned it early in this stream. I just had to add
[/crayon]
in the <VirtualHost *:443> section of my ebextensions file.
I renamed .crt to include no underscores and match ServerName
I added ServerName to httpd
I check cloudflare config looks good. I even changed www from A to CNAME.
image
Checking SSLCertificateFile is not declared multiple times.
image
Solution
Add this to top of htaccess.
SetEnv HTTPS On
Then turn on SSL by clicking the link in back-end.
Then comment the htaccess line out so the shop works.
  ServerName www.domain.com
  ServerAlias www.domain .com
stripe
sudo apt-get update && sudo apt-get install –only-upgrade openssl
sudo apt-get update && sudo apt-get install –only-upgrade libssl-dev
#SSLProtocol all -SSLv2 -SSLv3
SSLProtocol -all +TLSv1.2
SSLHonorCipherOrder on
#SSLCipherSuite “EECDH+ECDSA+AESGCM EECDH+aRSA+AESGCM EECDH+ECDSA+SHA384 EECDH+ECDSA+SHA256 EECDH+aRSA+SHA384 EECDH+aRSA+SHA256 EECDH+aRSA+RC4 EECDH RC4 !aNULL !eNULL !LOW !3DES !MD5 !EXP !PSK !SRP !DSS !EDH”
SSLCipherSuite EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:ECDHE-RSA-AES128-SHA:DHE-RSA-AES128-GCM-SHA256:AES256+EDH:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GC$
SSLPassPhraseDialog  builtin
SSLSessionCache “shmcb:/opt/bitnami/apache2/logs/ssl_scache(512000)”
SSLSessionCacheTimeout  300
https://sslanalyzer.comodoca.com/?url=www.domain.com
image
Upgrade PHP to 5.6
Turns out is wasn’t too hard to fix this. I was running the wordpress site on php version 5.4.45. I installed 5.6 and it fixed the issue. Thanks
refs:
https://forums.aws.amazon.com/message.jspa?messageID=666686
Fullstack4u.com shares web development tips for full stack web technologies and is helping share the passion to web developers worldwide.

Leave a Reply

Your email address will not be published. Required fields are marked *