2uzhan.com
Advertisement
Now Place:2uzhan.com » Need help turning PHP4 on for my server.

Need help turning PHP4 on for my server.

PHP @ December 31, 1969   Views:0

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.

--------------Solutions-------------

Sorry for the double post. I wasn't positive which forum I should put it in and it looks like the one I made in General Help was moved here.

Nevermind, I figured it out on my own.

Tags:
© 2018 2uzhan.com Contact