components/php-5_3/Solaris/php5.3.conf
changeset 4987 6a82655eda42
parent 4986 90a869b3f47a
child 4988 4b69c7c7e09b
equal deleted inserted replaced
4986:90a869b3f47a 4987:6a82655eda42
     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 #
       
    21 # Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
       
    22 #
       
    23 
       
    24 # 
       
    25 # Cause PHP5 to work with Apache pre-fork MPM(32-bit) only.
       
    26 # Load this module only if not loaded already
       
    27 #
       
    28 <IfDefine !64bit>
       
    29 <IfModule prefork.c>
       
    30 <IfModule !mod_php5.c>
       
    31 LoadModule php5_module libexec/mod_php<<VERSION>>.so
       
    32 </IfModule>
       
    33 </IfModule>
       
    34 </IfDefine>
       
    35 
       
    36 <IfModule mod_php5.c>
       
    37 #
       
    38 # Cause the PHP interpreter handle files with a .php extension.
       
    39 #
       
    40 AddHandler application/x-httpd-php .php5
       
    41 AddHandler application/x-httpd-php .php
       
    42 AddHandler application/x-httpd-php-source .php5s
       
    43 AddHandler application/x-httpd-php-source .phps
       
    44 
       
    45 #
       
    46 # Add index.php to the list of files that will be served as directory
       
    47 # indexes.
       
    48 #
       
    49 DirectoryIndex index.php
       
    50 DirectoryIndex index.php5
       
    51 </IfModule>
       
    52 
       
    53 <IfModule !mod_php5.c>
       
    54 <IfModule mod_fcgid.c>
       
    55 #
       
    56 # Cause the PHP interpreter to be invoked via FastCGI to handle files 
       
    57 # with a .php extension.
       
    58 #
       
    59 FcgidWrapper "/usr/php/<<VERSION>>/bin/php-cgi" .php
       
    60 FcgidWrapper "/usr/php/<<VERSION>>/bin/php-cgi" .php5
       
    61 
       
    62 FcgidCmdOptions /usr/php/<<VERSION>>/bin/php-cgi \
       
    63   InitialEnv PHP_FCGI_MAX_REQUESTS=10000 \
       
    64   InitialEnv PHP_FCGI_CHILDREN=0 \
       
    65   MaxRequestsPerProcess 10000
       
    66 
       
    67 # Match .php or .php5 files and enable execution via mod_fcgid
       
    68 <FilesMatch "\.php5?$">
       
    69   SetHandler fcgid-script
       
    70   Options +ExecCGI
       
    71 </FilesMatch>
       
    72 
       
    73 #
       
    74 # Add index.php to the list of files that will be served as directory
       
    75 # indexes.
       
    76 #
       
    77 DirectoryIndex index.php
       
    78 DirectoryIndex index.php5
       
    79 </IfModule>
       
    80 </IfModule>