在linux服务器上使用plesk时出现PHP会话错误

在linux服务器上使用plesk时出现PHP会话错误,php,html,sql,wordpress,stream,Php,Html,Sql,Wordpress,Stream,我的朋友使用plesk在linux服务器上托管一个网站 他几乎每页都出现了404错误,他得到的错误代码粘贴在下面:(我不能发布两个以上的链接,所以你会看到***,而不是yaoihavenreborn.com [Sun Mar 31 19:17:52 2013] [error] [client 69.158.139.233] PHP Warning: is_readable(): open_basedir restriction in effect. File(/var/www/vhosts/*

我的朋友使用
plesk
linux服务器上托管一个网站

他几乎每页都出现了
404错误
,他得到的错误代码粘贴在下面:(我不能发布两个以上的链接,所以你会看到
***
,而不是
yaoihavenreborn.com

[Sun Mar 31 19:17:52 2013] [error] [client 69.158.139.233] PHP Warning: is_readable():
 open_basedir restriction in effect. File(/var/www/vhosts/***/httpdocs/wp-
content/plugins/content-progress/content-progress.php/content-progress-en_US.mo) is not 
within the allowed path(s): (/var/www/vhosts/***/httpdocs:.:/php:/tmp) in 
/var/www/vhosts/***/httpdocs/wp-includes/l10n.php on line 339, referer: http://***/whats-
new/
我们查看了类似的帖子,这些帖子提到纠正
open\u basedir
错误,但创建
vhost
并没有解决问题,我们根本不知道该怎么办

以下是添加
vhost
后的
错误日志的副本,使用以下说明:
http://www.bigsoft.co.uk/blog/index.php/2007/12/30/fixing-php-s-require-open_basedir-restri

[Mon Apr 01 00:53:47 2013] [error] [client 99.112.124.229] PHP Warning:  fopen(/var/www/vhosts/***/httpdocs/wp-content/plugins/ultimate-tinymce/css/mce_modify.css): failed to open stream: Permission denied in /var/www/vhosts/***/httpdocs/wp-content/plugins/ultimate-tinymce/options_functions.php on line 1209, referer: http://***/forums/forum/yaoi-haven-reborn/
[Mon Apr 01 00:53:47 2013] [error] [client 99.112.124.229] PHP Warning:  fwrite() expects parameter 1 to be resource, boolean given in /var/www/vhosts/***/httpdocs/wp-content/plugins/ultimate-tinymce/options_functions.php on line 1210, referer: http://***/forums/forum/yaoi-haven-reborn/
[Mon Apr 01 00:53:47 2013] [error] [client 99.112.124.229] PHP Warning:  fclose() expects parameter 1 to be resource, boolean given in /var/www/vhosts/***/httpdocs/wp-content/plugins/ultimate-tinymce/options_functions.php on line 1211, referer: http://***/forums/forum/yaoi-haven-reborn/
[Mon Apr 01 00:53:47 2013] [error] [client 99.112.124.229] PHP Warning:  chmod(): Operation not permitted in /var/www/vhosts/***/httpdocs/wp-content/plugins/ultimate-tinymce/options_functions.php on line 1212, referer: http://***/forums/forum/yaoi-haven-reborn/
[Mon Apr 01 00:53:49 2013] [error] [client 67.1.158.170] PHP Warning:  fopen(/var/www/vhosts/***/httpdocs/wp-content/plugins/ultimate-tinymce/css/mce_modify.css): failed to open stream: Permission denied in /var/www/vhosts/***/httpdocs/wp-content/plugins/ultimate-tinymce/options_functions.php on line 1209, referer: http://***/forums/topic/blah-blah-favorite-gamesmusic-and-making-friends3/
[Mon Apr 01 00:53:50 2013] [error] [client 108.29.88.87] PHP Warning:  chmod(): Operation not permitted in /var/www/vhosts/***/httpdocs/wp-content/plugins/ultimate-tinymce/options_functions.php on line 1212, referer: http://***/forums/topic/blah-blah-favorite-gamesmusic-and-making-friends3/

感谢您提供的所有帮助:)

您的
www
文件夹中的文件权限设置不正确: 您应该为
www-data
用户(组)设置项目中的文件和文件夹的可读性

在下面的命令中,如果服务器中有多个项目,并且只有当前项目有问题,请将/var/www更改为您的项目根目录

您应该设置可写,哪些文件需要由php编写:

sudo chmod g+w /var/www/vhosts/***/httpdocs/wp-content/plugins/ultimate-tinymce/css/mce_modify.css
//repeat this on all file need to be written by your webapp

好的,所以我需要使文件可读,但哪些文件以及如何做到这一点?如何将/var/www更改为我的项目目录?如果您能更具体一点(关于步骤),我将非常感谢Kovge:)这段代码到哪里去了?!?!?!?!
sudo chmod g+w /var/www/vhosts/***/httpdocs/wp-content/plugins/ultimate-tinymce/css/mce_modify.css
//repeat this on all file need to be written by your webapp