httpd 2.2.15 + suPHP + suExec + php5 = permission and information ?
- by Prix
Hi,
i am currently playing around with suexec, suphp, php5 on my apache on slackware 13.1.
Everything is installed and working properly but now i did like to got further into the directory permissions and at suphp settings and options available.
initially i was planning to leave suphp disabled unless a virtualhost has it specified to be enabled but it does not seem to work, see sample:
mod_php.conf which is included in my httpd.conf
#
# mod_php & mod_suPHP - PHP Hypertext Preprocessor module
#
# Load the PHP module:
LoadModule php5_module lib/httpd/modules/libphp5.so
# Load the suPHP module:
LoadModule suphp_module lib/httpd/modules/mod_suphp.so
<IfModule mod_php5.c>
# Tell Apache to feed all *.php files through PHP. If you'd like to
# parse PHP embedded in files with different extensions, comment out
# these lines and see the example below.
<FilesMatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>
</IfModule>
<IfModule mod_suphp.c>
# This option tells mod_suphp if a PHP-script requested on this server (or
# VirtualHost) should be run with the PHP-interpreter or returned to the
# browser "as it is".
suPHP_Engine off
</IfModule>
With the above first sample it makes suPHP and PHP not work if i comment out the php5 stuff but the module it will run just fine ...
So my first question is, how could i possible make this setup work ?
Leave suPHP disabled using php5 by default and if a virtualhost has suPHP enabled it will disable php5 and use suPHP.
if any information is lacked here please let me know and i will update with any additional information you may need.
Thanks in advance.