0

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 !

  • OS is ubuntu 9.04, apache server ,php5 is the version i installed . –  Nov 09 '10 at 11:46
  • You have to install php first :p –  Nov 09 '10 at 22:38
  • Nowadays we use [xampp](https://www.apachefriends.org/download.html) for quickest PHP setup on your localhost, might as well check this [windows php](https://www.youtube.com/watch?v=PUwRinHHTCo) tutorial. – InfiniteStack Aug 07 '22 at 20:53

3 Answers3

0

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

0

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

  • what is mod_php ? It might be the case .m really not sure . –  Nov 09 '10 at 11:49
  • did you tried the first four commands from: http://www.howtogeek.com/howto/ubuntu/installing-php5-and-apache-on-ubuntu/ ? –  Nov 09 '10 at 11:55
0

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

J Bourne
  • 101
  • 3