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

http://n-man.com/

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

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

Attachment: pgpl8q15Z6Ggc.pgp
Description: PGP signature

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

Relevant Pages

  • Re: user permissions
    ... Im told I dont have permission to copy to this folder. ... Also apache tells me I dont have permission when I change the ... folders I want them to be able to edit. ...
    (freebsd-questions)
  • Re: applications, users, groups, permissions
    ... > When apache tries to serve a file it must have permission to access ... > application file access permission questions. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: File permissions for a wiki-like site
    ... A smart host will make users members of the group owned by the Apache ... which needs x permission). ... shell scripts. ...
    (comp.lang.php)
  • Re: selinux and per-user web directories
    ... I wanted to create my own web directory to serve pages from for obvious ... SELinux still prevented the apache from serving from the directory. ... I could serve pages alongside SELinux. ...
    (Fedora)
  • Re: [PHP] Permission denied when executing copy command in a PHPscript
    ... Does the error message mean that access is denied in the 'from' file ( ... could have changed the user running apache or dir perms. ... directory has a Linux permission of 755. ... the Apache user; just make the Apache user the owner of the directory, ...
    (php.general)