Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hey! Thanks for the tutorial. I ran into a problem though, I get a 404 not found error when visiting http://myserver/phpmyadmin/ (where ‘myserver’ is my ip adress’). The strange thing is that the PMA favicon is showing. When I visit http://myserver/ the apache configuration page shows fine. Any idea why phpmyadmin can’t be found?
Thanks! Nic
Could you post any relevant information from your Apache log?
<pre> tail /var/log/apache2/error.log </pre>
The log doesn’t show any relevant information, only multiple instances of this: <pre> [Thu Apr 24 10:55:18.746603 2014] [core:notice] [pid 10813] AH00094: Command line: ‘/usr/sbin/apache2’ [Thu Apr 24 10:59:56.400419 2014] [mpm_prefork:notice] [pid 10813] AH00169: caught SIGTERM, shutting down [Thu Apr 24 10:59:57.489426 2014] [mpm_prefork:notice] [pid 10873] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4 configured – resuming normal operations </pre> But I got it to work. Strangely I didn’t find any phpmyadmin conf file in <code>/etc/apache2/conf-enabled/</code>, so I used the method as described in the Ubuntu 12.04 tutorial and included phpmyadmin’s conf file in <code>/etc/apache2/apache2.conf</code>. For the .htaccess security procedures I used the conf file in the phpmyadmin directory. Everything now works as it should :)
I think why it didn’t work is because the phpmyadmin.conf file was not added to the <code>/etc/apache2/conf-enabled/</code> directory. Do you know why this might be the case?
The .conf file for me wasn’t put in the right place either. You need to manually copy it over like this:
sudo cp /etc/phpmyadmin/apache.conf /etc/apache2/conf-enabled/phpmyadmin.conf
Got an 404 error when I access http://domain_name_or_IP/phpmyadmin
Solution: manually copy over the the PHPMyAdmin Apache conf file over to the conf-available directory:
sudo cp /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf
Then enabled the Apache conf file using a2enconf:
sudo a2enconf phpmyadmin
Thanks for the heads up everyone.
The problems that you are describing indicate that you never actually selected “Apache” for your web server during the phpMyAdmin installation processes. Although that option is highlighted by the installer, you need to hit “SPACE” to check the box and select that option.
This is the part of the configuration that lets phpMyAdmin know that you wish to move the files into the Apache configuration hierarchy.
I have updated the guide to make this a bit more clear. Please let us know if you have any additional problems.
Hi This is the best i have seen for some time i spent 2 weeks trying to get server 2008 r2 to do the same thing and it took me about 2 hours to do the full install and configure this.
well done ubuntu you won me over… Many thanks
Richard C
Thanks for the tutorial. Very helpful. Just have one question. How to I change the phpmyadmin default http directory? I mean I don’t want to use http://ip/phpmyadmin as visiting link because it’s too easy to guess.
Thanks!
@yalunren: To change the url, edit the phpmyadmin.conf file:
<pre> sudo nano /etc/apache2/conf-available/phpmyadmin.conf </pre>
File the “Alias” line and change the first part to the url you want. For instance, change:
<pre> Alias /phpmyadmin /usr/share/phpmyadmin </pre>
to
<pre> Alias /somethingelse /usr/share/phpmyadmin </pre>
Then restart Apache:
<pre> sudo service apache2 restart </pre>
Now, phpmyadmin is available at http://your.ip.address/somethingelse