Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a Windows Server 2003 VPS running IIS 6 and .NET Framework 4 and PHP. I have a client that needs to run a custom PHP application. But their files wouldn't run as PHP script. I run Wordpress on other websites fine.

Please Help me.

share|improve this question

Firstly, could you provide some info on what actually happens when you try execute their PHP scripts ? Without more info this is all i can suggest:

Add a file called "test.php" to a site containing the following

<?php phpinfo(); ?>

when you try access the file via http://yourdomain/location/to/test.php

does it show you exactly what is in the file ?

you need to add php5.dll extention to IIS

does it ask you to download the file ?

same as above.

does it print out a phpinfo page ?

if the phpinfo page prints out correctly, check if your clients php files use short open tags eg.

<? phpinfo(); ?>

if so you may just need to enable that in your php.ini

I hope this is clear and helps.


share|improve this answer
+1 - 9 times out of 10 that I've seen this, it's because they were using short tags and short tags weren't enabled on the server. – Eric Petroelje Oct 19 '10 at 16:22

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.