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

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

8-§  > After a bit if fiddling around I got
8-§  > apahce/php4 to load files named .php3 as php files, but anything named
8-§  > .php or .php4 gets ignored and is sent to the users browser as
8-§  > "application/x-httpd-php" as if php were not configured. The problem
8-§  > occurs in a users /public_html/ directory. Here is what my
8-§  > php section my my httpd.conf looks like:
8-§  > 
8-§  > ---cut-here---
8-§  > AddType application/x-httpd-php .php
8-§  > AddType application/x-httpd-php .php3
8-§  > AddType application/x-httpd-php .php4
8-§  > AddType application/x-httpd-php-source .phps
8-§  > ---cut-here---

Did you un-comment the "LoadModule php4_module /usr/lib/apache/1.3/libphp4.so" line?

Besides next is mine (and working well!):

    #AddType application/x-httpd-php3 .php3
    #AddType application/x-httpd-php3-source .phps
    # And for PHP 4.x, use:
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps

    AddType application/x-tar .tgz
    AddType image/bmp .bmp

8-§  > I tried replacing the "x-httpd-php" with "x-httpd-php4" but that results
8-§  > in sending the entire file to the user for download. If I place the file
8-§  > in /cgi-bin/ inside /public_html/ it works. So I feel I'm just missing a 
8-§  > very simple solution to the problem... It's been a long time since I've 
8-§  > configured apache, php, perl, and friends so I'm sure I'm just missing 
8-§  > something - but having looked through the documentation, searched this 
8-§  > lists archives, and google, I'm not seeing a solution.
8-§  > 
8-§  > Any help would be greatly appricated!
8-§  > 
8-§  > TIA,
8-§  > Ron
8-§  > -- 
8-§  > Email: <rbf@farrer.net> or <rbf@debian.org>
8-§  > Home:  <http://farrer.net/~rbf/>
8-§  > 

<<Unix IS user friendly... It's just selective about who its friends are!>>

 See "User's Guide":     http://www.debian.org/doc/manuals/users-guide/
 See "Debian reference": http://www.debian.org/doc/manuals/debian-reference/
 "Debian reference" Project at: http://qref.sf.net

Please DO NOT send e-mail with any attachment in a "proprietary format", such as either .doc or .ppt, BECAUSE: http://www.fsf.org/philosophy/no-word-attachments.html (the Italian version is available on the following url: http://www.fsf.org/philosophy/no-word-attachments.it.html)
T H A N K S   ;-P

Reply to: