IIS Configuration PHP Environment HTTP 500 error handling method

Source: Internet
Author: User
Tags configuration php

in the construction of PHP program encountered 500 errors, visit Phpinfo test is 500, re-installed PHP, re-build the site, webmaster accounts, to the Everyone permission test is 500 errors, tangled for a long time, and then thought of the impact of the program pool, The following steps are the way I handle my problem:
Open IIS Manager, select application Pool-Your site application pool (own creation)-click "Set Application Pool Defaults" on the right, open, in general, set "enable 32-bit application" to "True", change "managed pipeline mode" to classic, Finally click "OK" and everything is OK.
There are also some other steps that can be consulted on the Web:
1, IIS use fastcgi way to configure PHP, when writing PHP program, often appear HTTP 500 error
HTTP Internal Server Error: The server encountered an unexpected condition while trying to execute the request. In the study, PHP did not turn on error when found, so that IIS could not handle PHP syntax errors, so any error will show an HTTP 500 error.
workaround is simple, open php.ini, set display error
display_errors = on
then open IIS and restart fastcgi.
HTTP 500 Server Internal error. The reason for this problem is that phpMyAdmin and WordPress and other programs index.php files used in the Require (./xxx.php) Such a statement, is generally a file or database permissions issues.
solution, change the inside require (./xxx.php) to require (xxx.php).
Workaround 2, give the IIS user Read permission to the parent directory of the site.

This article is from the "high-tech blog" blog, please be sure to keep this source http://gaopengju.blog.51cto.com/12830710/1942471

IIS Configuration PHP Environment HTTP 500 error handling method

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.