[Ukfreebsd] apache and php

O'Connor, Kevin KevinO'Connor at merseyfire.gov.uk
Mon Nov 17 10:48:00 GMT 2008



I think you need to do a reinstall of  /usr/ports/lang/php5  do a make
config first and make sure you are building the apache module. That's
the usual reason for no libphp5.so It will automatically add the line


LoadModule php5_module        libexec/apache/libphp5.so


To the httpd.conf file.


Also don't forget to add


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


 And alter


DirectoryIndex  index.html index.htm
DirectoryIndex index.php index.html index.htm


From: ukfreebsd-bounces at uk.freebsd.org
[mailto:ukfreebsd-bounces at uk.freebsd.org] On Behalf Of Steve Brownjohn
Sent: 17 November 2008 09:53
To: ukfreebsd at uk.freebsd.org
Subject: [Ukfreebsd] apache and php


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


Hackney Council may exercise its right to intercept any communication
with any employee or agent of the Council using its telephony or data
networks. By using these networks you give your consent to Hackney
Council monitoring and recording your communication.


If you have received this e-mail in error please delete it immediately
and contact the sender.


For further information about Hackney Council policies please contact
Hackney Service Centre on: 020 8356 3000



London Borough of Hackney may exercise its right to intercept any
communication on its networks - for more information see 



_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

This e-mail and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this e-mail in error please notify the originator of the message. 

Any views expressed in this message are those of the individual sender,
except where the sender specifies and with authority, states them to be
the views of Merseyside Fire & Rescue Service, (MFRS).

Incoming and outgoing emails may be monitored in line with current legislation.

Steps have been taken to ensure that this email and attachments are 
free from any virus.  In keeping with good computing practice the 
recipient should ensure they are actually virus free.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.uk.freebsd.org/mailman/private/ukfreebsd/attachments/20081117/3aa8ee1e/attachment.html>

More information about the Ukfreebsd mailing list