sudo nano /etc/apache2/conf-available/phpmyadmin.conf is empty

Hello DO members,

I am a beginner and working on securing my phpMyAdmin with following this tutorial

I can see the login page , but phpmyadmin.conf is empty page when I input the below command on terminal.

sudo nano /etc/apache2/conf-available/phpmyadmin.conf

Please let me know how to figure out this issue. Thank you.


My phpmyadmin.conf t is under /etc/dbconfig-common/phpmyadmin.conf and empty.


You should never use the /phpmyadmin path as it’s going to get bruteforced.

As for the config file, it should be under /etc/phpmyadmin as far as i remember.

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi @mellona77,

I followed the article you mentioned to see where the issue might be experienced. Created a new Ubuntu server, installed Apache MySQL and PHP on it and then started going through the article of installation of phpMyAdmin.

I just went through Step 1 and tried my phpmyadmin.conf here

sudo nano /etc/apache2/conf-available/phpmyadmin.conf

Everything was there.

Reading through the article, It’s possible you didn’t select Apache as the running Web Server:

Warning: When the first prompt appears, apache2 is highlighted, but not selected. If you do not hit Space to select Apache, the installer will not move the necessary files during installation. Hit Space, Tab, and then Enter to select Apache.

Can you please start the processes from the beginning and make sure you select apache2 on the prompt?

Regards, KDSys