From owner-freebsd-questions@FreeBSD.ORG Sun Jul 6 10:21:43 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 3B24437B404 for ; Sun, 6 Jul 2003 10:21:43 -0700 (PDT) Received: from mta6.adelphia.net (mta6.adelphia.net [64.8.50.190]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7017144003 for ; Sun, 6 Jul 2003 10:21:42 -0700 (PDT) (envelope-from wmoran@potentialtech.com) Received: from potentialtech.com ([24.53.179.151]) by mta6.adelphia.net (InterMail vM.5.01.05.32 201-253-122-126-132-20030307) with ESMTP id <20030706172141.OTTQ10267.mta6.adelphia.net@potentialtech.com>; Sun, 6 Jul 2003 13:21:41 -0400 Message-ID: <3F085AA5.6020403@potentialtech.com> Date: Sun, 06 Jul 2003 13:21:41 -0400 From: Bill Moran User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3) Gecko/20030429 X-Accept-Language: en-us, en MIME-Version: 1.0 To: redmyrlin References: <3F0852F3.1010303@eml.cc> In-Reply-To: <3F0852F3.1010303@eml.cc> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org 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 17:21:43 -0000 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. -- Bill Moran Potential Technologies http://www.potentialtech.com