windows phpstudy配置cgi支持python

1.ScriptAlias /cgi-bin/ "D:/phpstudy/PHPTutorial/Apache/cgi-bin"   

2.#

    AllowOverride None
    Options +ExecCGI
    Order allow,deny
    Allow from all


3.AddHandler cgi-script .cgi .py

4.Python文件开头需加入python编译器的路径

#!D:\ProgramData\Anaconda3\python.exe


你可能感兴趣的:(windows phpstudy配置cgi支持python)