Monday Sep 06
English French German Italian Portuguese Russian Spanish Filipino

Using suPHP on my web server to run Joomla - Page 3 Compiling suPHP

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

Compiling suPHP.

./configure --prefix=/usr --sysconfdir=/etc --with-apache-user=www-data  --with-setid-mode=paranoid --with-apxs=/usr/bin/apxs2

Hit [Enter]

make

make install

While still in the directory /usr/local/src/suphp-current-version.

cd doc/

cp suphp.conf.example /etc/suphp.conf

vi /etc/suphp.conf

I changed the umask setting from 0077 to 0022, which will match Joomla's recommended permission settings. Files should be 644 and directories are 755.

[global]
;Path to logfile
logfile=/var/log/suphp.log

;Loglevel
loglevel=info

;User Apache is running as
webserver_user=www-data

;Path all scripts have to be in
docroot=/

;Path to chroot() to before executing script
;chroot=/mychroot

; Security options
allow_file_group_writeable=false
allow_file_others_writeable=false
allow_directory_group_writeable=false
allow_directory_others_writeable=false

;Check wheter script is within DOCUMENT_ROOT
check_vhost_docroot=true

;Send minor error messages to browser
errors_to_browser=false

;PATH environment variable
env_path=/bin:/usr/bin

;Umask to set, specify in octal notation
umask=0022

; Minimum UID
min_uid=100

; Minimum GID
min_gid=100

[handlers]
;Handler for php-scripts
x-httpd-php=php:/usr/bin/php5-cgi

;Handler for CGI-scripts
x-suphp-cgi="execute:!self"