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

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

 



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@xxxxxxxxx

http://n-man.com/

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

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

Attachment: pgp9Mv7V7AFiZ.pgp
Description: PGP signature


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux