1、typhon生成的cgi1.bf文件复制到
D:\phpstudy_pro\Extensions\Apache2.4.39\cgi-bin
2、修改httpd.conf文件。
在大约363行,改为
<Directory "${SRVROOT}/cgi-bin/">
AllowOverride None
Options None
Require all granted
# AllowOverride All
# Options +ExecCGI
# Order allow,deny
# Allow from all
</Directory>
3、重启apache。
4、访问 http://localhost/cgi-bin/cgi1.bf