Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Somehow, I manages to install appache2, php5, mySQL server and phpmyadmin.

Typically, I should type "localhost/phpmyadmin" in my browser to open the phpmyadmin interface .. however,this is what appears to me :

Not Found

The requested URL /phpmyadmin was not found on this server.

Apache/2.2.22 (Ubuntu) Server at Port 80

I thought it maybe happening because I didn't restart the apache2 server .. so I wrote this line of code :

root@aadel-pc:/home/osama# /etc/init.d/apache2 restart

And this was the result

 * Restarting web server apache2
apache2: Could not reliably determine the server's fully qualified domain name, using for ServerName
 ... waiting apache2: Could not reliably determine the server's fully qualified domain name, using for ServerName

So, guys please I need your help in this.

share|improve this question
Your Apache works fine, that error is normal somehow. I am not sure where phpmyadmin gets installed to, but apparently not /phpmyadmin. Maybe you can run /usr/sbin/pma-configure or read in /usr/share/doc/phpmyadmin/Documentation.html. – Martin Ueding Aug 18 '12 at 20:19
@queueoverflow Your comment got cut off at the end. Can you please check it? – hexafraction Aug 18 '12 at 20:21
Did you choose apache as webserver when configured phpmyadmin? – Victor K Aug 18 '12 at 20:56
Apache works fine but if you anyway want to clear the error add "ServerName aadel-pc" to your /etc/apache2/httpd.conf – Victor K Aug 18 '12 at 20:58

Even though Rahul's answer is correct, I'd suggest a slightly different approach. After you've installed apache2 and phpmyadmin using apt-get, do this:

sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf
sudo a2enconf phpmyadmin
sudo service apache2 restart

The benefit of my approach is that you won't have to resolve configuration conflicts when you upgrade Apache. You need Apache 2.4 though, which is included in the repositories of Ubuntu 14.04.

Edit: Also, the message about the fully qualified domain name has nothing to do with this. Don't worry, unless you're actually setting up a site which needs a domain name.

share|improve this answer

Same problem I faced, I installed LAMP and phpmyadmin using

sudo apt-get install phpmyadmin

Now what you have to do, just open your terminal and do this two steps thats it:

  1. sudo -H gedit /etc/apache2/apache2.conf

    in this apache2.conf file add this line anywhere:

    Include /etc/phpmyadmin/apache.conf
  2. restart apache

    /etc/init.d/apache2 restart

Now, your localhost/phpmyadmin will work

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.