Hello
I would just like someone to confirm a few things so I can narrow down what
is wrong with this damn thing.
Apparently on Debian:
application/x-httpd-php=php:/usr/bin/php5
should be
application/x-httpd-php=/usr/bin/php5
Is this correct?
Also it appears suphp-common and libapache2-mod-suphp do not use
--with-setid-mode=owner which
I would need for UserDir so I have to compile it myself. Why not just
put it in the config?
Anyway - I am doing this:
------------------------------------------
suphp-0.7.1
./configure --prefix=/usr --with-apxs=/usr/bin/apxs2
--with-apache-user=www-data --sbindir=/usr/lib/suphp
--with-logfile=/var/log/suphp/suphp.log --with-setid-mode=owner
--sysconfdir=/etc
------------------------------------------
/etc/suphp.conf
[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=false
;Send minor error messages to browser
errors_to_browser=true
;PATH environment variable
env_path=/bin:/usr/bin
;Umask to set, specify in octal notation
umask=0077
; Minimum UID
min_uid=100
; Minimum GID
min_gid=100
[handlers]
;Handler for php-scripts
x-httpd-php=/usr/bin/php5
application/x-httpd-php=/usr/bin/php5
;x-httpd-php=php:/usr/bin/php5-cgi
;Handler for CGI-scripts
x-suphp-cgi="execute:!self"
------------------------------------------
/etc/apache2/mods-enabled/suphp.conf
<IfModule mod_suphp.c>
#AddHandler x-httpd-php .php .php3 .php4 .php5 .phtml
#suPHP_AddHandler x-httpd-php
AddHandler application/x-httpd-php .php .php3 .php4 .php5 .phtml
suPHP_AddHandler application/x-httpd-php
<Directory />
suPHP_Engine on
</Directory>
# By default, disable suPHP for debian packaged web applications as files
# are owned by root and cannot be executed by suPHP because of min_uid.
<Directory /usr/share>
suPHP_Engine off
</Directory>
# # Use a specific php config file (a dir which contains a php.ini file)
# suPHP_ConfigPath /etc/php4/cgi/suphp/
# # Tells mod_suphp NOT to handle requests with the type <mime-type>.
# suPHP_RemoveHandler <mime-type>
</IfModule>
------------------------------------------
Still
uid=33(www-data) gid=33(www-data) groups=33(www-data)
Any obvious faults?
Also according to the docs 'Please note that suPHP will probably not
work if you also compile in mod_php.'
Is that the same as php5_module? When I a2dismod php5 I just get an
Internal Server Error.
It creates no logs either at the moment...
Thanks in Advance
_______________________________________________
suPHP mailing list
[email protected]
https://lists.marsching.com/mailman/listinfo/suphp