Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 May 2003 16:20:40 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        DAVID MARKLE <davidmarkle@comcast.net>
Cc:        davidmarkle@elephantfoot.org
Subject:   Re: Apache Port Installation with others
Message-ID:  <20030521152040.GC97472@happy-idiot-talk.infracaninophile.co.uk>
In-Reply-To: <ad48fdada964.ada964ad48fd@icomcast.net>
References:  <ad48fdada964.ada964ad48fd@icomcast.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--ZwgA9U+XZDXt4+m+
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, May 21, 2003 at 09:43:43AM -0400, DAVID MARKLE wrote:

> I was hoping you all could help me answer a question.  I an trying to=20
> install Apache and several other ports that are hooked into Apache.  I=20
> have successfully installed them all from sources (with ./configure --
> params...)and it works fine, however, I'd prefer to use the ports tree =
=20
> They are as follows:
>=20
> Apache, Mod_SSL, Mod_Perl, and PHP)
> apache+mod_ssl-1.3.27+2.8.14  /usr/ports/www/apache13-modssl
> mod_perl-1.27_1               /usr/ports/www/mod_perl
> mod_php4-4.3.1                /usr/ports/www/mod_php4
>=20
> With the three above mentioned ports, where do I begin ???  Do I=20
> install Apache, then PHP or mod_perl ???  I have also noticed that some=
=20
> of the Makefiles have to be modified, (i.e. PHP Makefile needs modified=
=20
> to reflect "APACHE_PORT?=3D${PORTSDIR}/www/apache13-modssl" instead of=20
> just "apache13" (for adding support for modssl).  Any help is greatly=20
> appreciated.

First edit /etc/make.conf and add the line:

    APACHE_PORT =3D   ${PORTSDIR}/www/apache13-modssl

somewhere towards the end of that file.  You shouldn't need to edit
any of the Makefiles under /usr/ports.

Make sure that you remove from /usr/local any of the hand built
apache, PHP and mod_perl stuff you installed.  Or any libraries or
other stuff which those ports depend on which aren't installed from
ports already.  The ports Makefiles will check for the presence of
various files to work out if they need to install any dependency
packages, and having your hand-built files there already can lead to
confusion. =20

Make sure you've got an up-to-date copy of the ports tree and that the
INDEX has been freshly updated:

    # cd /usr/ports
    # make index

That will take some time... Once it's done, just build and install
the ports you require:

    # cd /usr/ports/www/apache13-modssl
    # make install
    # cd ../mod_perl
    # make install
    # cd ../mod_php4
    # make install

The order here doesn't really matter, but if you try and install
mod_perl or mod_php4 before apache, apache will be installed
automatically as a dependency, so take care not to try and install it
twice.

Edit the apache configuration file as desired
(/usr/local/etc/apache/httpd.conf) and make sure the
/usr/local/etc/rc.d/apache.sh file exists and is executable (copy the
apache.sh-dist file if necessary) then fire up apache:

    # apachectl startssl

Check in /var/log/httpd-error.log if there are any problems.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK

--ZwgA9U+XZDXt4+m+
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (FreeBSD)

iD8DBQE+y5lIdtESqEQa7a0RAj2uAJ9Ew8R8T4zFR8wNmWeC6PplEBv8eACeNC7L
E9cPnchVjacGWw68sGp5sLU=
=9FeY
-----END PGP SIGNATURE-----

--ZwgA9U+XZDXt4+m+--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030521152040.GC97472>