php files not opening in firefox

Tapas Mishra mightydreams at gmail.com
Wed Feb 9 09:11:54 UTC 2011


On Wed, Feb 9, 2011 at 1:35 PM, Ashim Kapoor <ashimkapoor at gmail.com> wrote:
> Dear all,
>
> I use gedit to create my php files and firefox to view them. I dont know
> what happened today but ALL my php files are opening only in gedit. How do i
> get it to open in firefox ?
>
> Many thanks,
> Ashim
>
> --
Assuming you made some scripts in PHP which have filenames file.php

you need to install apache2
apt-get install apache2
here check http://localhost
if you get a message It Works!! that means Apache installation is
successful upto her.

Then in Document Root which is a folder known as  /var/www
you need to  put your all PHP files.
Since you are just beginning so put it there once you become
expert you will understand better.
Then open your browser

and http://localhost/filename.php
This is how you will view it.




More information about the ubuntu-users mailing list