~ubuntu-branches/ubuntu/lucid/suphp/lucid

« back to all changes in this revision

Viewing changes to doc/apache/INSTALL

  • Committer: Bazaar Package Importer
  • Author(s): Emmanuel Lacour
  • Date: 2009-08-03 15:15:38 UTC
  • mfrom: (8.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20090803151538-pv7yhe6w1mqmceas
Tags: 0.7.1-1
* New upstream release (closes: #528379, #520182) 
* debian/NEWS: add information about AddHandler -> AddType change introduced
  in 0.6.2-2 (closes: #517805)
* debian/conf/suphp.conf, debian/patches/01_debian.dpatch: switch from
  application/x-httpd-php to application/x-httpd-suphp to allow
  simultaneous use of mod_suphp and mod_php (closes: #519005, #514725)

Show diffs side-by-side

added added

removed removed

Lines of Context:
86
86
 
87
87
Please note that suPHP will probably not work if you also compile in mod_php.
88
88
 
89
 
To use suPHP to parse PHP-Files the only thing you have to is to add a line
90
 
like
 
89
To use suPHP to parse PHP-Files add a line like
91
90
 
92
 
AddHandler x-httpd-php .php
 
91
AddType application/x-httpd-php .php
93
92
 
94
93
to your Apache configuration and to activate mod_suphp for the appropriate
95
94
VHosts.
104
103
Please note that you have to specify at least one suPHP_AddHandler
105
104
directive, because mod_suphp by default handles no mime-type.
106
105
 
 
106
Example:
 
107
 
 
108
suPHP_AddHandler application/x-httpd-php
 
109
 
 
110
If you are using "paranoid" or "force" mode, you have to specify
 
111
at least one suPHP_UserGroup directive.
 
112
 
107
113
Information about additional options can be found in the "CONFIG"-Readme.
108
114
 
109
115
4. Additional information
110
116
 
111
 
Please note, that mod_suphp in most cases will *NOT* work, when mod_php is 
112
 
installed and used in your Apache server because both use the same mime type
113
 
"x-httpd-php". I have heard of users concurrently running both, but it is
114
 
probably trivial to do so. Therefore I will not answer any questions on how
115
 
to run both mod_php and mod_suphp concurrently.
116
 
 
117
 
Running mod_suphp and mod_php concurrently can be *VERY DANGEROUS* and
118
 
should be avoided. The same applies to CGI scripts which are run with
119
 
webserver privileges.
 
117
Please note, that running mod_suphp and mod_php concurrently can be 
 
118
*VERY DANGEROUS* and should be avoided. The same applies to CGI 
 
119
scripts which are run with webserver privileges.
120
120
 
121
121
suPHP should only be used if you are using no CGI scripts or if all CGI
122
122
scripts are run using suExec.
123
123
 
124
124
 
125
125
===================================
126
 
(c)2002-2005 by Sebastian Marsching
 
126
(c)2002-2007 by Sebastian Marsching
127
127
<sebastian@marsching.com>
128
128
Please see LICENSE for
129
129
additional information