From owner-freebsd-questions@FreeBSD.ORG Sun Feb 20 03:04:28 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 75ACE16A4CE for ; Sun, 20 Feb 2005 03:04:28 +0000 (GMT) Received: from mail.iinet.net.au (mail-09.iinet.net.au [203.59.3.41]) by mx1.FreeBSD.org (Postfix) with SMTP id 46EB943D2F for ; Sun, 20 Feb 2005 03:04:27 +0000 (GMT) (envelope-from forums@jefferyfernandez.id.au) Received: (qmail 8665 invoked from network); 20 Feb 2005 03:04:26 -0000 Received: from unknown (HELO ?10.1.1.66?) (203.173.46.98) by mail.iinet.net.au with SMTP; 20 Feb 2005 03:04:25 -0000 Message-ID: <4217FE39.4030206@jefferyfernandez.id.au> Date: Sun, 20 Feb 2005 14:04:25 +1100 From: Jeffery Fernandez User-Agent: Mozilla Thunderbird 0.9 (X11/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Gerard Samuel References: <20050220022403.72598.qmail@web51710.mail.yahoo.com> <4217F98B.7070605@trini0.org> In-Reply-To: <4217F98B.7070605@trini0.org> 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:04:28 -0000 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. cheers, Jeffery