isnt /var/www/html the doc root for phpMyAdmin?

Patrick W. Barnes nman64 at n-man.com
Tue Oct 24 23:52:30 UTC 2006


On Tuesday 24 October 2006 18:44, Chris Mohler wrote:
> #grep -i DocumentRoot /etc/httpd/conf/httpd.conf
>
> ought to tell you your DocRoot.  Mine is /var/ww/html  - think that's
> default for FC5.
>
>
> Is php installed? (#php -v)
>
> Does the web server's user (usually apache) have permission to access
> /phpmyadmin?
>

It is most likely a permissions issue.

Try these:

chmod -R a+rX /var/www/html
chcon -R -u system_u -t httpd_sys_content_t /var/www/html

The first adds the read bit for all users on all files and folders 
in /var/www/html, which allows the apache user to read them.  It also sets 
the search bit for all users on all folders in /var/www/html, which allows 
the apache user to browse the folder hierarchy.

The second command sets the appropriate user and type SELinux contexts for all 
files and folders in /var/www/html, which assures that SELinux won't block 
httpd from reading the files.  I'm not familiar with phpmyadmin, and there 
may be other changes necessary for it to work properly with SELinux 
enforcing.

-- 
Patrick "The N-Man" Barnes
nman64 at n-man.com

http://n-man.com/

LinkedIn:
http://linkedin.com/in/nman64

Have I been helpful?  Rate my assistance!
http://rate.affero.net/nman64/
-- 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20061024/2f30a2ac/attachment-0001.sig>


More information about the fedora-list mailing list