[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



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 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/
-- 

Attachment: pgp9WirUbClVj.pgp
Description: PGP signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]