From owner-freebsd-questions@FreeBSD.ORG Tue Aug 22 13:46:13 2006 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 50A5516A4DA for ; Tue, 22 Aug 2006 13:46:13 +0000 (UTC) (envelope-from lveax.m@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id 959CC43D49 for ; Tue, 22 Aug 2006 13:46:12 +0000 (GMT) (envelope-from lveax.m@gmail.com) Received: by nf-out-0910.google.com with SMTP id n29so61721nfc for ; Tue, 22 Aug 2006 06:46:11 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=C3z2+QHblp2mN2045imbFMqGSC1ybxEEw0UGsyG+VaWx1gT68pknkmmXn1xQBZ6b9lzPAXFDwlviNdQvktIISb4ZKNHGpHdOohzfRg17ys0BstHlwyx7Gc8iho5KFz486v9VKVys8S1tSllFwRbl1XMR6+qHsBStagXD8UG1YoE= Received: by 10.49.8.10 with SMTP id l10mr459433nfi; Tue, 22 Aug 2006 06:46:10 -0700 (PDT) Received: by 10.48.216.13 with HTTP; Tue, 22 Aug 2006 06:46:10 -0700 (PDT) Message-ID: <576dcbc20608220646v1753d2aewb0c6f0335e48f5ee@mail.gmail.com> Date: Tue, 22 Aug 2006 21:46:10 +0800 From: lveax To: "Muhammad Omer Iqbal" In-Reply-To: <003f01c6c5ef$aedb96c0$0402a8c0@rakaposhi> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <576dcbc20608212355o1652df6eob66c709ea06abcce@mail.gmail.com> <003f01c6c5ef$aedb96c0$0402a8c0@rakaposhi> Cc: questions@freebsd.org Subject: Re: Installing Php5 on Apache2.2 (Freebsd 6.1) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Aug 2006 13:46:13 -0000 On 8/22/06, Muhammad Omer Iqbal wrote: > Thanks. I tried precisely this, and it worked fine. However, what I am > seeing now is that I have index.php, but it is not automatically rendered by > Apache. And when I put it in browser (lets say http://localhost/index.php), > php is not understood, and it is just parsed as a .html file. > you need add the 2 lines below into the httpd.conf: AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps p.s.(by default httpd.conf is in /usr/local/etc/apache22/httpd.conf) > Just letting you know the status. I will be sending this to the questions > mailing list. > > Best Wishes, > Omer > > > -----Original Message----- > From: lveax [mailto:lveax.m@gmail.com] > Sent: Monday, August 21, 2006 11:55 PM > To: Muhammad Omer Iqbal > Subject: Re: Installing Php5 on Apache2.2 (Freebsd 6.1) > > On 8/22/06, Muhammad Omer Iqbal wrote: > > Hi, > > (Please include me in the reply as I am not subscribed to this list.) > > > > I am trying to use Ports to install php5 on top of Apache 2.2. > > However, when > > > > I do pkg_add, it says that the prereq Apache 1.3 is not installed. I > > also tried forcing it (using -f), but even then it did not seem to > > have installed > > > > Php5 properly. > > > > I tried this: > > cd /usr/ports/lang/php5 > > pkg_add php5 > > > > That did not work. > > to install a port you need to use: > #make > #make install > > you may need to read the handbook: > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-using.html > > > > > Then I ftp-ed to ftp.freebsd.org and > > downloaded the tbz file from the same location (/ports/lang/php5) and > > did pkg_add with that file name as parameter. Is that the right thing > > to do? > > > > After I did that, I got the error that I explained above (i.e. Apache > > 1.3 not installed) > > > > As you might imagine, I am pretty new to FreeBSD. > > > > Thanks, > > Omer > > > > > > _______________________________________________ > > 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" > > > >