From owner-freebsd-questions@FreeBSD.ORG Tue Aug 22 14:21:22 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 E8DD816A4DA for ; Tue, 22 Aug 2006 14:21:22 +0000 (UTC) (envelope-from omer@omeriqbal.com) Received: from smtp104.biz.mail.re2.yahoo.com (smtp104.biz.mail.re2.yahoo.com [206.190.52.173]) by mx1.FreeBSD.org (Postfix) with SMTP id 70EE543D49 for ; Tue, 22 Aug 2006 14:21:22 +0000 (GMT) (envelope-from omer@omeriqbal.com) Received: (qmail 70078 invoked from network); 22 Aug 2006 14:21:16 -0000 Received: from unknown (HELO rakaposhi) (omer@omeriqbal.com@203.81.224.248 with login) by smtp104.biz.mail.re2.yahoo.com with SMTP; 22 Aug 2006 14:21:16 -0000 From: "Muhammad Omer Iqbal" To: "'lveax'" Date: Tue, 22 Aug 2006 07:21:15 -0700 Message-ID: <005101c6c5f6$3c1602e0$0402a8c0@rakaposhi> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <576dcbc20608220646v1753d2aewb0c6f0335e48f5ee@mail.gmail.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 Thread-Index: AcbF8VRfGZoSxGj9RD61ZDxYZzkmmAABKOzA 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 14:21:23 -0000 I have already done that. By doing that, the only difference is that when I put index.php in the browser, it asks me to download those files instead of automatically parsing them. However, when I remove those lines, I get them as .html files. -----Original Message----- From: lveax [mailto:lveax.m@gmail.com] Sent: Tuesday, August 22, 2006 6:46 AM To: Muhammad Omer Iqbal Cc: questions@freebsd.org Subject: Re: Installing Php5 on Apache2.2 (Freebsd 6.1) 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" > > > >