From owner-freebsd-questions@FreeBSD.ORG Mon Jul 7 03:51:26 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 0997137B401 for ; Mon, 7 Jul 2003 03:51:26 -0700 (PDT) Received: from catflap.home.slightlystrange.org (pc4-cmbg1-4-cust87.cmbg.cable.ntl.com [80.6.127.87]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4936743FAF for ; Mon, 7 Jul 2003 03:51:25 -0700 (PDT) (envelope-from danielby@slightlystrange.org) Received: from danielby by catflap.home.slightlystrange.org with local (Exim 4.20) id 19ZTae-000JCS-AG for freebsd-questions@freebsd.org; Mon, 07 Jul 2003 11:51:24 +0100 Date: Mon, 7 Jul 2003 11:51:24 +0100 From: Daniel Bye To: freebsd-questions@freebsd.org Message-ID: <20030707105124.GB73629@catflap.home.slightlystrange.org> Mail-Followup-To: freebsd-questions@freebsd.org References: <3F0852F3.1010303@eml.cc> <3F085AA5.6020403@potentialtech.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="C7zPtVaVf+AK4Oqc" Content-Disposition: inline In-Reply-To: <3F085AA5.6020403@potentialtech.com> User-Agent: Mutt/1.4.1i Sender: Daniel Bye Subject: Re: PHP not interpreted. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: dan@slightlystrange.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 10:51:26 -0000 --C7zPtVaVf+AK4Oqc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Try again... Broken MTA settings meant the previous attempt got eaten somewhere... On Sun, Jul 06, 2003 at 01:21:41PM -0400, Bill Moran wrote: > redmyrlin wrote: > >I originally had Apache 1.3.27 running OK with mod_php4. I decided to= =20 > >add SSL capability so uninstalled apache using "pkg_delete -f ". I then= =20 > >used "make install" in the ports tree to install=20 > >apache+mod_ssl-1.3.27+2.8.14. > > > >Everything seemed to go OK and my plain html files display correctly,=20 > >both on "http" and "https". However when I point my browser at a .php= =20 > >page I get a text listing of the code and not the interpreted html=20 > >page. I'm sure I've broken or misconfigured something and just need=20 > >someone to point out my stupidity. > > > >Please, what have I done wrong and how can I correct it? >=20 > 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. I found a neat way of achieving the same thing with the portupgrade config file, /usr/local/etc/pkgtools.conf. It has the benefit that it won't get overwritten next time you cvsup your ports tree, so you won't have to risk forgetting to modify the Makefile for ports you install or upgrade. It is also a more general solution - this one change affects all ports that depend on apache13, not just those whose Makefiles you change. Look for ALT_PKGDEP, and add this: 'www/apache13' =3D> 'www/apache13-modssl', with all quotes and commas intact. Effectively, it tells portupgrade to use apache13-modssl whenever a port claims dependency on apache13. I think this appeared in a fairly recent update to portupgrade, so you might need to portupgrade portupgrade... ;-) HTH Dan --=20 Daniel Bye PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc PGP Key fingerprint: 3B9D 8BBB EB03 BA83 5DB4 3B88 86FC F03A 90A1 BE8F _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ --C7zPtVaVf+AK4Oqc Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE/CVCshvzwOpChvo8RAtbGAJ96uKL61xv/+RNvp/mBVsebkDHDdgCgqyRp 4RFtLjv2LWuORcxzSJuvIk0= =z7Bs -----END PGP SIGNATURE----- --C7zPtVaVf+AK4Oqc--