我正在尝试在linux上安装一个新的drupal,我得到了错误:
Settings file设置文件不存在。Drupal安装程序要求您创建一个设置文件,作为安装过程的一部分。将。/sites/default/default.settings.php文件拷贝到。/sites/default/settings.php目录下。关于安装Drupal的更多细节可以在INSTALL.txt中找到。
我已经为settings.php文件设置了权限,但它仍然在这样做。网站,默认值和文件都有777权限,但它仍然不起作用。我有default.settings.php和settings.php在默认文件夹中。
谢谢
你必须记住一些事情:
- 你的web服务器必须有权限运行你的代码。如果你使用的是Ubuntu,最好提供www-data。www-data(用户和组)对站点/默认文件夹的权限
- 将777赋给文件是危险的,因为其他人可以读取这个敏感的文件
- 请记住,所有文件夹,包括Drupal根文件夹必须是可读的,这意味着它必须具有755权限。
大多数情况下,这个问题与运行web服务器和文件的用户有关。
修改回settings.php
权限。change settings.php permission to 755
。(read only, to make protected
)
Step by Step:
-
Copy file default.settings.php to settings.php (do not rename). Now you have both files.
-
Change file permission settings.php to read/write with chmod 644 settings.php
-
Continue the installation..
-
After all installation finished, change file permission settings.php to read-only with chmod 755 settings.php
我希望它能帮助你
我已经修复了这个:
chown -Rv apache:apache /var/www
进入包含default.settings.php &然后右键点击settings。php文件然后点击Get Info向下滚动直到你看到文件的权限,确保它是read &写"在这里输入图像描述"