Are you getting “404 Not Found” error while you’re trying to load your localhost phpmyadmin (say, http://localhost/phpmyadmin)?
This happens due to the misconfiguration of apache server settings (or it was not configured at all), during the phpmyadmin installation. To reinstall (reconfigure) the package, run the following command in the Linux terminal (Ctrl + Alt + T):
sudo dpkg-reconfigure -plow phpmyadmin
While reconfiguring, select apache2 as the web server and provide the necessary configuration details.
If the above command does not work, then you may try the following commands in the terminal:
sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf
sudo /etc/init.d/apache2 reload
The first command will create a soft (symbolic) link of the apache configuration (that is provided along with phpmyadmin installation package) into the apache installation folder. The second command will restart the local apache server.
Hope this solves your problem.
No comments:
Post a Comment