Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-23-2006, 09:23 PM   #1
Registered: Apr 2005
Location: Jordan
Distribution: Debian (Sarge), Ubuntu (6.06)
Posts: 271

Rep: Reputation: 31
Question Apache returns 'Forbidden 403' for phpMyAdmin

When i try to access phpMyAdmin page I get the following error:

You don't have permission to access /phpMyAdmin-2.7.0-pl2/index.php on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
I've setup Apache 2.0.53, MySql (3.23.58), PHP (4.3.11) and phpMyAdmin (2.7.0-pl2).

The only thing i didn't stick to during the installation of phpMyAdmin is that i didn't place it in apache's /var/www/html but instead placed it in /var/www (did a chown -R myuser:apache for it) and added the following under /etc/httpd/conf.d/phpMyAdmin.conf
Alias /mysql "/var/www/phpMyAdmin-2.7.0-pl2"

<Location "/mysql">
        AuthType        Basic
        AuthName        "Private Area - MySQL Administrator"
        AuthUserFile    /etc/httpd/conf/authusers
        AuthGroupFile   /etc/httpd/conf/authgroups
        Require group   sqlusers
#       Require         valid-user
        Options         Indexes FollowSymLinks
        AllowOverride   None
So what gives???
Old 01-24-2006, 02:04 AM   #2
Registered: Apr 2005
Location: Jordan
Distribution: Debian (Sarge), Ubuntu (6.06)
Posts: 271

Original Poster
Rep: Reputation: 31
I figure out the "Why"...

It's because of SELinux. Doing a "#setenforce 0" seems to solve it, cause now the browser is prompting me for a username/password to access the restricted area.

Can anyone help me do the SELinux modifications needed so i can run SELinux but avoid the error mentioned in the previous post?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
apache: 403 forbidden johnty01 Linux - Networking 5 04-05-2008 02:20 PM
apache 403 forbidden munchkins Linux - Software 1 12-25-2005 07:10 AM
apache 403 forbidden? wezhousheng Linux - Networking 5 05-13-2005 12:15 AM
Apache 403 Forbidden mrmike Linux - Newbie 3 07-10-2004 11:31 AM
Apache 403 Forbidden quozt Linux - Networking 10 02-24-2004 04:59 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:46 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration