Lines 1-7
Link Here
|
1 |
---------------------------------------------------------------- |
1 |
---------------------------------------------------------------- |
2 |
For help on using this module, please see the suPHP homepage: |
2 |
For help on using this module, please see the suPHP homepage: |
3 |
|
3 |
|
4 |
http://www.suphp.org/ |
4 |
http://www.suphp.org/ |
5 |
|
5 |
|
6 |
Using suPHP can break some PHP-scripts, because of Apache's CGI |
6 |
Using suPHP can break some PHP-scripts, because of Apache's CGI |
7 |
interface. |
7 |
interface. |
Lines 9-15
Link Here
|
9 |
|
9 |
|
10 |
----------------------------------------------------------------- |
10 |
----------------------------------------------------------------- |
11 |
For those migrating from suPHP 0.5.x, be aware there are many |
11 |
For those migrating from suPHP 0.5.x, be aware there are many |
12 |
changes in 0.6.x that can cause your current Apache environment |
12 |
changes since 0.6.x that can cause your current Apache environment |
13 |
to stop working or behave oddly. Here are two migration tips: |
13 |
to stop working or behave oddly. Here are two migration tips: |
14 |
|
14 |
|
15 |
suPHP now uses a configuration file for runtime configuration. |
15 |
suPHP now uses a configuration file for runtime configuration. |
Lines 20-26
Link Here
|
20 |
...but *has not* been created for you. A sample configuration |
20 |
...but *has not* been created for you. A sample configuration |
21 |
file has been installed here: |
21 |
file has been installed here: |
22 |
|
22 |
|
23 |
/usr/local/etc/suphp.conf-example |
23 |
/usr/local/etc/suphp.conf-example |
24 |
|
24 |
|
25 |
This means that many of the make.conf(5) knobs for the |
25 |
This means that many of the make.conf(5) knobs for the |
26 |
www/suphp port are no longer used, and are modifiable in |
26 |
www/suphp port are no longer used, and are modifiable in |
Lines 31-47
Link Here
|
31 |
for determining what content get handled by suPHP. In 0.5.x, |
31 |
for determining what content get handled by suPHP. In 0.5.x, |
32 |
you used the following Apache directives: |
32 |
you used the following Apache directives: |
33 |
|
33 |
|
34 |
suPHP_Engine on |
34 |
suPHP_Engine on |
35 |
AddType application/x-httpd-php .php |
35 |
AddType application/x-httpd-php .php |
36 |
AddHandler x-httpd-php .php |
36 |
AddHandler x-httpd-php .php |
37 |
|
37 |
|
38 |
In suPHP 0.6.x, you should use the following: |
38 |
Since suPHP 0.6.x, you should use the following: |
39 |
|
39 |
|
40 |
suPHP_Engine on |
40 |
suPHP_Engine on |
41 |
AddType application/x-httpd-php .php |
41 |
AddType application/x-httpd-php .php |
42 |
suPHP_AddHandler application/x-httpd-php |
42 |
suPHP_AddHandler application/x-httpd-php |
43 |
|
43 |
|
44 |
Otherwise, Apache will begin serving PHP files as downloadable |
44 |
Otherwise, Apache will begin serving PHP files as downloadable |
45 |
content, rather than parse them with the PHP interpreter. |
45 |
content, rather than parse them with the PHP interpreter. |
46 |
----------------------------------------------------------------- |
46 |
----------------------------------------------------------------- |
47 |
|
|
|