虛擬主機中對PHP的特殊設置

虛擬主機設置
<VirtualHost 127.0.10.10>
ServerAdmin webmaster@hostmachine.com
DocumentRoot /www/virtual.com/htdocs
ServerName www.virtual.com
UserDir /www/virtual.com/htdocs
ScriptAlias /cgi-bin/ /www/virtual.com/cgi-bin/
ErrorLog /www/virtual.com/logs/error_log
CustomLog /www/virtual.com/logs/access_log common

目錄設置
<Directory /www/virtual.com/htdocs>
# 對該虛擬主機設置是否使用php3
php3_engine On
# 設置php3出錯信息的調試級別
php3_error_reporting 1
# 設置是否記錄php3出錯日志
php3_log_errors On
# 設置php3的出錯日志文件
php3_error_log /www/virtual.com/logs/php3_error_log
# 設置一個php3線程的最長存活時間
php3_max_execution_time 180
# 設置用戶臨時上載目錄
php3_upload_tmp_dir /www/virtual.com/htdocs/tmp
# 設置包含頭文件
php3_include_path /www/virtual.com/htdocs/include

可執行目錄設置

Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all

You May Also Like