The requested URL was not found on this server

  497 views   1 year ago PHP

After installing phpMyAdmin, when you try to open http://localhost/phpmyadmin/index.php in browser, you might get error The requested URL was not found on this server as below screenshot.

This error comes because your phpMyAdmin configuration for apache is not added in main Apache configuration file. The phpMyAdmin conf file stored at /etc/phpmyadmin/apache.conf. You have to add this file in Apache configuration file at /etc/apache2/apache2.conf.

First run below command to edit the file in nano editor.

sudo nano /etc/apache2/apache2.conf

And add the below line at the end of the file.

Include /etc/phpmyadmin/apache.conf

Now restart the apache web server.

sudo service apache2 restart

Now open the phpMyAdmin url in the browser. The error should have fixed.

Author : Harsukh Makwana
Harsukh Makwana

Hi, My name is Harsukh Makwana. i have been work with many programming language like php, python, javascript, node, react, anguler, etc.. since last 5 year. if you have any issue or want me hire then contact me on [email protected]