安装drupal过程中的配置问题

季宏言 |

错误描述:

FILE SYSTEM
Writable (public download method)
The directory sites/default/files does not exist. An automated attempt to create this directory failed, possibly due to a permissions problem. To proceed with the installation, either create the directory and modify its permissions manually or ensure that the installer has the permissions to create it automatically. For more information, see INSTALL.txt or the online handbook.

SETTINGS FILE The Settings file does not exist.

The Drupal installer requires that you create a ./sites/default/settings.php as part of the installation process. Copy the ./sites/default/default.settings.php file to ./sites/default/settings.php. More details about installing Drupal are available in INSTALL.txt.

"drupal_install_requirements_config_errors"

在安装Drupal 或者Drupal Commerce的时候常常会出现这两个错误,而且这两个错误会同时出现。

解决第一个问题,就是把web/sites/中的default文件夹权限变更为777(所有用户组都可写)。

"drupal_install_requirements_config_errors"

安装界面刷新后,第一个错误解决。

要解决第二个问题,可以参看错误问题描述,也就是说default文件夹里面没有setting.php文件。

使用putty进入到default文件夹 cd drupal/web/sites/default

复制一份setting文件 cp default.settings.php settings.php

配置setting.php文件

使用命令: chmod 777 settings.php 把setting.php设置权限为777,前台刷新,所有问题解决,自动跳转到数据库的配置界面。

问题解决,刷新自动跳转到数据库安装

安装完成之后,记得把default文件夹的权限改为755.

添加新评论

此字段内容将保密,不会被其他人看见。