The requested URL /phpmyadmin was not found on this server
When I was restarting the apche2, I was getting this message..
sudo service apache2 restart
* Restarting web server apache2 AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
and when I was typed the localhost/phpmyadmin
, it showing the message
-NOT FOUND The requested URL /phpmyadmin was not found on this server. Apache/2.4.7 (Ubuntu) Server at localhost Port 80
Please help me in this.
Solution 1:
Have you tried to:
sudo -H gedit /etc/apache2/apache2.conf
Then add the following line to the end of the file:
Include /etc/phpmyadmin/apache.conf
Then restart apache:
/etc/init.d/apache2 restart
Solution 2:
I believe this is because You haven't configure your phpmyadmin with the apache server well. If you installed the apache server and phpmyadmin using sudo apt-get install
(Because you can install them using source code etc.) below procedure may works for you.
sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf
sudo ln -s /usr/share/phpmyadmin /var/www/html/phpmyadmin
sudo service apache2 restart
now type
localhost/phpmyadmin
in web browser address bar
if you did everything correctly now you can see the phpmyadmin on the browser.
(Due to your installation method of apache restarting the server or other thing may different. If it is, then you have to do manually what commands meant to do (this description is believing you are very new to apache in linux :) ))