From owner-freebsd-questions@FreeBSD.ORG Thu Jun 21 01:56:08 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BE47416A400 for ; Thu, 21 Jun 2007 01:56:08 +0000 (UTC) (envelope-from jackbarnett@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.176]) by mx1.freebsd.org (Postfix) with ESMTP id 6860A13C448 for ; Thu, 21 Jun 2007 01:56:08 +0000 (UTC) (envelope-from jackbarnett@gmail.com) Received: by py-out-1112.google.com with SMTP id a29so743509pyi for ; Wed, 20 Jun 2007 18:56:07 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=ne4d92EkjSaUslum6uzQhlBc5PC5+tlI5gMysPbA+VcSfL9JWjz6Walhu61iRpg5Ee/blnAtFaCZ8ir4Y7nvF+YclBOSReU/73ZBNGzUFpEql5FYpo/WtAHzOXEsJfNBNTWLXcfhr45XdOp3gwJnTDedrnOYwfD/XvEsDqLBK0w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=R1FqOLlrXQb0F4E3YBxb9Dp/ifWCzwUgvrgADouMHAdcMeaFgbZZf23IX0r9vO5w6iBTtWP4YXayt4CfEJ+x+81OHPPgJRY9KkH1cFkQtirtVhK6khngA3FZjxUAYTMv0LN71tSo/jsTDBcn58J3Nn5G/tkuZlu7EUG5MnypAic= Received: by 10.35.87.8 with SMTP id p8mr1836166pyl.1182390967655; Wed, 20 Jun 2007 18:56:07 -0700 (PDT) Received: from ?192.168.17.10? ( [66.41.41.11]) by mx.google.com with ESMTP id n29sm2190332pyh.2007.06.20.18.56.07 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 20 Jun 2007 18:56:07 -0700 (PDT) Message-ID: <4679DAB3.2010403@gmail.com> Date: Wed, 20 Jun 2007 20:56:03 -0500 From: Jack Barnett User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: ivan@careytech.com.au References: <467763C3.306@gmail.com> <46778398.7080506@careytech.com.au> In-Reply-To: <46778398.7080506@careytech.com.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Apache, php? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: jackbarnett@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jun 2007 01:56:08 -0000 Ivan Carey wrote: > Jack Barnett wrote: >> FreeBSD 6.2 >> Apache 1.3.37 (from ports) >> php 5.2.3 (from ports) >> >> on the command line doing `php index.php` works. >> But if I use it though a web browser it just displays the php code. >> >> I installed it like this (extensions to) >> http://www.mydigitallife.info/2006/04/14/installing-web-server-in-freebsd-60-with-apache-22-mysql-50-and-php-5-part-5/ >> >> >> The only difference is that I'm using 1.3 and not 2.x of Apache. >> >> Apache config below >> Installing 2.x isn't an option yet (test server, still need 1.3) >> >> fire2# grep -i php * >> httpd.conf:AddType application/x-httpd-php .php >> httpd.conf:AddType application/x-httpd-php-source .phps >> httpd.conf: >> httpd.conf: >> httpd.conf: DirectoryIndex index.php index.php3 index.html >> httpd.conf: >> httpd.conf: DirectoryIndex index.php3 index.html >> httpd.conf: >> httpd.conf: >> httpd.conf: DirectoryIndex index.php index.html >> httpd.conf: >> httpd.conf: >> httpd.conf: AddType application/x-httpd-php3 .php3 >> httpd.conf: AddType application/x-httpd-php3-source .php3s >> httpd.conf: >> httpd.conf: AddType application/x-httpd-php .php >> httpd.conf: AddType application/x-httpd-php-source .phps >> httpd.conf: AddType application/x-httpd-php .php >> httpd.conf: AddType application/x-httpd-php-source .phps >> >> >> >> >> >> >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to >> "freebsd-questions-unsubscribe@freebsd.org" >> >> . >> > Hello Jack, > I have 2 servers running one with php4 and one with php5 > > In the php4 httpd.conf I have: > LoadModule php4_module libexec/apache/libphp4.so > AddModule mod_php4.c > > # DirectoryIndex: Name of the file or files to use as a pre-written HTML > # directory index. Separate multiple entries with spaces. > # > > > > DirectoryIndex index.php index.php3 index.html > > > DirectoryIndex index.php3 index.html > > > > > DirectoryIndex index.php index.html > > > DirectoryIndex index.html > > > > > # LanguagePriority allows you to give precedence to some languages > # in case of a tie during content negotiation. > # > # Just list the languages in decreasing order of preference. We have > # more or less alphabetized them here. You probably want to change > this. > # > > LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br > ru ltz ca es sv tw > > > > AddType application/x-httpd-php3 .php3 > AddType application/x-httpd-php3-source .php3s > > > AddType application/x-httpd-php .php > AddType application/x-httpd-php-source .phps > > > > In the Apache2 using php5 I have in the httpd.conf > LoadModule php5_module libexec/apache2/libphp5.so > > # If the AddEncoding directives above are commented-out, then you > # probably should define those extensions to indicate media types: > # > AddType application/x-compress .Z > AddType application/x-gzip .gz .tgz > > AddType application/x-httpd-php .php > AddType application/x-httpd-php-source .phps > > I hope this helps you with your configuration, > Regards, > Ivan > I don't have libphp5.so anywhere in /usr/local (did a find for it). the php5 port is broken? Or do I have to reinstall apache after php5?