From owner-freebsd-questions@FreeBSD.ORG Sun Jul 6 12:07:40 2003 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 DB4AE37B401 for ; Sun, 6 Jul 2003 12:07:40 -0700 (PDT) Received: from mail.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id B3F1443F3F for ; Sun, 6 Jul 2003 12:07:39 -0700 (PDT) (envelope-from redmyrlin@eml.cc) Received: from mail.messagingengine.com (localhost [127.0.0.1]) by localhost.localdomain (Postfix) with ESMTP id CA4808BF0 for ; Sun, 6 Jul 2003 15:07:37 -0400 (EDT) Received: from 10.202.2.150 ([10.202.2.150] helo=mail.messagingengine.com) by messagingengine.com with SMTP; Sun, 06 Jul 2003 15:07:37 -0400 X-Epoch: 1057518457 X-Sasl-enc: rRAwoLLzvSqM8Z3zBe620w Received: from eml.cc (ACB9149E.ipt.aol.com [172.185.20.158]) by www.fastmail.fm (Postfix) with ESMTP id 26AC18BE0 for ; Sun, 6 Jul 2003 15:07:36 -0400 (EDT) Message-ID: <3F087379.7080403@eml.cc> Date: Sun, 06 Jul 2003 20:07:37 +0100 From: redmyrlin User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5a) Gecko/20030701 Thunderbird/0.1a X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <3F0852F3.1010303@eml.cc> <3F085AA5.6020403@potentialtech.com> In-Reply-To: <3F085AA5.6020403@potentialtech.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: PHP not interpreted. 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, 06 Jul 2003 19:07:41 -0000 Bill Moran wrote: > redmyrlin wrote: > >> I originally had Apache 1.3.27 running OK with mod_php4. I decided >> to add SSL capability so uninstalled apache using "pkg_delete -f ". >> I then used "make install" in the ports tree to install >> apache+mod_ssl-1.3.27+2.8.14. >> >> Everything seemed to go OK and my plain html files display correctly, >> both on "http" and "https". However when I point my browser at a >> .php page I get a text listing of the code and not the interpreted >> html page. I'm sure I've broken or misconfigured something and just >> need someone to point out my stupidity. >> >> Please, what have I done wrong and how can I correct it? > > > The apache config file (in /usr/local/etc/apache/httpd.conf) no longer > has the config information for php. > I prefer to hack the Makefile in the ports to refer to apache+modssl > instead of just apache, and then install php from ports (which modifies > the conf file for you), but you can also manually add the required > configuration information. See the php docs if you want to do it that > way. Thanks for the advice of where to look. I thought I'd manually added the php info into httpd.conf, but on re-inspection I had left out : AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps All's working right now! Thanks again