[suPHP] PHP4 as module and PHP5 as CGI

suphp at pmenier.dynalias.net suphp at pmenier.dynalias.net
Sun Jan 7 11:52:49 CET 2007


Hello

This config works. I run it since two years with virtualhost.

virtualhost with suphp :
<VirtualHost 192.168.0.23:80>
    RLimitCPU 60
    RLimitMEM 67108864
    RLimitNPROC 16
    ServerAdmin webmaster at client1.caen
    DocumentRoot /web/clients/client1/www
    ServerName www.client1.caen
    suPHP_UserGroup client1 client1
    CustomLog /web/clients/client1/www/logs/access_log combined
    Errorlog /web/clients/client1/www/logs/error_log
    ScriptAlias /cgi-bin/ /web/clients/client1/cgi-bin/
    SuexecUserGroup client1 client1
    Alias /icon/ /web/clients/icon/
    <Directory /web/clients/client1/cgi-bin/>
     AllowOverride Authconfig
     Options ExecCGI FollowSymLinks
    </Directory>
</VirtualHost>virtualhost with php5-module<VirtualHost 192.168.0.23:80>
    RLimitCPU 60
    RLimitMEM 67108864
    RLimitNPROC 16
    suPHP_Engine off
    RemoveHandler .php
    php_admin_flag engine on
    ServerAdmin webmaster at client15.caen
    DocumentRoot /web/clients/client15/www
    ServerName www.client15.caen
    SuexecUserGroup client15 client15
    CustomLog /web/clients/client15/www/logs/access_log combined
    Errorlog /web/clients/client15/www/logs/error_log
    ScriptAlias /cgi-bin/ /web/clients/client15/cgi-bin/
    Alias /icon/ /web/clients/icon/
    <Directory /web/clients/client15/cgi-bin>
     AllowOverride Authconfig
     Options +ExecCGI FollowSymLinks
    </Directory>
</VirtualHost>Patrick

----- Original Message ----- 
From: "Pascal Foubert" <pfoubert at carat-hosting.com>
To: "Pascal Foubert" <pfoubert at carat-hosting.com>
Cc: <suPHP at lists.marsching.biz>
Sent: Sunday, January 07, 2007 12:15 AM
Subject: Re: [suPHP] PHP4 as module and PHP5 as CGI


It seems not !

even if in the suphp.conf file we disable the php4 handler.

As soon as the suPHP engine is ON, then all php (php4 and php5) pages
seems to have to be treat by suPHP.

So if we use suPHP we have to use both CGI versions of PHP4 and PHP5

Do we right ?

Pascal
Pascal Foubert a écrit :
> Hello,
>
> I'd like to know if it is possible with suPHP to run PHP4 as module and
> PHP as CGI
>
> In fact we already have PHP4 installed as a module.
>
> We wonder if we could keep it and just and an handler for php5 only.
>
> So create in a vhost config file something like
>
> ============= vhost config =======
> AddHandler x-httpd-php5 .php5
> AddType application/x-httpd-php5 .php5
> suPHP_Engine on
> suPHP_UserGroup xxx xxx
> suPHP_AddHandler x-httpd-php5 .php5
> php_admin_flag engine Off
>
> AcceptPathInfo On
> ==============================
>
> If we do this does our PHP4 module will still work ? or do we absolutly
> have to define PHP4 also as CGI and create an handler for it ?
>
> Thanks a ton
>
> Pascal
>
> _______________________________________________
> suPHP mailing list
> suPHP at lists.marsching.biz
> http://lists.marsching.biz/mailman/listinfo/suphp
>


_______________________________________________
suPHP mailing list
suPHP at lists.marsching.biz
http://lists.marsching.biz/mailman/listinfo/suphp





More information about the suPHP mailing list