MOD_PYTHON(UBUNTU) 1.首先安装mod_python支持

apache2 添加python支持 及pyCGI

2.修改配置文件 apache2 添加python支持 及pyCGI

3.重启apache2 /etc/init.d/apache2 restart

PYCGI

  • 确认LoadModule cgi_module modules/mod_cgi.so开启
  • ScriptInterpreterSource Registry 否则会500
  • AddHandler cgi-script .py 否则python文件会以txt显示
  • Options + ExecCGI 否则会产生403

转载于:https://my.oschina.net/Apathy/blog/686029

相关文章:

  • 2021-05-02
  • 2021-04-20
  • 2021-08-04
  • 2021-06-01
  • 2021-06-01
  • 2021-09-16
  • 2021-09-29
  • 2021-11-28
猜你喜欢
  • 2021-10-03
  • 2021-12-26
  • 2022-12-23
  • 2021-08-29
  • 2022-12-23
  • 2021-11-16
相关资源
相似解决方案