Real easy fix.  Add this line to your httpd.conf file:

AddType application/x-httpd-php .php .phtml .php3

Which simply tells Apache to use PHP to handle all of the pages with those
extensions.

Best,
John

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Friday, December 26, 2003 9:39 PM
To: [EMAIL PROTECTED]
Subject: [PHP-INSTALL] php installation problem


Hello all,
For the last 2 days I've been attempting to install php from source on my
RedHat/Fedora linux box.  I am using Apach/httpd -2.0.47-10.  I downloaded
the source version of php-4.3.4.  I followed all the instructions that I
can find and I'm attempting to install php as a dso.  The ./configure,
make and make install all seem to go fine; however once I restart apache
and attempt to bring up a php page all I see is the source code.  I've
looked at my httpd source file and the LoadModule line for php is there.
I also added an AddType line for php.  Below are the arguments that I
passed to ./configure:

 ./configure --enable-mysql --enable-exif --enable-pgsql
--with-apxs2=/usr/sbin/apxs

Can anyone offer me any assistance here as to what I might be doing or
have done wrong and how to correct it.  Thanks alot.
AJ

Reply via email to