Setting up SSL for phpMyAdmin
Posted
by
Ubuntu User
on Server Fault
See other posts from Server Fault
or by Ubuntu User
Published on 2011-03-17T22:16:10Z
Indexed on
2011/03/18
0:11 UTC
Read the original article
Hit count: 474
I would like to run phpmyadmin using my SSL certificate.
I read that if I placed the following within the file: /etc/phpmyadmin/config.inc.php, it would force it to use SSL. And now it does...
$cfg['ForceSSL'] =true;
However, my issue is when I did this, now I get an error stating "cannot connect to server."
I do a port scan and my port 443 is closed for one, but I am connecting via https:// for my secure web based email admin panel. This tells me this may not be the issue. Second, is that I have a SSL certificate I purchased but I am not sure how to apply this cert. mydomain.com.crt is sitting on my desktop, how should I be utilizing this?
I remember creating a self signed cert for my web-email access. Do I have to do this for phpmyadmin as well? At least this way, since I am the only one who will ever access the DB, it will never expire.
Also the phpmyadmin used to come up as: http://mydomain/phpmyadmin/ of course I am now trying to get to https://mydomain.com/phpmyadmin/ however, I do not have any pages on my website that requires https:// currently. In the future I may add this. But for now, I only want to access phpmyadmin via ssl.
I can use my own -- but if this causes problems with future ecommerce apps under mydomain.com I would rather use the SSL cert I already purchased.
Thank you!
© Server Fault or respective owner