Friday Sep 10
English French German Italian Portuguese Russian Spanish Filipino

Using suPHP on my web server to run Joomla - Page 4 Enabling mod_suphp.so

Attention: open in a new window. PDFPrintE-mail
Article Index
Using suPHP on my web server to run Joomla
Page 2 Packages to install
Page 3 Compiling suPHP
Page 4 Enabling mod_suphp.so
Page 5 Restart apache2
All Pages

vi /etc/apache2/httpd.conf
LoadModule suphp_module /usr/lib/apache2/modules/mod_suphp.so

Second Method:

apt-get install libapache2-mod-suphp suphp-common

The Debian package puts suphp.conf in /etc/suphp/suphp.conf

Logfiles are located in /var/log/suphp/suphp.log

(The current Debian package uses --with-setid-mode="owner".  Which means there is no need to add suPHP_UserGroup into the Apache directive for each virtual host.)

Contents of /etc/suphp.conf from the first install method could also be used for the second method.

Going into /etc/apache2/sites-available.

I'm going to edit my apache2 virtual host configuration which was automatically created for me by Virtualmin.  I will add the part which suPHP needs to function properly on my virtual web site.

vi example.com.conf (adding the part high lighted in blue.) Replacing example example with your user and group name.

Add this into the Apache directive if you installed suPHP from source:

suPHP_Engine on
suPHP_UserGroup example example
AddHandler x-httpd-php .php .php3 .php4 .php5
suPHP_AddHandler x-httpd-php

Add this into the Apache directive if you installed suPHP using the Debian package:

suPHP_Engine on
AddHandler x-httpd-php .php .php3 .php4 .php5
suPHP_AddHandler x-httpd-php

 

vi_vhost

 

 

 

 

 

 

 

 

 

Adding it into Virtualmin server template saves me from having to put it in by hand each time I create a virtual host. (Make sure to use correct usage of suPHP_UserGroup depending on what method was used to install suPHP.)

 

server_template_suphp