[Ukfreebsd] apache and php

td tomaszd at paraklet.net
Wed Nov 26 10:53:13 GMT 2008

Steve Brownjohn wrote:
> I've installed Apache 2.2 and php5 from updated ports (FreeBSD 6.3). I'm
> trying to set up a test site with drupal, but apache serves up my *.php
> files as plain text. It seems I need libphp5.so or similar, but I can't
> find that anywhere on my system. Neither is there a mod_php in the
> Apache directories.
> Any ideas?
> Thanks, Steve

Hi Steve,

Would highly recommend google.

By default libphp should be installed in

and Apache require below entry in config file
LoadModule php5_module        libexec/apache22/libphp5.so

also entries in the Apache config file like below are 'useful'

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

You may check drupal forum for some tips too



More information about the Ukfreebsd mailing list