Apache

 

官网下载

http://httpd.apache.org/

 http://httpd.apache.org/docs/current/platform/windows.html#down

官方推荐的第三方下载

http://www.apachehaus.com/cgi-bin/download.plx

 

推荐

http://www.apachelounge.com/download/

Visual Studio 2015 Update 1

VC14

 https://www.microsoft.com/en-us/download/details.aspx?id=49984

手动安装服务

httpd.exe -k install

httpd.exe -k uninstall

绿色版,不用setup,直接运行ApacheMonitor.exe启动服务。

命令参考

http://httpd.apache.org/docs/current/platform/windows.html#down

 VC14记得安装vc_redist_x64/86.exe.

 启动不起来报错的话,在windows的事件查看器>Windows 日志>应用程序>错误,内容很明确的显示出来了,一般是下面2个文件需要修改,文件路径和端口。

 

httpd.conf

DocumentRoot "D:\php\httpd-2.4.18-win64-VC14\Apache24\htdocs"

ServerRoot "E:\MYDEV\web\httpd-2.4.18-win64-VC14\Apache24"

 Listen 127.0.0.1:8080

 

httpd-xampp.conf

LoadFile "E:\MYDEV\web\PHP\xampp\php\php7ts.dll"
LoadModule php7_module "E:\MYDEV\web\PHP\xampp\php\php7apache2_4.dll"

AppServ

http://www.appservnetwork.com/

 

EasyPHP

http://www.easyphp.org/

 

XAMPP

https://www.apachefriends.org/index.html

Apache + MariaDB + PHP + Perl

比较好用的集成包。

 

test local

http://127.0.0.1:8080/index.html

 

Forbidden

You don't have permission to access / on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

http 403 禁止访问

you don't have permission to access / on this server

please check file httpd.conf. 

<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
    Satisfy all
    Require all denied//拒绝所有请求,前面加个#注释就OK啦。
</Directory>
posted on 2015-12-19 15:35  lypzxy  阅读(253)  评论(0编辑  收藏  举报