本地wamp搭建遇到的问题

来源:互联网 发布:wordpress 源码分析 编辑:程序博客网 时间:2024/06/06 02:00

版本 32位wampserver: 2.2
集成环境为 php:5.4.3+apache 2.2.22+mysql 5.5.24+phpMyAdmin 3.5.1 【点击下载】
【错误一】输入浏览器localhost 回车后报错
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@localhost and inform them of the time the error occurred,
and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
查看apache error log 记录为

[Thu Apr 13 10:39:50 2017] [crit] [client 127.0.0.1] configuration error:  couldn't perform authentication. AuthType not set!: /

解决
打开httpd.conf文件修改其中配置

<Directory /var/www/html>    Options Indexes FollowSymLinks    AllowOverride None    Require all granted     #属于2.4.X版本</Directory>修改为:<Directory "/var/www/html">    Options Indexes FollowSymLinks    AllowOverride None    Order allow,deny    Allow from all  </Directory> 
0 0