From owner-freebsd-questions@FreeBSD.ORG Wed May 7 07:29:57 2003 Return-Path: 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 2E96737B404 for ; Wed, 7 May 2003 07:29:57 -0700 (PDT) Received: from mail.bellavista.cz (mail.bellavista.cz [213.235.167.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id A5E4A43F3F for ; Wed, 7 May 2003 07:29:54 -0700 (PDT) (envelope-from neuhauser@bellavista.cz) Received: from freepuppy.bellavista.cz (freepuppy.bellavista.cz [10.0.0.10]) by mail.bellavista.cz (Postfix) with ESMTP id A548E3BC; Wed, 7 May 2003 16:29:50 +0200 (CEST) Received: by freepuppy.bellavista.cz (Postfix, from userid 1001) id 013272FDAB2; Wed, 7 May 2003 16:29:37 +0200 (CEST) Date: Wed, 7 May 2003 16:29:37 +0200 From: Roman Neuhauser To: Gabriel Ambuehl Message-ID: <20030507142937.GS12792@freepuppy.bellavista.cz> Mail-Followup-To: Gabriel Ambuehl , questions@freebsd.org References: <86871511640.20030507152659@buz.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <86871511640.20030507152659@buz.ch> User-Agent: Mutt/1.5.1i cc: questions@freebsd.org Subject: Re: PHP4 port won't output Content type when run as CGI script X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 May 2003 14:29:57 -0000 # gaml@buz.ch / 2003-05-07 15:26:59 +0200: > I installed PHP 4.3.1 from the ports wanting to use the PHP > interpreter in CGI mode. However, there is something weird going on: > in past versions, this worked without any changes to the scripts > (maybe add #!path to php at the beginning if it wasn't already there) > but the current version for some weird reason won't output any content > types anymore which is more than just a nuisance considering that no > PHP scripts have provisions for doing this themselves. are you sure you're using CGI, not CLI? determine that by running `php -v`. example: roman@freepuppy ~ 1002:1 > ./install/php/php-4.3.2RC1/sapi/cli/php -v PHP 4.3.2-RC1 (cli) (built: Mar 22 2003 02:52:56) Copyright (c) 1997-2003 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies roman@freepuppy ~ 1003:1 > ./install/php/php-4.3.2RC1/sapi/cgi/php -v PHP 4.3.2-RC1 (cgi), Copyright (c) 1997-2003 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies -- If you cc me or remove the list(s) completely I'll most likely ignore your message. see http://www.eyrie.org./~eagle/faqs/questions.html