From owner-freebsd-questions Tue Aug 20 16:27:24 2002 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 8640637B400 for ; Tue, 20 Aug 2002 16:27:21 -0700 (PDT) Received: from uruguay.pathwaynet.com (uruguay.pathwaynet.com [216.46.203.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id E9A8143E65 for ; Tue, 20 Aug 2002 16:27:20 -0700 (PDT) (envelope-from sturdee@pathwaynet.com) Received: from sturdee (helo=localhost) by uruguay.pathwaynet.com with local-esmtp (Exim 3.34 #1) id 17hIP5-0000Ux-00 for freebsd-questions@freebsd.org; Tue, 20 Aug 2002 19:27:15 -0400 Date: Tue, 20 Aug 2002 19:27:15 -0400 (EDT) From: Mike Sturdee To: freebsd-questions@freebsd.org Subject: Standalone PHP Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-PATHWAY: SMTP FROM URUGUAY Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I built mod_php4 from ports with STANDALONE=yes, and then copied /usr/local/bin/php to php.cgi in the users www directory. Added the appropriate Action & AddHandler lines to httpd.conf (or .htaccess), yet I am always greeted with the following errors.. The same php.cgi will parse a PHP script on the command line without a problem.. Warning: Unexpected character in input: ' in /home/user/www.domain.com/php.cgi on line 2990 Warning: Unexpected character in input: ' in /home/user/www.domain.com/php.cgi on line 2990 Warning: Unexpected character in input: '' (ASCII=20) state=1 in /home/user/www.domain.com/php.cgi on line 2990 Warning: Unexpected character in input: '' (ASCII=7) state=1 in /home/user/www.domain.com/php.cgi on line 2990 Warning: Unexpected character in input: '' (ASCII=8) state=1 in /home/user/www.domain.com/php.cgi on line 2990 Parse error: parse error, unexpected T_LNUMBER in /home/user/www.domain.com/php.cgi on line 2990 -- -Mike Network Engineer Pathway Internet Services 616.774.3131 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message