From owner-freebsd-ports Sun Mar 3 10:10: 7 2002 Delivered-To: freebsd-ports@freebsd.org Received: from voi.aagh.net (pc1-hart4-0-cust168.mid.cable.ntl.com [62.254.84.168]) by hub.freebsd.org (Postfix) with ESMTP id 2EB8537B402 for ; Sun, 3 Mar 2002 10:10:04 -0800 (PST) Received: from freaky by voi.aagh.net with local (Exim 3.35 #1) id 16haQs-0009oa-00 for ports@freebsd.org; Sun, 03 Mar 2002 18:10:02 +0000 Date: Sun, 3 Mar 2002 18:10:02 +0000 From: Thomas Hurst To: ports@freebsd.org Subject: Re: FreeBSD Port: mod_php4.1.2 or 4.1.1 does not work as cgi or fastcgi Message-ID: <20020303181002.GA37508@voi.aagh.net> Mail-Followup-To: ports@freebsd.org References: <20020303152633.A3888@kallisti.bytecamp.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020303152633.A3888@kallisti.bytecamp.net> User-Agent: Mutt/1.3.27i Organization: Not much. X-Operating-System: FreeBSD/4.5-PRERELEASE (i386) X-Uptime: 5:59PM up 73 days, 2:44, 3 users, load averages: 2.01, 2.01, 2.00 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org * Sirko Zidlewitz (sz@bytecamp.net) wrote: > since version 4.1.1 i do not manage to use php as cgi with suexec (I > modified the permission-checks from suexec), 4.0.6 works fine this > way. > > 4.1.1 and 4.1.2 compile without any errors, but when i try to open > a page with or a simple "Hello World" script the > following error-message appears: > > Parse error: Parse error in /usr/local/bin/php on line 9038 The executable needs to be in your base cgi-bin so you can AddAction it, as described in the documentation on php.net, or you need to use it as a normal CGI like you would Perl (cgi-bin/, #!/usr/local/bin/php, etc). I got this working in Apache 2, at least; it's not recommended security wise, but PHP's supposedly designed with that sort of environment in mind. Maybe running mod_php4 + (maybe) safe mode would be better? -- Thomas 'Freaky' Hurst - freaky@aagh.net - http://www.aagh.net/ - To know yourself is the ultimate form of aggression. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message