CloudFlare Flexible SSL + phpMyAdmin + Linux [Tutorial]

Mar 14, 2016

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

0 - 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.

1 – 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

1.2 Replace “$pma_absolute_uri”  concatenation

(just follow instructions in image below)

phpmyadmin_cloudflare_01

2 – Test

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

Example: https://siteexample.com/phpmyadmin/

Any problem?

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

Tags

Luiz Costa

I am a senior software engineer at Red Hat / Ansible. I love automation tools, games, and coffee. I am also an active contributor to open-source projects on GitHub.