0
|
1 |
#
|
|
2 |
# CDDL HEADER START
|
|
3 |
#
|
|
4 |
# The contents of this file are subject to the terms of the
|
|
5 |
# Common Development and Distribution License (the "License").
|
|
6 |
# You may not use this file except in compliance with the License.
|
|
7 |
#
|
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
|
|
9 |
# or http://www.opensolaris.org/os/licensing.
|
|
10 |
# See the License for the specific language governing permissions
|
|
11 |
# and limitations under the License.
|
|
12 |
#
|
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each
|
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
|
|
15 |
# If applicable, add the following below this CDDL HEADER, with the
|
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying
|
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner]
|
|
18 |
#
|
|
19 |
# CDDL HEADER END
|
|
20 |
#
|
5
|
21 |
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
|
0
|
22 |
# Use is subject to license terms.
|
|
23 |
#
|
5
|
24 |
#pragma ident "@(#)php5.2.conf 1.4 09/12/23 SMI"
|
0
|
25 |
|
|
26 |
#
|
|
27 |
# Cause PHP5 to work with Apache pre-fork MPM(32-bit) only.
|
|
28 |
# Load this module only if not loaded already
|
|
29 |
#
|
|
30 |
<IfDefine !64bit>
|
|
31 |
<IfModule prefork.c>
|
|
32 |
<IfModule !mod_php5.c>
|
|
33 |
LoadModule php5_module libexec/mod_php5.so
|
|
34 |
</IfModule>
|
|
35 |
</IfModule>
|
|
36 |
</IfDefine>
|
|
37 |
|
|
38 |
<IfModule mod_php5.c>
|
|
39 |
#
|
|
40 |
# Cause the PHP interpreter handle files with a .php extension.
|
|
41 |
#
|
|
42 |
AddHandler application/x-httpd-php .php5
|
|
43 |
AddHandler application/x-httpd-php .php
|
|
44 |
AddHandler application/x-httpd-php-source .php5s
|
|
45 |
AddHandler application/x-httpd-php-source .phps
|
|
46 |
|
|
47 |
#
|
|
48 |
# Add index.php to the list of files that will be served as directory
|
|
49 |
# indexes.
|
|
50 |
#
|
|
51 |
DirectoryIndex index.php
|
|
52 |
DirectoryIndex index.php5
|
|
53 |
</IfModule>
|
5
|
54 |
|
|
55 |
<IfModule !mod_php5.c>
|
|
56 |
<IfModule mod_fcgid.c>
|
|
57 |
#
|
|
58 |
# Cause the PHP interpreter to be invoked via FastCGI to handle files
|
|
59 |
# with a .php extension.
|
|
60 |
#
|
|
61 |
FcgidWrapper "/usr/php/5.2/bin/php-cgi" .php
|
|
62 |
FcgidWrapper "/usr/php/5.2/bin/php-cgi" .php5
|
|
63 |
|
|
64 |
FcgidCmdOptions /usr/php/5.2/bin/php-cgi \
|
|
65 |
InitialEnv PHP_FCGI_MAX_REQUESTS=10000 \
|
|
66 |
InitialEnv PHP_FCGI_CHILDREN=0 \
|
|
67 |
MaxRequestsPerProcess 10000
|
|
68 |
|
|
69 |
# Match .php or .php5 files and enable execution via mod_fcgid
|
|
70 |
<FilesMatch "\.php5?$">
|
|
71 |
SetHandler fcgid-script
|
|
72 |
Options +ExecCGI
|
|
73 |
</FilesMatch>
|
|
74 |
|
|
75 |
#
|
|
76 |
# Add index.php to the list of files that will be served as directory
|
|
77 |
# indexes.
|
|
78 |
#
|
|
79 |
DirectoryIndex index.php
|
|
80 |
DirectoryIndex index.php5
|
|
81 |
</IfModule>
|
|
82 |
</IfModule>
|