https://www.apachelounge.com/download/ 

image.png

下载 fcgid 解压放到 apache24/modules 目录下

配置http.conf

AllowOverride All 开重写 

Options ExecCGI Indexes FollowSymLinks MultiViews

image.png

image.png

底部添加 

<IfModule mod_fcgid.c>

AddHandler fcgid-script .fcgi .php

FcgidInitialEnv PHPRC "D:/wamp/php72"

FcgidInitialEnv PHP_FCGI_MAX_REQUESTS 1000

FcgidIOTimeout 64

FcgidConnectTimeout 16

FcgidMaxRequestsPerProcess 1000 

FcgidMaxProcesses 50 

FcgidMaxRequestLen 8131072

FcgidWrapper "D:/wamp/php72/php-cgi.exe"

</IfModule>


虚拟机配置

<VirtualHost *:80>

ServerName www.test.com

DocumentRoot "D:/phpweb/www.test.com"

Options ExecCGI FollowSymLinks

FcgidInitialEnv PHPRC "D:/wamp/php72"

FcgidWrapper "D:/wamp/php72/php-cgi.exe" .php

</VirtualHost>


今日吐槽

让烦恼与风去远行;让痛苦陪云去流浪。哼一曲好歌,也许心情,就会轻松许多

Contact ME

TAG Link