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

Re: PHP module for Apache



That did it for me, thanks. Works fine now. Wonder why dpkg/dselect/apt-get
don't take care of that for you when you install the php4 module package...

On Sun, Oct 27, 2002 at 02:59:37PM +0100, Vinai Kopp spanked upon the buttocks of Barbie in Morse Code:
On Sun, Oct 27, 2002 at 06:34:38AM -0500, Stephan Sauerburger wrote:

in the body. I put it in /var/www (which DocumentRoot points to in
httpd.conf), but when I visit http://localhost/hello.php4 in any browser
I've tried so far (opera, IE, lynx and galeon (mozilla)), it doesn't spew
out the html code with output from php, but instead offers to download or
open the file, indicating it doesn't recognize it. Multiple php tutorials

I guess oyu have not set up the handler in /etc/apache/httpd.conf.

Check these lines are present and uncommented:

 LoadModule php4_module /usr/lib/apache/1.3/libphp4.so

and, probably further down:

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

You might also want to add index.php to your directoryindex list:

 <IfModule mod_dir.c>
   DirectoryIndex index.php index.html
 </IfModule>
--
Vinai
Registered Linux User #280755, Debian GNU/Linux  http://counter.li.org/
Secure eMail with gnupg                          http://www.gnupg.org/



--
-Stephan
For PGP Public Key, visit:
http://www.sauerburger.org

Attachment: pgpP0jfKb0jIi.pgp
Description: PGP signature


Reply to: