Skip to content

Http Error 502.2 - Bad Gateway when testing iis and php installation

Featured Replies

Hello,

(OK, this time, I'm pretty sure I have not forgotten any step)

I am on Windows 8.1.

When I type 'http://winids/temp.php' in the address bar of a web browser (IE or Firefox), I get a 502.2 error. Apparently, it's due to the REDIRECT_STATUS CGI variable not being set in php.ini. But according to the php website, this variable is not set for security reasons...

I tried to do the previous steps again to make sure I had not forgotten anything, to no avail.

If I change this variable, will it solve the problem? Is it safe to do so? Is there another way to solve this issue? Am I completely off-track?

Thank you in advance for your answer.

Go back to the section Configuring IIS for PHP, and the Windows Intrusion Detection Systems security console and verify all the settings, and if all is good the attach the php.ini file.

  • Author

Hello,

I checked all the settings and I found nothing wrong. You will find attached to this message the php.ini file.

php.ini

  • Author

It worked! Thank you very much.

Create an account or sign in to comment

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.