LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-22-2015, 06:07 PM   #1
vincix
Member
 
Registered: Feb 2011
Distribution: Centos 6.7, 7
Posts: 586

Rep: Reputation: 52
permission denied for phpMyAdmin


Hi,

On Centos 7 I haven't been able to configure phpmyadmin. I've got Apache 2.4.6 and I've installed the latest phpmyadmin, both with yum.
I've changed all the 127.0.0.1 to my public ip and I've disabled the 'denied all' directives. This is how it looks:
Code:
Alias /phpMyAdmin /usr/share/phpMyAdmin
Alias /phpmyadmin /usr/share/phpMyAdmin

<Directory /usr/share/phpMyAdmin/>
   AddDefaultCharset UTF-8

   <IfModule mod_authz_core.c>
     # Apache 2.4
     <RequireAny>
       Require ip X.X.X.X
       Require ip ::1
     </RequireAny>
   </IfModule>
   <IfModule !mod_authz_core.c>
     # Apache 2.2
     Order Deny,Allow
     #Deny from All
     Allow from X.X.X.X
     Allow from ::1
   </IfModule>
</Directory>

<Directory /usr/share/phpMyAdmin/setup/>
   <IfModule mod_authz_core.c>
     # Apache 2.4
     <RequireAny>
       Require ip X.X.X.X
       Require ip ::1
     </RequireAny>
   </IfModule>
   <IfModule !mod_authz_core.c>
     # Apache 2.2
     Order Deny,Allow
     #Deny from All
     Allow from X.X.X.X
     Allow from ::1
</IfModule>
</Directory>

# These directories do not require access over HTTP - taken from the original
# phpMyAdmin upstream tarball
#
<Directory /usr/share/phpMyAdmin/libraries/>
    Order Deny,Allow
    #Deny from All
    Allow from All
</Directory>

<Directory /usr/share/phpMyAdmin/setup/lib/>
    Order Deny,Allow
    #Deny from All
    Allow from All
</Directory>

<Directory /usr/share/phpMyAdmin/setup/frames/>
    Order Deny,Allow
    #Deny from All
    #Allow from None
    Allow from All 
</Directory>
on /var/log/httpd/error_log:
Code:
AH01630: client denied by server configuration: /usr/share/phpMyAdmin
The httpd.conf hasn't been changed except this:
Code:
<Directory />
    AllowOverride none
    #Require all denied
    Allow from all
</Directory>
Normal access to my apache works fine (a default test page shows up)

SELinux is disabled and I've also stopped iptables to test it.

Last edited by vincix; 01-22-2015 at 06:17 PM.
 
Old 01-22-2015, 09:36 PM   #2
baldur_1
Member
 
Registered: Sep 2010
Posts: 125

Rep: Reputation: 11
okay, just a quick thing, you have both a ipv4 ip address and an ipv6. i think that might be an issue but i know that ::1 is the lookback ip address for ipv6. i would comment that out unless you are using ipv6 ip addresses in which case i would put in the okay ip address for contact.
 
Old 01-23-2015, 03:50 AM   #3
vincix
Member
 
Registered: Feb 2011
Distribution: Centos 6.7, 7
Posts: 586

Original Poster
Rep: Reputation: 52
Quote:
Originally Posted by baldur_1 View Post
okay, just a quick thing, you have both a ipv4 ip address and an ipv6. i think that might be an issue but i know that ::1 is the lookback ip address for ipv6. i would comment that out unless you are using ipv6 ip addresses in which case i would put in the okay ip address for contact.
Just for the sake of it I've made the changes by commenting out the IPv6 statements, but obviously it still doesn't work.

In my mind there can't be any connection. It works just fine on Centos 6.6 without changing any IPv6 directives. Moreover, ip6tables also works concomitently with iptables, but that doesn't seem to bother the latter in any way.
 
Old 01-23-2015, 08:26 AM   #4
vincix
Member
 
Registered: Feb 2011
Distribution: Centos 6.7, 7
Posts: 586

Original Poster
Rep: Reputation: 52
Thank you all, you've been amazing, like always! I'll try to preserve the tradition of obscurity
 
Old 01-23-2015, 11:55 AM   #5
Habitual
LQ Addict
 
Registered: Jan 2011
Posts: 7,806
Blog Entries: 11

Rep: Reputation: 2104Reputation: 2104Reputation: 2104Reputation: 2104Reputation: 2104Reputation: 2104Reputation: 2104Reputation: 2104Reputation: 2104Reputation: 2104Reputation: 2104
So for future generations of LQ Visitors, please tell us what fixed it.

Thanks.
 
  


Reply


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
./phpmyadmin.sh: permission denied enteih20 Linux - Server 2 03-04-2013 04:21 AM
mkdir throws Permission Denied error in a directoy even with root ownership and 777 permission surajchalukya Linux - Security 14 09-03-2012 08:34 AM
phpMyAdmin error: client denied by server configuration: /usr/share/phpMyAdmin Kropotkin Linux - Server 2 05-15-2010 12:55 PM
'permission denied" inspite of right permission flags on network drive anirudhvij Linux - Enterprise 8 05-22-2007 05:57 AM
phpMyAdmin - Access denied!! jackster Linux - Software 5 02-02-2005 04:04 PM


All times are GMT -5. The time now is 01:30 PM.

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