[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

getting apache/php4 to load .php, .php3, .php4


I have apache (1.3.26-0woody1), apache-perl (1.3.26-1-1.26-0woody1), 
apache-ssl (, php4 (4:4.1.2-4), and php4-cgi
(4:4.1.2-4) installed on my system (Linux yaveng 2.4.17 #4 Wed Mar 6
08:25:23 PST 2002 ppc unknown). After a bit if fiddling around I got
apahce/php4 to load files named .php3 as php files, but anything named
.php or .php4 gets ignored and is sent to the users browser as
"application/x-httpd-php" as if php were not configured. The problem
occurs in a users /public_html/ directory. Here is what my
php section my my httpd.conf looks like:

AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php-source .phps

I tried replacing the "x-httpd-php" with "x-httpd-php4" but that results
in sending the entire file to the user for download. If I place the file
in /cgi-bin/ inside /public_html/ it works. So I feel I'm just missing a 
very simple solution to the problem... It's been a long time since I've 
configured apache, php, perl, and friends so I'm sure I'm just missing 
something - but having looked through the documentation, searched this 
lists archives, and google, I'm not seeing a solution.

Any help would be greatly appricated!

Email: <rbf@farrer.net> or <rbf@debian.org>
Home:  <http://farrer.net/~rbf/>

Attachment: pgp9P6Q7Nl62m.pgp
Description: PGP signature

Reply to: