phpmyadmin is not working after I installed it
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:
The requested URL /phpmyadmin/ was not found on this server.
Apache/2.2.17 (Ubuntu) Server at localhost Port 80
Please read this section 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.
Then restart apache
I finally got JohanSJA's instructions to work after I restarted the apache server using `/etc/init.d/apache2 restart`. Also I moved the `Include` line to the **bottom** of the file as instructed.
I included apache.conf at the bottom and restarted apache server afterwards, still getting not found, how can I debug it ?
@Tachyons apt-get ing wasn't enough. I had to Include the conf per the answer to get it working.
Doesn't work. No protocol specified (gksu:21503): Gtk-WARNING **: cannot open display: :0
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
After installing and setting up user and password in mysql and phpmyadmin execute following command
sudo apt install php-gettext
Worked for me...
Edit1 If 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
You need to find where
phpmyadminis located, e.g.
locate phpmyadmin, some it will return the location, such as
Then you can symlink it like this:
sudo ln -s /usr/share/phpmyadmin /var/www
Starting Ubuntu 14.04 and up,
/var/wwwis no longer work instead
sudo ln -s /usr/share/phpmyadmin /var/www/html
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:
After installing phpmyadmin using instructions given in the link, open
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-enabled
Restart apache2 (
sudo service apache2 restart) and then open the link localhost/phpmyadmin in a 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/phpmyadminby executing this command:
mv /usr/share/phpmyadmin /var/www/phpmyadmin
Open your browser and open
http://localhost/phpmyadmin. Now it should work.