Home  >  Article  >  Backend Development  >  Special settings for PHP in virtual host_PHP tutorial

Special settings for PHP in virtual host_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 16:05:10704browse

Virtual Host Settings


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 settings

# Set whether to use php for this virtual host
php_engine On
# Set the debugging level of php error information
php_error_reporting 1
# Set whether to record php error logs
php_log_errors On
# Set the php error log file
php_error_log /www/virtual.com/logs/php_error_log
# Set the maximum survival time of a php thread
php_max_execution_time 180
# Set the user’s temporary upload directory
php_upload_tmp_dir /www/virtual.com/htdocs/ tmp
# Set include header files
php_include_path /www/virtual.com/htdocs/include


Executable directory settings


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

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/315800.htmlTechArticleVirtual host settings VirtualHost 127.0.10.10 ServerAdmin webmaster@hostmachine.com DocumentRoot /www/virtual.com/htdocs ServerName www .virtual.com UserDir /www/virtual.com/htdocs Scri...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn