All pastes #634442 Raw Edit

httpd.conf

public text v1 · immutable
#634442 ·published 2007-07-26 11:48 UTC
rendered paste body
bash-2.05b# grep -i php /usr/local/etc/apache/httpd.conf
#LoadModule php4_module        libexec/apache/libphp4.so
LoadModule suphp_module       libexec/apache/mod_suphp.so
#AddModule mod_php4.c
AddModule mod_suphp.c
#    <IfModule mod_php3.c>
#        <IfModule mod_php4.c>
#            DirectoryIndex index.php index.php3 index.html
#        <IfModule !mod_php4.c>
#            DirectoryIndex index.php3 index.html
#    <IfModule !mod_php3.c>
#        <IfModule mod_php4.c>
#            DirectoryIndex index.php index.html
#        <IfModule !mod_php4.c>
DirectoryIndex index.php index.php3 index.html index.shtml
Alias /phpMyAdmin "/usr/local/www/phpMyAdmin"
<Directory "/usr/local/www/phpMyAdmin">
#       AddType application/x-httpd-php .php
#       AddType application/x-httpd-php .php3
#       AddType application/x-httpd-php-source .phps
AddHandler x-httpd-php .php
AddHandler x-httpd-php .php3
AddHandler x-httpd-php-source .phps
  RewriteCond %{REQUEST_URI} !^/(phpMyAdmin|mit_notes|mit_notes_devel|[rR]esearch/([cC][vV][cC]|[dD][nN][aA]|[aA]gents)|annual_review_2004|annual_review_2005|mit)
# PHP3&4 options
<IfModule mod_php4.c>
php_admin_flag safe_mode on
# Whether to enable PHP's safe mode. Read the Security chapter for more
<IfModule mod_php4.c>
php_admin_value safe_mode_exec_dir .
#php_admin_value safe_mode_exec_dir /nonexistent
# If PHP is used in safe mode, system() and the other functions executing
#<IfModule mod_php3.c>
#php3_doc_root .
#<IfModule mod_php4.c>
#php_admin_value doc_root .
# PHP's "root directory" on the server. Only used if non-empty. If PHP is
<IfModule mod_php4.c>
php_admin_value user_dir public_html
# The base name of the directory used on a user's home directory for PHP
<IfModule mod_php4.c>
php_admin_value open_basedir .:/usr/local/include/php/ext:/usr/local/www/data/afrigraph/conference:..:/u1/system/www/public_html/aarnab/album/:/usr/local/www/data/public_html/aarnab/album/09-AUG-2004/
# Limit the files that can be opened by PHP to the specified directory-tree.
# directory-tree, PHP will refuse to open it. All symbolic links are resolved,
<IfModule mod_php4.c>
php_admin_value include_path .:/usr/local/include/php/ext:/usr/local/include/php/ext/xmlrpcutils:/usr/local/www/data/afrigraph/conference
suPHP_Engine on
# http://www.suphp.org/Documentation-Module-Configuration.en.html