Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

http://192.168.1.72/phpmyadmin/

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

/etc/phpmyadmin/apache.conf

# 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 .
    </IfModule>

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

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
add comment

2 Answers

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
add comment

Read this post, it will definitely help.

share|improve this answer
1  
Welcome to Ask Ubuntu! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. Also, please make sure you make notice of users that this is your blog. –  Marco Ceppi Jun 3 '12 at 16:45
    
I've turned your obfuscated hyperlink into a real link after verifying it's not spam. (It occurred to me that new users cannot always include hyperlinks in their posts.) I'm assuming this is in accordance with your wishes. If not, you can roll back the edit. –  Eliah Kagan Jun 3 '12 at 16:58
    
I have tried your solution but it did not work, when I went to restart apache I got a warning ` [warn] The Alias directive in /etc/phpmyadmin/apache.conf at line 3 will probably never match because it overlaps an earlier Alias.` –  glenbl54 Jun 6 '12 at 10:47
add comment

Your Answer

 
discard

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.