php具有755权限不可写

时间:2014-07-02 19:54:49

标签: php joomla chmod

我安装了我的joomla 3 en我的服务器debian和这个显示在php配置php不可写,所以我按下一个按钮,然后我去了我的服务器,以便root将我的网站的权限更改为755但是消息在系统信息 - >目录权限再次显示我不可写,如下图所示。

Directory    Status

administrator/components    Unwritable
administrator/language  Unwritable
administrator/language/overrides    Unwritable
administrator/language/en-GB    Unwritable
administrator/manifests/files   Unwritable
administrator/manifests/libraries   Unwritable
administrator/manifests/packages    Unwritable
administrator/modules   Unwritable
administrator/templates Unwritable
components  Unwritable
images  Unwritable
images/headers  Unwritable
images/sampledata   Unwritable
images/banners  Unwritable
language    Unwritable
language/overrides  Unwritable
language/en-GB  Unwritable
libraries   Unwritable
media   Unwritable
modules Unwritable
plugins Unwritable
plugins/authentication  Unwritable
plugins/content Unwritable
plugins/editors-xtd Unwritable
plugins/system  Unwritable
plugins/search  Unwritable
plugins/quickicon   Unwritable
plugins/captcha Unwritable
plugins/finder  Unwritable
plugins/extension   Unwritable
plugins/user    Unwritable
plugins/editors Unwritable
plugins/twofactorauth   Unwritable
templates   Unwritable
configuration.php   Unwritable
cache (Cache Directory) Unwritable
administrator/cache (Cache Directory)   Unwritable
/var/www/magoprat/logs (Log directory)  Unwritable
/var/www/magoprat/tmp (Temp directory)  Unwritable
谁知道会发生什么?提前谢谢

1 个答案:

答案 0 :(得分:0)

好的,我这样做了,我改变了组,但我保留了用户的root用户脚本,如下所示:

chown -R root:www-data folder-to-changed/

并在更改了许可之后。

chmod -R 775 folder-to-changed/

根据我所读到的,这些文件需要是root用户和apache用户组

我希望这是正确的。