Title:       PHP 4.x Apache Directives Notes
Contributor: Randall Goguen (aka Ranman)
Last Update: Tuesday July 18 19:55 EDT 2000

# For .htaccess
<Directory /home/htdocs>
php_flag log_errors on
php_flag short_open_tag on
php_value max_execution_time 180
php_value upload_tmp_dir /home/htdocs/tmp
php_value include_path /home/htdocs/include
php_value memory_limit 8388608
php_value error_reporting 15
php_flag display_errors on
php_flag track_errors off
php_value error_log /usr/local/httpd-php/logs/php3_error.log
php_flag magic_quotes_gpc on
php_flag track_vars on
php_value auto_prepend_file /usr/local/httpd-php/php/prepend.php3
php_value auto_append_file /usr/local/httpd-php/php/append.php3

# For httpd.conf
<Directory /home/htdocs>
php_admin_flag engine on
php_admin_flag log_errors on
php_admin_value max_execution_time 180
php_admin_value upload_tmp_dir /home/htdocs/tmp
php_admin_value include_path /home/htdocs/include
php_admin_flag short_open_tag on
php_admin_value memory_limit 8388608
php_admin_value error_reporting 15
php_admin_flag display_errors on
php_admin_flag track_errors off
php_admin_value error_log /usr/local/httpd-php/logs/php3_error.log
php_admin_flag magic_quotes_gpc on
php_admin_flag track_vars on
php_admin_value auto_prepend_file /usr/local/httpd-php/php/prepend.php3
php_admin_value auto_append_file /usr/local/httpd-php/php/append.php3
php_admin_value include_path /home/htdocs/include

        Anyone who wishes to make additions or changes to this
PHP Tip email them to

        This document is Copyright (c) 1999, 2000 by LinuxGuruz