3 thoughts on “Apache downloads php files instead of executing script when using cgi/fcgi in Virtualmin

  • Tuesday January 17th, 2017 at 02:23
    Permalink

    thanx 🙂

    Reply
  • Saturday July 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
  • Saturday August 19th, 2017 at 15:45
    Permalink

    Lifesaver Jack! Thanks man!

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *