Date: Fri, 3 Dec 2004 07:44:42 -0600 From: "Andrew L. Gould" <algould@datawok.com> To: Cristi Tauber <cristi.tauber@sbhost.ro> Cc: FreeBSD Question <freebsd-questions@freebsd.org> Subject: Re: php4-cli or mod_php4 Message-ID: <20041203074442.2177b1f3@grokwell.org> In-Reply-To: <41B06A67.971C29EB@sbhost.ro> References: <41B06A67.971C29EB@sbhost.ro>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 03 Dec 2004 15:30:15 +0200 Cristi Tauber <cristi.tauber@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041203074442.2177b1f3>