Jump to content

php verification webpage in apache


mozung

Recommended Posts

I am following a tutorial and not getting everything.

i have installed php and apache. Apache is running fine. I Created a file named phpinfo.php3 and add the following line to the file.

<?phpinfo()?>

Put the file in the Apache  /var/www/html/.

Started a web browser and go to http://127.0.0.1/phpinfo.php3.

 

According to tutorial i should see a page that has some information about php and stuff. but all i see is text thing  <?phpinfo()?>.

 

also i see the index of my web pages when i go to main page of my website, i see "Index of /" . How can i see my actual main web page (blog) when i type in my url? ( it is showing the index.html, I have to click on it in order to see the webpage. )

 

any settings... Could you guys please help me out?

thanks

 

Link to comment
Share on other sites

HI neo

Thanks for reply, I changed extension to php and bingo, i was able to see informational page of php.

Now I realize that i dont have php and php3 are different and require different installations.

 

Moving to next problem. I want to see main page of my website when i open it, Not the index. How do i do that?

 

thanks

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.