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/