From owner-freebsd-questions@FreeBSD.ORG Tue Aug 22 13:44:28 2006 Return-Path: X-Original-To: freebsd-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 BBA4B16A4E6 for ; Tue, 22 Aug 2006 13:44:28 +0000 (UTC) (envelope-from levchenko.i@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by mx1.FreeBSD.org (Postfix) with ESMTP id 782AD43D5A for ; Tue, 22 Aug 2006 13:44:17 +0000 (GMT) (envelope-from levchenko.i@gmail.com) Received: by ug-out-1314.google.com with SMTP id m2so2059692uge for ; Tue, 22 Aug 2006 06:44:16 -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=pB3kVviHoX/cuZWGulwT89Z3HjcYkt6mWcbc1HD3RYvvGzCRTdHA8M4MOCqML/jlo/OKsrma3k60I001Pv14g+V7YAHGlqTCLFWyc/maSRPq/fUldVUuGry5lEy0qvUE9uJLcAFHPjRLDRN9bGAcK4UTDwB7VAvrR05f540UZGM= Received: by 10.67.22.2 with SMTP id z2mr4362609ugi; Tue, 22 Aug 2006 06:44:16 -0700 (PDT) Received: by 10.66.239.8 with HTTP; Tue, 22 Aug 2006 06:44:16 -0700 (PDT) Message-ID: Date: Tue, 22 Aug 2006 16:44:16 +0300 From: "Ivan Levchenko" To: "Muhammad Omer Iqbal" In-Reply-To: <004a01c6c5f0$500ab620$0402a8c0@rakaposhi> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <004a01c6c5f0$500ab620$0402a8c0@rakaposhi> Cc: freebsd-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:44:28 -0000 i'm no apache guru, but you need to have something like the following in httpd.conf: LoadModule php5_module libexec/apache22/libphp5.so #in the modules section DirectoryIndex index.html index.php index.phtm #so that it gets those php index files #File types for php files, so it knows it is supposed to put them through php and not just give back plain text. AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps On 8/22/06, Muhammad Omer Iqbal wrote: > Thanks for the advice. The way I got it to work was by actually making the > package on the local box and it installed fine. In the past, when I tried > it, I was not connected to the Internet and the build failed. I did not > realize that my system must be connected as it needs to fetch some data from > the Internet. Today, I tried it again with Internet connected (I figured > that out today as I carefully read through the error messages), and it built > fine and apparently got installed. > > However, what I am seeing now is that I have index.php, but it is not > automatically returned by Apache to browser when it goes to that url. And > when I put index.php manually in the browser (lets say > http://localhost/index.php), php is not parsed, and the file is just treated > as a .html file. > > When I do make install, it says that php5 is already installed. I already > installed a few php5-extensions, but I think this should be working without > the extensions. I tried mod_php5, but since that component is installed by > php5 itself, I get precisely the message that it cannot be installed because > the location is the same, so I assume php5 actually did install Apache > module too. > > Any help would be greatly appreciated. > > Thanks, > Omer > > -----Original Message----- > From: Ivan Levchenko [mailto:levchenko.i@gmail.com] > Sent: Tuesday, August 22, 2006 4:43 AM > To: Muhammad Omer Iqbal; freebsd-questions@freebsd.org > Subject: Re: Installing Php5 on Apache2.2 (Freebsd 6.1) > > i think that you should be able to porce the installation of the package of > php5 with the -f command, after it finished, run pkgdb -F to fix the > dependency of php5 for apacha13 to apache22. > > > 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. > > > > 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" > > > > > -- > Best Regards, > > Ivan Levchenko > levchenko.i@gmail.com > > -- Best Regards, Ivan Levchenko levchenko.i@gmail.com