From owner-freebsd-questions@FreeBSD.ORG Sun Sep 26 07:43:50 2004 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 4759816A4CF for ; Sun, 26 Sep 2004 07:43:50 +0000 (GMT) Received: from dnsmail2.ior.navy.mil (nocc.ior.navy.mil [205.56.210.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id A25A643D1D for ; Sun, 26 Sep 2004 07:43:45 +0000 (GMT) (envelope-from JohnsoBS@vicksburg.navy.mil) Received: from cg69ubd01.vicksburg.navy.mil ([205.95.65.21]) i8Q7gGas016190 for ; Sun, 26 Sep 2004 07:42:19 GMT Received: by CG69UBD01 with Internet Mail Service (5.5.2657.72) id ; Sun, 26 Sep 2004 10:46:29 +0300 Message-ID: From: JohnsoBS@vicksburg.navy.mil To: questions@freebsd.org Date: Sun, 26 Sep 2004 10:46:29 +0300 X-Mailer: Internet Mail Service (5.5.2657.72) Subject: RE: PHP Problem 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: Sun, 26 Sep 2004 07:43:50 -0000 -----Original Message----- From: Richard Lynch [mailto:ceo@l-i-e.com] Sent: Sunday, September 26, 2004 5:45 AM To: JohnsoBS@vicksburg.navy.mil Cc: freebsd-questions@freebsd.org Subject: RE: PHP Problem JohnsoBS@vicksburg.navy.mil wrote: > You installed the CGI port.. You need to install the apache module. CGI > doesn't allow embedded php in the page. Just for the record: Unless the FreeBSD port does something really really really bogus, the above statement is 100% wrong. :-) Perhaps you are thinking of Perl CGI versus Mod_Perl (sp?) where such a distinction (I think) does exist. PHP as CGI and PHP as Module have very minor differences, primarily related to functions/security that would make no sense in CGI or vice versa. EG: You can't do HTTP Auth via CGI in PHP because, by definition, you'd be passing the password between applications in an insecure way. This is not to say that the rest of the post [cut] isn't true -- In 99% of the cases of using PHP to spew out HTML, you want PHP installed as a Module. You may also, as I do, find it incredibly easy to use as a command line scripting language and thus also want the CGI (or CLI these days) install as well. -- Like Music? http://l-i-e.com/artists.htm For the record, I helped this person in installing the mod_php4 and some misc extensions and everything worked as wanted. So statement being true or not, for a newbie it should be assumed at the least. And unless you install the module, and load it into the httpd.conf for the html interpreter to see php in the raw, it will not work. You can't load the cgi port of php into apache.