Page 1 of 1

Configure SSL in phpMyAdmin

Posted: Mon Apr 22, 2019 5:15 pm
by edica
Hi,

How to configure SSL in phpMyAdmin?
Message in phpMyAdmin: Server connection: SSL is not being used

I put these lines but it did not work:
/etc/phpMyAdmin/config.inc.php

#$cfg['Servers'][$i]['ssl'] = true;
#$cfg['Servers'][$i]['ssl_key'] = '/usr/local/vesta/ssl/certificate.key';
#$cfg['Servers'][$i]['ssl_cert'] = '/usr/local/vesta/ssl/certificate.crt';

Re: Configure SSL in phpMyAdmin

Posted: Sun Apr 28, 2019 11:20 am
by skamasle
You just can use your hostname SSL and access with it, you also can try force redirection to SSL and hostname with a .htaccess or directy in phpmyadmin vhost config.

Re: Configure SSL in phpMyAdmin

Posted: Sun Apr 28, 2019 10:20 pm
by edica
Is configured (.htaccess) but does not work either.

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://domain.com/$1 [L,R=301]

Re: Configure SSL in phpMyAdmin

Posted: Tue Apr 30, 2019 10:23 pm
by webhostingux
Basically phpmyadmin can be access from Your main domain/phpmyadmin (example: http://*domain.com/phpmyadmin). Means, when Your domain has SSL like https://*domain.com, then You can access phpmyadmin over ssl like: https:*//domain.com/phpmyadmin