[CentOS] Forbidden: You don't have permission to access/phpMyAdmin/ on this server.

Wed Jun 18 21:45:22 UTC 2008
Herta Van den Eynde <herta.vandeneynde at gmail.com>

2008/6/18 Mike Hanby <mhanby at uab.edu>:
> Maybe this has already been suggested, but is the output identical for
> the old and new directories using the following command:
>
> ls -ldZ /var/www/html/{phpMyAdmin,pma}
>
> The Z will show the SELinux security attributes.

You found it, Mike!
Joshua previously suggested SELinux might have something to do with
it, but being new to it, I didn't know what to do with that info.

# ls -ldZ /var/www/html/{phpMyAdmin,pma}
drwxr-xr-x  phpmy apache user_u:object_r:httpd_sys_content_t
/var/www/html/phpMyAdmin
drwxr-xr-x  phpmy apache user_u:object_r:user_home_t      /var/www/html/pma

I'll need to read up on what this means exactly.  I originally
untarred the phpMyAdmin in my non-priv'ed home directory - which must
be the "user_home_t" reference - and then moved it over to its current
location.

I meanwhile switched to permissive mode.  If SELinux is this tricky,
I'll have to find time to study it before enabling it again.

Thanks to all for thinking along.

Kind regards,

Herta

-- 
"Life on Earth may be expensive,
 but it comes with a free ride around the Sun."