drupal安装时出现的错误

1.出现Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request.

解决方案

出现这种错误的原因可能有三种
1.入口文件未找到
2.hataccess文件出错
3.apache里重写未开启
在apache配置文件httpd.conf中搜索
AllowOverride None
然后改为AllowOverride All
然后在找到
LoadModule rewrite_module modules/mod_rewrite.so
把这个前面的“#”号去掉,就是去掉注释,然后重启apache.搞定!

不管用!

查看日志

cat /var/log/apache2/error.log

[Sun Apr 29 14:28:05.739145 2018] [core:alert] [pid 5116] [client 59.108.15.9:3094] /var/www/html/drupal-8.5.0/.htaccess: Require not allowed here

最后在这个网站上 找到正确的方案

And if the above thing doesn't works for you than please try the following: Search for "<directory /var/www/>" in the "/etc/apache2/sites-available/default" file and change it as below:

1 <Directory /var/www/>
2 Options Indexes FollowSymLinks MultiViews
3 AllowOverride All
4 Order allow,deny
5 allow from all
6 </Directory>

2.安装时遇见

PHP extensions Disabled
Drupal requires you to enable the PHP extensions in the following list (see the system requirements page for more information):

解决方案

sudo apt-get install php5-gd

参考1.  htaccess-options-not-allowed-heres

posted @ 2018-04-30 10:33  Right2014  阅读(333)  评论(0)    收藏  举报