Re: [PHP] Installing PHP4 -- Stumped...


Subject: Re: [PHP] Installing PHP4 -- Stumped...
From: Michael A. Peters (Moonglue@141.com )
Date: Tue Sep 12 2000 - 18:17:47 MDT


>You will need
>AddType application/x-httpd-php .php3
>AddType application/x-httpd-php .php
>in your http.conf though.

.php and .php3 can be on one line.

What I have in my httpd.conf file:

<IfModule mod_php4.c>
   AddType application/x-httpd-php .php .php4 .php3
   AddType application/x-httpd-source .phps
</IfModule>

the AddType application only gets applied if you are loading the php
module, so if you ever decide to turn of mod_php the AddType lines
won't be applied on apache restart.

ofcourse if you added the module to apache during apache build (not a
great idea if you ask me- module is good) then the <IfModule> stuff
isn't applicable...

Another thing (completely optional) is your DirectoryIndex line-
which likely currently reads

DirectoryIndex index.html index.htm index.shtml index.cgi

(possibly not the last two if you built it yourself)

You can add index.php index.php3 index.php4 to that line and in you
have an index.php3 (or .php or .php4) file in a directory, you can
point a browser simply to the directory name w/o needing to specify
index.php3 in the url (i.e. http://www.yourdomain.com/phpMyAdmin/

would loads the index.php3 page opposed to a directory listing of
everything in that directory (or permission denied if you have
directory listing turned off...)

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Michael A. Peters-- http://24.5.29.77/Linux_Pages/
                                http://www.omnilinux.com/
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  



This archive was generated by hypermail 2a24 : Wed Sep 13 2000 - 03:31:53 MDT