3 thoughts on “Apache 在Virtualmin中使用cgi/fcgi时,下载php文件而不是运行脚本

  • 星期二 一月 17th, 2017 at 02:23
    Permalink

    thanx 🙂

    Reply
  • 星期六 七月 29th, 2017 at 17:53
    Permalink

    To make FCGId work comment out in global conf
    /etc/apache2/mods-enabled/php7.0.conf
    line SetHandler application/x-httpd-php like

    #SetHandler application/x-httpd-php

    To enable PHP for default site and prevent code displayed add section above into
    /etc/apache2/sites-enabled/000-default.conf with uncommented SetHandler like:

    #SetHandler application/x-httpd-php

    issue following command to fix all sites:
    sudo virtualmin fix-domain-permissions –all-domains –subservers
    sudo virtualmin modify-web –mode fcgid –all-domains

    Reply
  • 星期六 八月 19th, 2017 at 15:45
    Permalink

    Lifesaver Jack! Thanks man!

    Reply

Vin进行回复 取消回复

电子邮件地址不会被公开。 必填项已用*标注