First I should point out that I'm a relative newbie to web development, so please forgive me if I sound like an idiot when talking about my problem. :-)
I'm running an Apache server with Red Hat Linux. I have PHP 4.2.2-17.2 and MySQL 3.23.54a-11 installed. I'm having trouble getting PHP to handle .php files correctly. When I load up a .php page, it shows the code rather than the page:
http://www.stuckgamer.com/boards/index.php
I found the Apache config file on my server here:
/usr/local/psa/etc/httpd.conf.in
And the only PHP lines I have in that file are:
<IfDefine HAVE_PHP4>
LoadModule php4_module modules/libphp4.so
</IfDefine>
<IfDefine HAVE_PHP4>
AddModule mod_php4.c
</IfDefine>
DirectoryIndex index.html index.htm index.shtml index.php index.php4 index.php3 index.cgi
AddType application/x-httpd-php .php4 .php3 .phtml .php
From all the documentation I can find, it seems like I've done everything correctly. The only issue I can think of is that, like I said, the file with all this PHP info is at:
/usr/local/psa/etc/httpd.conf.in
But documentation says that it should be in:
/etc/httpd/conf/httpd.conf
Hopefully someone can lend me a hand with this, because I really need to get my forums up for my site pretty soon. Thanks in advance to anyone who offers help.