CloudFlare Flexible SSL + phpMyAdmin + Linux [Tutorial]

Use a secure connection to your MySQL databases with phpMyAdmin + CloudFlare Flexible SSL.

00 – Preparing your domain and active CloudFlare

If you need help to setup CloudFlare to your domain, check help area in CloudFlare’s website: https://support.cloudflare.com/hc/en-us/categories/200275218
If you get any problem, leave a comment below and I’ll try to help best as I can.

 

01 – Hard hack to add Flexible SSL support to phpMyAdmin

This method will edit the original phpMyAdmin installation files. If you update the phpMyAdmin, probably you will need to repeat this method.

01.1 Edit “Config.class.php” file

nano +1302,17 /usr/share/phpmyadmin/libraries/Config.class.php

phpmyadmin_cloudflare_00

01.2 Replace “$pma_absolute_uri”  concatenation

(just follow instructions in image below)

phpmyadmin_cloudflare_01

02 – Test

That’s it. Just go to your domain and try to enter into phpMyAdmin using https.

Exemple: https://siteexample.com/phpmyadmin/

 

Any problem?

Leave a comment below and I’ll try to help. 🙂