3

I have one payment gateway that has only php api. Is it possible to run that script inside my IIS server on application that will run MVC4?

When I add 1.php to my root folder and try to navigate it it shows HTTP Error 404.3 - Not Found.

2
  • HTTP Error 404.3 - Not Found Commented Nov 6, 2012 at 15:29
  • May be a problem with URL routing. Commented Nov 6, 2012 at 15:32

1 Answer 1

4

You have to install PHP with FastCGI on the IIS server. That should configure it to support .php extension. It can be installed with http://www.microsoft.com/web/downloads/platform.aspx

Next you have to configure the routing to ignore requests to this page (otherwise it will assume that the name is actually a name of a controller).

Sign up to request clarification or add additional context in comments.

2 Comments

Yea, I installed PHP via WebPlatform installer and now I can run PHP scripts w/o even modifying routes. Paldies.
How would I configure the routing to ignore anything with the .php extension?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.