Forum Moderators: phranque

Message Too Old, No Replies

Installing PHP with apache 2.2

         

niss3

7:34 pm on Jan 29, 2009 (gmt 0)

10+ Year Member



Hi!

I have just installed apache 2.2.
After that I downloaded the lastest PHP 5 and
installed that one. I checked the apache config
file and php has added some lines in the bottom
of the config. Now to my question.

Why doesn't php info work?
<?php
phpinfo();
?>

niss3

7:38 pm on Jan 29, 2009 (gmt 0)

10+ Year Member



fixed it. The filename was .html. I changed it to .php and now it works.

Newbie errors ^^

coopster

1:59 pm on Jan 30, 2009 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, niss3.

You could leave the .html extension if you wanted, you just need to tell Apache to handle any files with that extension using the PHP engine. It will be important that you learn and understand how your http server works:
AddHandler [httpd.apache.org]