----------------------------------
配置httpd.conf
----------------------------------
<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Allow from all
</Directory>
<Directory "D:/server/Apache24/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>
----------------------------------
加载php
----------------------------------
LoadModule php5_moduleD:\server\phpp\hp5apache2_2.dll
PHPIniDir"D:\server\php"
AddType application/x-httpd-php .php

<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all
</Directory>

红色箭头部分需要注意一下。

1.jpg

2.jpg