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

I recently installed phpmyadmin onto ubuntu server 10.04 using

sudo apt-get install phpmyadmin

The installation went fine and everything was working including phpmyadmin. I then performed a restart of the server and now apache2 starts up but when I navigate to

I am getting a 403 error. I have included /etc/phpmyadmin/apache.conf file in /etc/apahe2/apache2.conf file


# phpMyAdmin default Apache configuration
Alias /phpmyadmin /usr/share/phpmyadmin
<Directory /usr/share/phpmyadmin>
    Options FollowSymLinks
    DirectoryIndex index.php

    <IfModule mod_php5.c>
            AddType application/x-httpd-php .php

            php_flag magic_quotes_gpc Off
            php_flag track_vars On
            php_flag register_globals Off
            php_value include_path .

# Authorize for setup
<Directory /usr/share/phpmyadmin/setup>
 <IfModule mod_authn_file.c>
 AuthType Basic
 AuthName "phpMyAdmin Setup"
 AuthUserFile /etc/phpmyadmin/htpasswd.setup
 Require valid-user
#Disallow web access to directories that don't need it
<Directory /usr/share/phpmyadmin/libraries>
   Order Deny,Allow
   Deny from All
<Directory /usr/share/phpmyadmin/setup/lib>
  Order Deny,Allow
  Deny from All

The only change that was made since phpmyadmin was installed was that timetrex was installed. Is there anyway to manually start phpmyadmin or should it already be working once apache started?

share|improve this question
Does it help to chmod 755 to phpmyadmin folder? – jasmines May 28 '12 at 8:59
it is currently set to 755. I don't see how adding a group write will allow it to run, seeing as it was running perfectly before I restarted apache – glenbl54 May 28 '12 at 9:03
sorry, I meant 755... editing. – jasmines May 28 '12 at 9:08
up vote 1 down vote accepted

I have been able to solve my issue. I had left out

order deny,allow
#deny from all
allow from all

from /etc/phpmyadmin/apache.conf.

I found the solution to this problem from one of the Super User questions:

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.