rpms/mod_suphp/EL-4 README.fedora, NONE, 1.1 mod_suphp.conf, NONE, 1.1 mod_suphp.spec, 1.6, 1.7

Andreas Thienemann (ixs) fedora-extras-commits at redhat.com
Tue Apr 1 09:07:15 UTC 2008


Author: ixs

Update of /cvs/pkgs/rpms/mod_suphp/EL-4
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv2776

Modified Files:
	mod_suphp.spec 
Added Files:
	README.fedora mod_suphp.conf 
Log Message:
* Sun Mar 30 2008 Andreas Thienemann <andreas at bawue.net> - 0.6.3-1
- Updated to 0.6.3 fixing two security problems. #439687



--- NEW FILE README.fedora ---
In order to activate mod_suphp support, /etc/httpd/conf.d/mod_suphp.conf
has to be edited.

The commented line "suPHP_AddHandler ###HANDLER###" has to be uncommented,
for mod_suphp to work.

After a restart of the httpd, php scripts should be executed with the
rights of the user owning them.

In case you do need mod_php support for a certain virtual host or directory,
you can selectively disable mod_suphp and fall back to mod_php:

<Directory "/var/www/html">
  suPHP_Engine off
  suPHP_RemoveHandler .php
  php_admin_flag engine on
  php_admin_flag register_globals on
</Directory>

This should do the trick nicely. The register_globals flag is purely optional
and should be avoided if possibly.

Should you require mod_userdir support, in order to enable ~user URLs, you should set 
check_vhost_docroot=false in the /etc/suphp.conf file, as currently suphp would fail
with an incorrect vhost.


--- NEW FILE mod_suphp.conf ---
# This is the Apache server configuration file providing suPHP support..
# It contains the configuration directives to instruct the server how to
# serve php pages while switching to the user context before rendering.

LoadModule suphp_module modules/mod_suphp.so


### Uncomment to activate mod_suphp
#suPHP_AddHandler ###HANDLER###


# 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 on


# This option tells mod_suphp which path to pass on to the PHP-interpreter
# (by setting the PHPRC environment variable).
# Do *NOT* refer to a file but to the directory the file resists in.
#
# E.g.: If you want to use "/path/to/server/config/php.ini", use "suPHP_Config
# /path/to/server/config".
#
# If you don't use this option, PHP will use its compiled in default path.
#suPHP_ConfigPath /etc



Index: mod_suphp.spec
===================================================================
RCS file: /cvs/pkgs/rpms/mod_suphp/EL-4/mod_suphp.spec,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- mod_suphp.spec	31 Mar 2008 19:17:06 -0000	1.6
+++ mod_suphp.spec	1 Apr 2008 09:06:36 -0000	1.7
@@ -16,9 +16,19 @@
       %define handler x-httpd-php
       %define apr /usr/bin/apr-config
    %endif
+%elseif 0%{?rhel}
+   %if "%{rhel}" >= "5"
+      %define php /usr/bin/php
+      %define handler x-httpd-php
+      %define apr /usr/bin/apr-1-config
+   %else
+      %define php /usr/bin/php
+      %define handler x-httpd-php
+      %define apr /usr/bin/apr-config
+   %endif
 %else
    %define php /usr/bin/php
-      %define handler x-httpd-php
+   %define handler x-httpd-php
    %define apr /usr/bin/apr-config
 %endif
 




More information about the fedora-extras-commits mailing list