Run php,php_cgi____php in CGI mode

Source: Internet
Author: User

<directory/>
Options FollowSymLinks
AllowOverride None
Order Deny,allow
Allow from all
# Deny from all
#不能有deny from all
Satisfy All
</Directory>

AddType application/x-httpd-php. php
scriptalias/php5/"d:/php5/"
#必须有结尾的 "/"
Action application/x-httpd-php "/php5/php-cgi.exe"
#必须为php-cgi.exe
#
If you do not want to set permission for the root ("/") (Allow from all)
You can only set the directory for Php-cgi.exe to allow access:
<directory "d:/php5/" >
Allow from all
</Directory>
Otherwise, the runtime will have the following error tip: Forbidden

You don ' t have permission to access/php5/php-cgi.exe/t.php on the this server.

This means that Apache does not have access to php-cgi.exe.
Note: This method is applicable to php5.1.x, php5.2.x and php5.3.0,php4.x and previous versions have not been tested.

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.