From owner-freebsd-questions@FreeBSD.ORG Wed Oct 20 22:54:25 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F1970106566B for ; Wed, 20 Oct 2010 22:54:25 +0000 (UTC) (envelope-from kline@thought.org) Received: from thought.org (plato.thought.org [209.180.213.209]) by mx1.freebsd.org (Postfix) with ESMTP id BD9B68FC1E for ; Wed, 20 Oct 2010 22:54:25 +0000 (UTC) Received: by thought.org (Postfix, from userid 1001) id 1ABADE82A77; Wed, 20 Oct 2010 15:53:47 -0700 (PDT) Date: Wed, 20 Oct 2010 15:53:47 -0700 From: Gary Kline To: Brad Mettee Message-ID: <20101020225347.GD26611@thought.org> References: <20101019033104.GA19320@thought.org> <20101020174953.GE25310@thought.org> <20101020200201.GF25310@thought.org> <4CBF4E36.5050905@pchotshots.com> <20101020203333.GG25310@thought.org> <4CBF54DD.7060708@pchotshots.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4CBF54DD.7060708@pchotshots.com> X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: With 24 years of service to the Unix community. User-Agent: Mutt/1.5.20 (2009-06-14) Cc: FreeBSD Mailing List Subject: Re: need help with php. 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: Wed, 20 Oct 2010 22:54:26 -0000 On Wed, Oct 20, 2010 at 04:45:17PM -0400, Brad Mettee wrote: > Gary Kline wrote: > >On Wed, Oct 20, 2010 at 04:16:54PM -0400, Brad Mettee wrote: > >>Gary Kline wrote: > >>>On Wed, Oct 20, 2010 at 01:14:27PM -0500, Ryan Coleman wrote: > >>>>That's if someone messed up the original CSR, IMO, or didn't get the ServerName directive just right. > >>>> > >>> --I don't know what the snag is, but even 5.2 fails. php execs; > >>> it just doesn't do anything. I built the test.php with > >>> > >>> > >>> > >>> and zip. Scrreen is blank. Let me try konqueror; maybe I don't > >>> have something turned on it firfox3. > >>> > >>> gary > >>Try using " > > > > > Yeah, been doing that. As a CLI guy, that's preferred:) > > I'll cutpaste. You tell me. [[this is with 5.2... ]] > > > > > >root@ethic:/usr/local/www/apache22/data# >Invalid null command. > >root@ethic:/usr/local/www/apache22/data# > >Missing name for redirect. > >root@ethic:/usr/local/www/apache22/data# php ./test.php > > > >root@ethic:/usr/local/www/apache22/data# > > > > > > Hm. php aimed at "./test.php" just catenates the file. Does > > that tell you anything? > It tells us that PHP is working fine, and that nothing is wrong with > the program itself. > > I think it's down to a config problem now. Full tag usage " required UNLESS you edit the php.ini. Here's the part you're looking > for along with the comments: > ----- > ; Allow the tags are recognized. > ; NOTE: Using short tags should be avoided when developing applications or > ; libraries that are meant for redistribution, or deployment on PHP > ; servers which are not under your control, because short tags may not > ; be supported on the target server. For portable, redistributable code, > ; be sure not to use short tags. > short_open_tag = Off > ----- > What i found about ten minutes ago is just hard to believe. But php.ini and the cp I made of it [just because], PHP.ini was/is garbaged. [???-bar] I di a make extract in the php52 dir and looked into the work/*/* directory to see what the src build stuff looked like. A `locate php.ini' tells me that, at least for FreeBSD, the init file doesn't go into /usr/local/lib. I'll copy the distribution init over the garbaged /usr/local/etc/php.int and start from there. .... -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix The 7.90a release of Jottings: http://jottings.thought.org/index.php http://journey.thought.org