From owner-freebsd-ports@FreeBSD.ORG Mon Mar 13 12:27:12 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4884416A41F for ; Mon, 13 Mar 2006 12:27:12 +0000 (UTC) (envelope-from uros.gruber@vizija.si) Received: from strippy.vizija.si (strippy.vizija.si [217.72.81.150]) by mx1.FreeBSD.org (Postfix) with ESMTP id C12E843D48 for ; Mon, 13 Mar 2006 12:27:11 +0000 (GMT) (envelope-from uros.gruber@vizija.si) Received: from cartman.dev (cartman.dev [193.95.243.216]) by strippy.vizija.si (Postfix) with ESMTP id 9C383A6C66; Mon, 13 Mar 2006 13:27:09 +0100 (CET) Received: from cartman.dev (localhost [127.0.0.1]) by cartman.dev (Postfix) with ESMTP id F017BD4C0E; Mon, 13 Mar 2006 13:40:46 +0100 (CET) Received: from [10.0.2.1] (uros [10.0.2.1]) by cartman.dev (Postfix) with ESMTP id D026BD4C08; Mon, 13 Mar 2006 13:40:46 +0100 (CET) Message-ID: <4415651C.3020005@vizija.si> Date: Mon, 13 Mar 2006 13:27:08 +0100 From: =?windows-1252?Q?Uro=9A_Gruber?= User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: freebsd-ports@freebsd.org References: <43E8BD2F.4080406@vizija.si> <43E8F730.3030207@rogers.com> <64046.193.77.156.117.1139349788.squirrel@mail.vizija.si> <20060227214247.GE97309@svcolo.com> <44154A73.4000705@vizija.si> <20060313112325.GA50979@pentarou.parodius.com> In-Reply-To: <20060313112325.GA50979@pentarou.parodius.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP X-Virus-Scanned: amavisd-new at vizija.si Cc: Jeremy Chadwick Subject: Re: php-cli and php-cgi X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Mar 2006 12:27:12 -0000 Jeremy Chadwick wrote: > On Mon, Mar 13, 2006 at 11:33:23AM +0100, Uro? Gruber wrote: > >> I'm not being rude. I just pointed that I'm using cgi and cli (not mod >> as he refer). I've read UPDATING >> and if you're talking about 2004 when port is split to php-extension >> etc. I think this is not the case. >> > > Uros, > > How does your solution (re: naming the PHP interpreter php-cli and > php-cgi, respectively) handle scripts and utilities which rely on > the existance of /usr/local/bin/php (or simply "php" in your path)? > > I use a lot of those scripts and for now all rely on php (cli) so I have symlink to php-cli. Because php-cgi is used only from apache or other web server. Also I have php5-cgi and php4-cgi so I can use either php4 or php5. > The answer will probably be "a symlink". Okay, which PHP binary do > you choose to symlink to? php-cgi or php-cli? > > I cannot tell you how many times I have seen on mailing lists for > PHP-related software, especially suphp, individuals asking why the > software didn't work -- only to find out they had installed the CLI > version of PHP, not the CGI version. > I know that making this changes would break some other ports. But I think because of fast-cgi i found that many admins are using cgi version of php instead. So It needs to be solved some how. Maybe with some WITH_ switch to not break other ports but still possible to install both cli and cgi from ports. > I do acknowledge that you can have both on a single system; there is > no denying that. But /usr/local/bin/php has to be one or the other. > Presently, PHP doesn't offer a way for software or scripts (i.e. > GNU configure scripts) to determine which type is installed, as far > as I know... > > This is probably one of many reasons why the CLI and CGI ports are > split regards Uros