From owner-freebsd-questions@FreeBSD.ORG Sun Feb 20 03:20:59 2005 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 9B53316A4CE for ; Sun, 20 Feb 2005 03:20:59 +0000 (GMT) Received: from sccrmhc13.comcast.net (sccrmhc13.comcast.net [204.127.202.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id 12AD043D48 for ; Sun, 20 Feb 2005 03:20:58 +0000 (GMT) (envelope-from fbsd-questions@trini0.org) Received: from hivemind.trini0.org (trini0.org[65.34.205.195]) by comcast.net (sccrmhc13) with ESMTP id <2005022003205201600sdqrfe>; Sun, 20 Feb 2005 03:20:56 +0000 Received: from [192.168.0.16] (gladiator.trini0.org [192.168.0.16]) by hivemind.trini0.org (Postfix) with ESMTP id 44B6960D3; Sat, 19 Feb 2005 22:20:52 -0500 (EST) Message-ID: <42180216.1020109@trini0.org> Date: Sat, 19 Feb 2005 22:20:54 -0500 From: Gerard Samuel User-Agent: Mozilla Thunderbird 1.0 (X11/20050122) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jeffery Fernandez References: <20050220022403.72598.qmail@web51710.mail.yahoo.com> <4217F98B.7070605@trini0.org> <4217FE39.4030206@jefferyfernandez.id.au> In-Reply-To: <4217FE39.4030206@jefferyfernandez.id.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: questions@freebsd.org Subject: Re: PHP 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, 20 Feb 2005 03:20:59 -0000 Jeffery Fernandez wrote: > Gerard Samuel wrote: > >> Andrei Iarus wrote: >> >>> I have installed apache-1.3.33_1, php5-5.0.3_1. And I >>> tried to run simple scripts like: >>> >>> PHP Test >>> >>> >>> Hello World

'; ?> >>> >>> >>> and the output was an unexpected one: >>> Hello World >>> >>> '; ?> >>> It also doesn`t outputs anything when using the >>> phpversion() function. A possible bug? Before >>> reporting this as a bug, I wanted to check if there >>> was someone else with similar problems(or may be I did >>> something wrong). >> >> >> >> First guess. Apache doesn't know about > If you installed php via the port, apache is configured automatically. >> So I have to ask. Did you restart apache?? >> Just create a file (index.php), and in it put >> >> >> And see what it does... >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to >> "freebsd-questions-unsubscribe@freebsd.org" >> >> > You will have to add the following entries to the httpd.conf file for > apache to understand its a php file > > AddType application/x-httpd-php .php > AddType application/x-httpd-php-source .phps > > I don't know if its any different for PHP5 but for PHP4 thats what you > need to add. Forgot about that. AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps is what I have (php 5.0.2), so I guess you are correct..