apache配置文件 /etc/httpd/conf/httpd.confphp
找到如下内容html
Include conf.modules.d/*.confapache
在此行内容的下一行添加ide
LoadModule rewrite_module modules/mod_rewrite.sospa
继续找到如下内容 code
Options Indexes FollowSymLinks
htm
#
it
# AllowOverride controls what directives may be placed in .htaccess files.
io
# It can be "All", "None", or any combination of the keywords:
module
# Options FileInfo AuthConfig Limit
#
AllowOverride None
将此处的AllowOverride None修改成AllowOverride all。
这里注意一点的是,AllowOverride None有一共有3处左右!因此必定要找对地方,千万千万注意!!!!
放宽网页的执行时间,30秒就超时,过短了。
max_execution_time = 300
安装opcache模块
sudo dnf install php-opcache*
sudo chmod a+w /var/www/html/drupal -R
sudo chown -R apache:apache /var/www/html/drupal/