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

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



On Mon, 2 Sep 2002 10:57:33 -0700 Ron Farrer <rbf@farrer.net> wrote: 8-§  > webmaster @ linuxabbestia. homelinux. net (debianabbestia@inwind.it) wrote:
8-§  > 
8-§  > > Did you un-comment the "LoadModule php4_module /usr/lib/apache/1.3/libphp4.so" line?
8-§  > 
8-§  > Yes.
8-§  > 
8-§  > > Besides next is mine (and working well!):
8-§  > > 
8-§  > >     #AddType application/x-httpd-php3 .php3
8-§  > >     #AddType application/x-httpd-php3-source .phps
8-§  > >     #
8-§  > >     # And for PHP 4.x, use:
8-§  > >     #
8-§  > >     AddType application/x-httpd-php .php
8-§  > >     AddType application/x-httpd-php-source .phps
8-§  > > 
8-§  > >     AddType application/x-tar .tgz
8-§  > >     AddType image/bmp .bmp
8-§  > 
8-§  > Ok, I changed mine to match yours.. now this is interesting: files in
8-§  > directories under /public_html/ work, but not in /public_html/ itself.
8-§  > It still tries to download the file, but now it says
8-§  > "application/x-trash" (weird!)  if I specifiy a file directly (not
8-§  > index.php) it still says "application/x-httpd-php" but at least index.php 
8-§  > and other .php files in subdirs work...
8-§  > 
8-§  > Any ideas?

Did type next lines in /etc/apache/srn.conf?


 DirectoryIndex index.htm index.html index.shtml index.php index.php3
 DocumentRoot /var/www/  <-- that's default

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

linuxabbestia


<<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: