Apache在Centos linux远程服务器上使用php提供权限错误。
我阅读并尝试了一切,但没有运气。
我尝试用setenforce 0禁用SELinux;
我尝试了权限所有777和chown -R apache:apache var / www chown -R root:apache var / ww
也: chcon -R -t httpd_sys_content_t / var / www chcon -R -t httpd_sys_content_rw_t / var / www / http / f3
error_log说:
/var/www/html/f3/lib/ErrorHandler.php on line 26
[Wed Jul 08 14:06:51.744772 2015] [:error] [pid 29288] [client 127.0.0.1:37240] mkdir(): Permission denied
[Wed Jul 08 14:06:51.745084 2015] [:error] [pid 29288] [client 127.0.0.1:37240] [f3/lib/base.php:2015] Base->error(500,'mkdir(): Permission denied')
[Wed Jul 08 14:06:51.745124 2015] [:error] [pid 29288] [client 127.0.0.1:37240] [f3/lib/base.php:2407] mkdir('/f3/tmp/f3filescache/',493,true)
[Wed Jul 08 14:06:51.745134 2015] [:error] [pid 29288] [client 127.0.0.1:37240] [f3/lib/base.php:340] Cache->load('folder=/f3/tmp/f3filescache/',true)
[Wed Jul 08 14:06:51.745141 2015] [:error] [pid 29288] [client 127.0.0.1:37240] [f3/index.php:6] Base->set('CACHE','folder=/f3/tmp/f3filescache/')
[Wed Jul 08 14:06:51.746083 2015] [:error] [pid 29288] [client 127.0.0.1:37240] PHP Warning: file(f3/lib/base.php): failed to open stream: No such file or directory in /var/www/html/f3/lib/ErrorHandler.php on line 26
我绝望而且愤怒。 有谁知道什么可能是错的?
谢谢。