How can I tell Apache2, run mod_php5 by default but run this VH in CGI mode?

前端 未结 2 1156
孤城傲影
孤城傲影 2021-01-19 15:33

The Server

I have a development server that I\'m using to host my current projects. Here are some stats:

root@myserver:/usr/bin $ ca         


        
2条回答
  •  日久生厌
    2021-01-19 15:58

    The problem is that mod_php still handles .php files, even when the CGI handler is set for a vhost.

    To fix that, the in the vhost needs to have a SetHandler directive:

      Action php-cgi /cgi-bin-php/php-cgi-5.2.11
      
        SetHandler php-cgi
      
    
    

    I've updated the tutorial.

提交回复
热议问题