Jump to content

opening .php file in browser


Recommended Posts

I work on ubuntu 10.10.have installed apache2 and php5 using terminal but when i created a .php file( <?php  phpinfo(); ?> ) and tried opening in my browser by giving the url :localhost/info.php it pops up the widow asking " Do you want to open or save the file".If I choose open it asks " Which application do you want to open with?"

Please help 

 

[attachment deleted by admin]

Link to comment
Share on other sites

beg your pardon but I simply wrote sudo apt-get install php and now when I write php -v..the terminal gives a complete info about the version of php installed , doesnt this mean that php is installed properly, moreover how do I figure out the location/dir  having php?

Link to comment
Share on other sites

I faced problem in the  very first step of installing apache.After typing sudo apt-get install apache2 when i open the browser  it instaed of showing apache default folder shows the screen( as attached)

 

[attachment deleted by admin]

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.