Special settings for PHP in a virtual host

Source: Internet
Author: User
Virtual Host Virtual 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
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
<Directory/www/virtual.com/htdocs>
# set whether to use PHP3 for this virtual host
Php3_engine on
# set debug level for PHP3 error message
Php3_error_reporting 1
# set whether to record PHP3 error log
Php3_log_errors on
# Set the error log file for PhP3
Php3_error_log/www/virtual.com/logs/php3_error_log
# Set the maximum surviving time for a php3 thread
Php3_max_execution_time 180
# Set user Temporary upload directory
Php3_upload_tmp_dir/www/virtual.com/htdocs/tmp
# settings include header file
Php3_include_path/www/virtual.com/htdocs/include


Executable Directory settings


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




Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.