From owner-freebsd-questions@FreeBSD.ORG Mon Jun 6 10:08:59 2005 Return-Path: X-Original-To: questions@freebsd.org 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 BD3F116A41C for ; Mon, 6 Jun 2005 10:08:59 +0000 (GMT) (envelope-from nlamprecht@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5FA5943D49 for ; Mon, 6 Jun 2005 10:08:59 +0000 (GMT) (envelope-from nlamprecht@gmail.com) Received: by zproxy.gmail.com with SMTP id 40so2178442nzk for ; Mon, 06 Jun 2005 03:08:58 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=DflmOPbOVa8q16zbiafTE4pAoPVQx9LO7OjVQNa0r6O8FmsnXxfNitM/dc0g7q70El+w97VSNjo/JSOpt5g/4MkqPDbmGolJ9BNstLhT06r1+/0yZ7zQyA3oQDsR6bm5MexoDCw9MSERkleThD3VclmXuL8cKoJtWz8fyBrvYIw= Received: by 10.36.115.8 with SMTP id n8mr417580nzc; Mon, 06 Jun 2005 03:08:58 -0700 (PDT) Received: by 10.36.105.17 with HTTP; Mon, 6 Jun 2005 03:08:58 -0700 (PDT) Message-ID: <7cbadc8705060603085dc37ef1@mail.gmail.com> Date: Mon, 6 Jun 2005 12:08:58 +0200 From: Nelis Lamprecht To: philip@xms.co.za In-Reply-To: <1118083484.19699.6.camel@linux.site> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <1118083484.19699.6.camel@linux.site> Cc: FreeBSD Questions Subject: Re: PHP on freebsd ports not working X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Nelis Lamprecht List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Jun 2005 10:08:59 -0000 On 6/6/05, Philip Wege wrote: > Unable to get php to work through ports system: >=20 > Php5 and Apache2 is being used. >=20 > The test script looks like this : > > > Hello World > > > echo "Hello World"; > ?> > > >=20 > Logs only says : >=20 > [Mon Jun 06 07:50:48 2005] [notice] caught SIGTERM, shutting down > [Mon Jun 06 07:53:12 2005] [notice] Apache/2.0.54 (FreeBSD) PHP/5.0.4 > configured -- resuming normal operations >=20 > The following was added to httpd.conf : >=20 > LoadModule php5_module libexec/apache2/libphp5.so >=20 > When the one open machineip/test.php , it displayes the empty webpage > and its title. >=20 > I got a feeling im missing config lines that needs to be added to > httpd.conf , can anyone help ? >=20 I assume you added the following which would have displayed after your php5 installation: nelis@sqldb~>$ pkg_info -D php5-5.0.4_1 Information for php5-5.0.4_1: Install notice: *************************************************************** Make sure index.php is part of your DirectoryIndex. You should add the following to your Apache configuration file: AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps *************************************************************** Also, it's probably best to test your php5 installation using phpinfo(); Just add to a filename.php and access it via your web brow= ser. Regards, Nelis