MaidaOle.com

Title

网事如峰

Description

Linux version 2.6.11-1.1369_FC4smp (bhcompile@decompose.build.redhat.com) (gcc version 4.0.0 20050525 (Red Hat 4.0.0-9)) #1 SMP Thu Jun 2 23:08:39 EDT 2005

针对上述的内容,可以对如下的几个常见问题进行简单处理:1.phpmyadmin在非默认/var/www/html目录下无法运转通常类似的情况都是在配置了虚拟主机时,访问/phpmyadmin等提示403访问拒绝,日志里也提示Permission denied,这是因为phpmyadmin防止的目录及文件本身属性不符合context要求。假设phpmyadmin放在/web目录下,那么执行:chcon -R -t httpd_user_content_t /web

则会令/web及其下所有子目录/文件,包括phpmyadmin文件都获得了httpd_user_content_t的属性,如果其传统的Unix属性对httpd来说是可读的话,再重新访问一下就应该可以了。2./home目录下的虚拟主机无法运转与问题1也是类似的,不过根据上文中context的定义,/home目录下必须是用户的$HOME/www或public_html或web目录才是 httpd_user_content_t类型,因此建议将要作为web页面的内容放置在用户的$HOME/www或web或public_html里,并确保其属性是httpd_user_content_t,使用如下命令查看:ls -Z /home/abc/

read more

Languages

中文 (Chinese)

Contact

Logos

Logo-maidaole-com.gif

Additional Information

Related Domains

External Links





Retrieved from "http://aboutus.com/index.php?title=MaidaOle.com&oldid=35053535"