Apache, php?

Norberto Meijome freebsd at meijome.net
Tue Jun 19 06:17:39 UTC 2007


On Tue, 19 Jun 2007 00:04:03 -0500
Jack Barnett <jackbarnett at gmail.com> wrote:

> on the command line doing `php index.php` works.
> But if I use it though a web browser it just displays the php code.

enable mod_status and/or mod_info in Apache and double check that the php
module is loaded, and what its name is. I recall there beeing a version where
it wasn't mod_php4, so the IfModule directives wouldn't match and not load the
right configuration.

once you have the correct module name, change the ifModule lines accordingly
and reload apache.

_________________________
{Beto|Norberto|Numard} Meijome

Without vision you may find that you make your way through life by bumping into
things.

I speak for myself, not my employer. Contents may be hot. Slippery when wet.
Reading disclaimers makes you go blind. Writing them is worse. You have been
Warned.


More information about the freebsd-questions mailing list