Ubuntu: phpmyadmin is not working after I installed it
Question: I am using ubuntu-11.04.
I followed these steps on this site:
* http://www.howtoforge.com/installing-apache2-with-php5-and-mysql-support-
on-ubuntu-11.04-lamp
So far my apache2, php, and mysql are working fine except phpmyadmin...
Whenever I run this:
http://localhost/phpmyadmin/
I get this error on my browser:
****** Not Found ******
The requested URL /phpmyadmin/ was not found on this server.
----
Apache/2.2.17 (Ubuntu) Server at localhost Port 80
Solutions Sample (Please watch the whole video to see all solutions, in order of how many people found them helpful):
== This solution helped 119 people ==
Please read https://help.ubuntu.com/community/
ApacheMySQLPHP#Phpmyadmin%20and%20mysql-admin in Ubuntu wiki. You will need to
configure your apache2.conf to make phpMyAdmin works.
gksu 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
== This solution helped 16 people ==
Tried various different ways.
Finally this, this from https://help.ubuntu.com/community/phpMyAdmin, worked
for me:
sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/
phpmyadmin.conf
sudo a2enconf phpmyadmin
sudo service apache2 reload
== This solution helped 1 person ==
I faced same problem, I fixed it by running sudo dpkg-reconfigure phpmyadmin
give new username and password
== This solution helped 1 person ==
You need to find where phpmyadmin is located, e.g. locate phpmyadmin, some it
will return the location, such as /usr/share/phpmyadmin.
Then you can symlink it like this: sudo ln -s /usr/share/phpmyadmin /var/www
Starting Ubuntu 14.04 and up, /var/www is no longer work instead /var/www/html.
e.g, sudo ln -s /usr/share/phpmyadmin /var/www/html
Reference: https://askubuntu.com/questions/448944/where-to-place-my-local-
website-starting-with-the-2-4-7-version-of-apache2
== This solution helped 3 people ==
Don't panic ! Just run the following code with root permission in terminal
sudo ln -s /usr/share/phpmyadmin /var/www
With thanks & praise to God! With thanks to all the many who have made this project possible! | Content (except music & images) licensed under cc by-sa 3.0 | Music & music license: https://www.bensound.com/royalty-free-music | Images & images license: https://stocksnap.io/license and others | With thanks to user Tachyons (https://askubuntu.com/users/39372), user sangharsh (https://askubuntu.com/users/189148), user Rajat Verma (https://askubuntu.com/users/383676), user Rael Gugelmin Cunha (https://askubuntu.com/users/138621), user muru (https://askubuntu.com/users/158442), user Moron (https://askubuntu.com/users/22572), user JohanSJA (https://askubuntu.com/users/21846), user Hardik Thaker (https://askubuntu.com/users/103088), user Drakonoved (https://askubuntu.com/users/737448), user Drakonoved (https://askubuntu.com/users/737448), user Arman Ortega (https://askubuntu.com/users/356010), and the Stack Exchange Network (http://stackoverflow.com/questions/55280). Trademarks are property of their respective owners. Disclaimer: All information is provided "AS IS" without warranty of any kind. You are responsible for your own actions. Please contact me if anything should be amiss at Roel D.OT VandePaar A.T gmail.com.