Customize HTTP 400 error page in IIS 7 - php

Is their any way to display a custom page for HTTP 400 error.
I'm using PHP with IIS7 in Windows server 2008 R2
I checked Microsoft website and got this info. It tells that we can't customize it.
I found another article regarding this via ".htaccess" file (http://perishablepress.com/custom-http-errors-via-htaccess/)

No. We cannot display a custom page for HTTP 400 error using PHP in IIS7 in windows server 2008 R2.
Please refer the link for more details.(Link)

Related

PHP in windows 10

I installed every version of PHP on windows 10 via the web platform installer with IIS10 as the web server. A simple page using PHP 7.1 as follows
<?php
echo "Hello world";
returns back a [HTTP/1.1 500 Internal Server Error 19ms] message.
Any feedback as to what I could be missing.
Thanks.

IIS not working with Windows 10

I can retreive a simple web page but not php scripts. I get the following message when trying to run a php script.
"there was a problem retreiving the XML Data. Unauthorized (401). However, I have set all of the permissions in inetpub folder to allow access. It's IIS after installing Windows 10 without any mods.
Any ideas what the problem might be?
By trial and error, I found that I needed to go into IIS Default Web Page and click authorization. I then needed to enable Windows authorization.
I can now use localhost for testing web content.

Redirect 301 from asp tp wordpress on windows server 2008 IIS 7.5

I need to redirect 500 pages made in ASP to my new wordpress site.
All is on windows server 2008 IIS 7.5.
I would appreciate if someone could give me the exact code and how and where to implement it, for example: /product?id22.asp to redirect to /mansclothing.php.
The asp pages are coming from database, therefore I cannot make it in IIS by clicking on each page, they are all in DB.
Thanks,
Yosi

Facebook PHP sdk 500 Internal Server Error on windows server

I am trying to integrate Facebook php sdk with my application (build on YII framework) using yii-facebook-opengraph extension.
The problem arises once i am trying to authenticate to facebook. after authentication and redirects to the domain its throwing 500 internal server error.
Application hosted on windows server, PHP (5.2.17), Yii(1.1.14),parallel plesk(9.5).
The cause for 500 internal server is unknown. also checked the log but its of no help to trace the error.
Please help me to fix the issue.
The most recent version of Facebook's PHP SDK, version 4, requires PHP 5.4. Your question indicates that you're using an earlier version of PHP.

HTTP Error 500 on phpinfo.php

I just installed MySQL on Windows Server 2008 R2.
I followed the instructions on: [Install and Configure MySQL for PHP Applications on IIS7][1]
And when i was gonna check phpinfo.php, i get error 500. Here is a ScreenShot that i took when using RDP to our Windows 2008 R2 server. http://i.stack.imgur.com/hW7qG.png
I have no idea what causes this error. And i have absolutley no idea how to fix this.
Here is the error log that IIS made for today: http://s000.tinyupload.com/?file_id=11719906829973224437
i've searched around using google, and there was no solution for my problem.
I have PHP Manager, and it does not show any message that would indicate there is a problem with the PHP configuration.
Any idea how i can fix this, so that i can continue on developing the website for my company?

Categories