phpstudy升级apahce
- 文件下载
Apache下载
mod_fcgid下载
- 进阶准备
备份原来的apahce目录,并重命名
把刚下载下来的Apache解压放到该目录,配置httpd.conf(Apache\conf目录下的httpd.conf)
1、修改SRVROOT
Define SRVROOT "E:/phpStudy/PHPTutorial/Apache"
2、修改ServerRoot为你的网站目录
ServerRoot "E:/phpStudy/PHPTutorial/Apache"
3、修改DocumentRoot
DocumentRoot "E:\phpStudy\PHPTutorial\WWW"
<Directory />
Options +Indexes +FollowSymLinks +ExecCGI
AllowOverride All
Require all granted
</Directory>
配置dir_module支持php
<IfModule dir_module>
DirectoryIndex index.html index.php index.htm l.php
</IfModule>
4、增加Include conf/extra/httpd-php.conf文件
从之前的apahce-bak的httpd-php.conf拷贝到新的apahce目录下,并在httpd.conf文
件下增加:Include conf/extra/httpd-php.conf
httpd-php.conf 文件内容
5、mod_fcgid文件
- 将下载的mod_fcgid.so文件解压放到apahce/modules目录下
6、重启
重启apahce即可。