Disable MOD_PHP in vhosts and activate suphp

Posted by mezgani on Stack Overflow See other posts from Stack Overflow or by mezgani
Published on 2013-07-01T14:57:09Z Indexed on 2013/07/01 16:21 UTC
Read the original article Hit count: 302

Filed under:
|
|
|

I need to desactivate mod_php on a vhost and let it working for other vhosts, I need to disable it in order to activate suphp.

here is the vhost config :



    Options +Indexes
    ServerName www.native.org
    ServerAlias native.org
    DocumentRoot /home/user/www/native/current
    ServerAdmin [email protected]
    UseCanonicalName Off
    CustomLog  /var/log/apache2/native_access.log combined
    ErrorLog   /var/log/apache2/native_error.log

<Directory /home/user/www/native/current>
    RemoveHandler .php
    AllowOverride All
    Options FollowSymLinks
    Order allow,deny
    allow from all
</Directory>
suPHP_Engine on
SuexecUserGroup user native
<IfModule mod_suphp.c>
suPHP_UserGroup user native
AddHandler x-httpd-php .php .php3 .php4 .php5
suPHP_AddHandler x-httpd-php
</IfModule>

NB: mod_php is activated by default for all vhosts

© Stack Overflow or respective owner

Related posts about php

Related posts about apache