PHP is not working on my domain name. How should I resolve this problem?

We've frequently observed that application extensions path is setup incorrect in IIS property of your domain. The correct application extension path should be set as "C:\Program Files (x86)\PHP\v5.6\php-cgi.exe" in IIS. Please follow the given procedure to set correct PHP extensions path:


IIS6

  1. Go to "IIS".
  2. From the website property select "Home Directory"
  3. From the "Configuration" in the "Application Extensions" .php extention, set the path to "C:\Program Files (x86)\PHP\v5.6\php-cgi.exe".

IIS7/8

  1. Go to "IIS".
  2. Click on servername. Now, search for PHP Manager and double click on it.
  3. Under PHP setup, "PHP executable" should have path as: "C:\Program Files (x86)\PHP\v5.6\php-cgi.exe"
  4. If it does not show the path, you can click on "Register new PHP version" and add path for php-cgi.exe


NOTE:
We consider that you have PHP version 5.6 is installed at C:\Program Files (x86)\PHP\v5.6\ location. You will have to change it based on your installation path.


Related Articles

List of software installed in Windows VPS with Full configuration

Following is list of softwares which are available on your VPS when you buy a Windows VPS with...

How to Set Custom php.ini file on my Web Hosting Service?

Sometimes you are required to set custom php environmental variables or update php settings for...

How to block single IP address or range of IP addresses from Windows Firewall 2008?

Following article will assist you to block single IP address or a range of IP addresses in...

How to Add IIS Role in Windows 2008 Server?

Internet Information Services (IIS) is a web server developed by the Microsoft for hosting web...

How to enable/disable Internet Explorer Enhanced Security Configuration (IE ESC) in Windows Server 2008 & 2012?

Enhanced Security Configuration (ESC) mode eliminates the chances of an attack on the server by...

  • 1 Users Found This Useful

Was this answer helpful?