Debian - PHP4 - MYSQL post install
| From: | Alex Miller | Date: | Mon, 30 Apr 2001 20:23:48 +0000 |
| Subject: | Debian - PHP4 - MYSQL post install | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-2956@lists.php.net to get a copy of this message | ||
When I attempt to browse a .php file, the browser
asks if I want to "save" or "open" the file, as if it
were something to download.
I have a debian potato system, originally derived from
Storm Linux.
I have installed the php4 package, and the php-mysql
package.
That placed a commented out load module in my httpd.conf
Since debian uses both httpd.conf and srm.conf here are
the relevant portions
httpd.conf
#The debian installation left this commented out
LoadModule php4_module /usr/lib/apache/1.3/libphp4.so
srm.conf
#The debian installation left this as just index.html, so
#I added to it
DirectoryIndex index.html,index.htm,index.php
# For example, the PHP3 module (a separate Debian package)
# will typically use:
# Commented out by Alex Miller 4/30/2001
#AddType application/x-httpd-php3 .phtml
#AddType application/x-httpd-php3-source .phps
#AddType application/x-httpd-php3 .php
#Added by Alex Miller 4/30/2001
AddType application/x-httpd-php4 .php
Notice that the AddType directives were for php3, it seems.
I added the AddType application/x-httpd-php4.php
myself. This I got from the FAQ.
In the FAQ (regarding RPM installations - not Debian)
there are sever AddModule directives. In my debian
installation I have no AddModule directives for any
modules.
I am using virtual hosts.
Alex Miller