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
https://forums.phpfreaks.com/topic/131591-php-verification-webpage-in-apache/
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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.