php4-cli or mod_php4

Andrew L. Gould algould at datawok.com
Fri Dec 3 05:44:57 PST 2004


On Fri, 03 Dec 2004 15:30:15 +0200
Cristi Tauber <cristi.tauber at sbhost.ro> wrote:

>            Hello list,
> 
>   i want to install apache+php+mysql. If i install mod_php i cannot
> install php4-extension (mysql, etc ...). If i try to install php4-cli
> and extensions apache doesn't know how to handle .php files . What's
> the they to go to make apache work with mysql and php ? fBSD is 5.3.
> 
>          Thanks,
> 
>               Cristi

Hi Cristi,

Install php4-extensions; and then follow these instructions, which are
found in /usr/ports/lang/php4/pkg-message.mod:

***************************************************************

Make sure index.php is part of your DirectoryIndex.

You should add the following to your Apache configuration file:

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

***************************************************************

You're next big question may be whether to use apache 1.3 or apache 2,
as I keep seeing references on the internet about people having
problems with php and apache 2.

Best regards,

Andrew Gould


More information about the freebsd-questions mailing list