Click to See Complete Forum and Search --> : Redhat 7.2, PHP problem, seeing the code only


Ideal
10-10-2002, 10:43 PM
I have Apache 2.0.43 Instaled and I have PHP 4.2.3 Installed

This is how i ran the installs
./configure --prefix=/usr/local/apache2 when i installed Apache
MAKE, INSTALl

then PHP
./configure --with-mysql --with-apxs2=/usr/local/apache2/bin/apxs

Make, INSTALL

Then I added AddType application/x-httpd-php .php to the httpd.conf file.

But I keep getting seeing the CODE not the actual page, im not sure what I made a mistake on, I know they arent supported platforms but numerous of people have told me they run it without a hitch.

Thanks for the help.

-Ideal

piersk
10-11-2002, 10:16 AM
Are you using the apache module, or the CGI way of running PHP?

If you are using the module, then you need to add (at the end of the long list of modules):

LoadModule php4_module c:/php/sapi/php4apache.dll.

If you are running it the CGI way, then you need to add this before the AddType line:

ScriptAlias /php/ "c:/path/to/php
.

Hope this helps.

Ideal
10-12-2002, 09:48 PM
im on linux...