You must configure the file:
/etc/httpd/conf/httpd.conf to load the php modules, and need to change the file srm.conf in the same directory to MIME type php and php3
after this, restart the apache...
ps.: your page must be on the public_html directory, like as /home/httpd/html/test.php
good lucky
Johnnie Rose, Jr. wrote:
I can think of three things that could have gone wrong, the first being the most likely:
Do you have short tags enabled in php.ini under language options?
If you want to view a page through Apache, you have to start the server up, then type the localhost address to the page you want to view. The page has to be under the htdocs directory for Apache to parse it. Apache won't recognize it's supposed to parse anything if you use the /usr/local/apache/htdocs/phppage.php URL. For example, the URL for above would be http://localhost/phppage.php.
You can find out the extensions Apache identifies PHP files with by looking in your httpd.conf, as you said. If you save that file in that extension and it still doesn't work, check out some of the threads in the Windows Installation forum to find out how to add another PHP extension to httpd.conf.
Of course, the answer is probably amazingly obvious =).