Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

i am unable to run my php script using the following command : http://localhost/test.php

after typing the above command am getting a dialog box to open or save file named as test.php m unable to get through the error.please help !

share|improve this question

migrated from stackoverflow.com Nov 11 '10 at 6:02

This question came from our site for professional and enthusiast programmers.

OS is ubuntu 9.04, apache server ,php5 is the version i installed . –  navjeet Nov 9 '10 at 11:46
You have to install php first :p –  alexy13 Nov 9 '10 at 22:38

3 Answers 3

You haven't installed PHP properly. Read here for instructions.

share|improve this answer

Are you sure, that you have mod_php installed? This looks like, that the Apache couldn't interpret the PHP script.

If you are on windows I would recommend: Apache Friends

share|improve this answer
what is mod_php ? It might be the case .m really not sure . –  navjeet Nov 9 '10 at 11:49
did you tried the first four commands from: howtogeek.com/howto/ubuntu/installing-php5-and-apache-on-ubuntu ? –  Adam Nov 9 '10 at 11:55

Yes, use xampp or wamp server instead, if you are trying to develop some applicaiton quickly, else follow the instructions from here php Manual

share|improve this answer

Your Answer


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