安装好apache2.4+php7+mysql5.7后,一切测试正常。
然后安装wordpress,链接数据库,注册并成功登陆后,显示:
1.将wordpress中的.htaccess文件修改为:
DirectoryIndex index.php index.html
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
2.在apache的配置文件httpd.conf中,将全部
AllowOverride None
修改为:
AllowOverride All
3.restart apache
显示:
1.在apache的配置文件httpd.conf中,将全部
Require all denied
修改为:
Require all granted
2.restart apache