Question

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 https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-on-ubuntu-16-04.

I can see the login page mywebsite.com/phpmyadmin , 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.

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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