[oclug] Help with php and Apache
Dave O'Neill
dave at nexus.carleton.ca
Sat Apr 14 19:27:36 EDT 2001
On Sat, 14 Apr 2001, tom wrote:
: when I call it with lynx: lynx localhost/test.php I get just the "This is
: a test", I have tried to change the httpd.conf file to include the line:
: AddType application/x-httpd-php .php
: but then I get a request to down-load the page. I know it is something
: simple but I can not seem to find it in any off the docs.
AddType only sets the correct MIME-type for that extension. You need to
enable mod_php by adding:
LoadModule php4_module modules/libphp4.so
AddModule mod_php4.c
to your httpd.conf and restarting Apache. (assuming, of course, that
you've properly built and installed PHP4)
-dave0
--
aitchteeteepeecolonslashslashtripledoubleyoudotevilplotdotorgslashtildedave
"Give a man a fish, and he eats for a day. Teach a man to fish, and a
US Navy submarine will make sure he's never hungry again."
- C. Neufeld
More information about the OCLUG
mailing list