PDA

View Full Version : Can't overwrite or delete settings.php


topvip
2013-12-09, 10:13 PM
第一步, 将default目录的属性改成可写, 755或777

第二步, 建一个php文件, 内容为
<code>
<?php
'chmod -R a+w path/to/file';
?>
</code>

replace "path/to/file" with your path to the file, ex: sites/default

That should do it for you.

最重要一点, 运行后要删除这个文件.

I think its important to note that you need not include the file name. Just the path to the file directory.

sites/default
<?php
'chmod -R a+w sites/default';
?>