I am using ubuntu-11.04.
I followed these steps on this site:
So far my apache2, php, and mysql are working fine except phpmyadmin... Whenever I run this:
I get this error on my browser:
2Not Found
The requested URL /phpmyadmin/ was not found on this server.
Apache/2.2.17 (Ubuntu) Server at localhost Port 80
10 Answers
Please read this section in Ubuntu wiki. You will need to configure your apache2.conf to make phpMyAdmin works.
gksu gedit /etc/apache2/apache2.confThen add the following line to the end of the file.
Include /etc/phpmyadmin/apache.confThen restart apache
/etc/init.d/apache2 restart 13 Tried various different ways.
Finally this, this from ubuntu documentation, worked for me:
sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf
sudo a2enconf phpmyadmin
sudo service apache2 reload 7 Ubuntu 16.04
After installing and setting up user and password in mysql and phpmyadmin execute following command
sudo apt install php-gettextWorked for me...
Edit1If you just need apache, phPmyAdmin, and MySql just to a Web Application Environment then I Suggest for exampp wich Install All three for you and then you are Ready to go Here is Link
XAMPP Installers and Downloads | Apache Friends
1Don't panic ! Just run the following code with root permission in terminal
sudo ln -s /usr/share/phpmyadmin /var/www I faced same problem, I fixed it by runningsudo dpkg-reconfigure phpmyadmin
give new username and password
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: Where to place my local website starting with the 2.4.7 version of apache2?
1sudo sed -i '$ a\Include /etc/phpmyadmin/apache.conf' /etc/apache2/apache2.conf && sudo service apache2 restart && sudo apt-get install php-gettext`Tested and works. Running that should solve it for anyone who wants a 1 liner.
I tried all the above methods and they didn't work for me. Finally this one worked.
Open terminal and switch to super user using the command: sudo su
After installing phpmyadmin using instructions given in the link, open /etc/apache2/conf-available.
You will find a file there named phpmyadmin.conf. Copy it to /etc/apache2/conf-enabled. Or simply use the command
sudo cp /etc/apache2/conf-available /etc/apache2/conf-enabledRestart apache2 (sudo service apache2 restart) and then open the link localhost/phpmyadmin in a browser.
finally this work for ubuntu 14.04 LTS
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 restartnow type localhost/phpmyadmin in web browser.
I was facing the same problem.
Firstly check if the directory called /usr/share/phpmyadmin/ exists. If it does, just move it to /var/www/phpmyadmin by executing this command:
mv /usr/share/phpmyadmin /var/www/phpmyadminOpen your browser and open . Now it should work.
1