Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 09 Jan 2010 09:34:51 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        PJ <af.gourmet@videotron.ca>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: port-MESS with apache22
Message-ID:  <4B484DBB.4090902@infracaninophile.co.uk>
In-Reply-To: <4B47EB5A.3010802@videotron.ca>
References:  <4B47EB5A.3010802@videotron.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig64840457684D8A3D27A95369
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable

PJ wrote:
> Upgraded to 8.0 without problem.
> Reinstalling ports was tedious... but NP for most part.
> Sommehow the installation of apache22 stumbled over some configuration
> issues, I think....
> I found that apache was running ok, except...
> php5 module was not correctly installed...

mod_php5 isn't built by default when you install php5.  This catches
out a very large number of people, and it is particularly astonishing
as integrating php into apache is probably the number one reason for
installing php.

Sounds like you may need to do this:

    # cd /usr/ports/lang/php5
    # make config
    [ Make sure the option for 'Build Apache Module' is checked ]
    # portupgrade -f lang/php5

      -or-

    # portmaster --force-config -f lang/php5
=20


It might also be necessary to rebuild all of the php5 modules -- plus
any pecl- modules.  At the cost of reinstalling pear- modules and PHP
apps (which should be fairly cheap, as the port installation process for
that sort of port consists almost entirely of copying files into place)
you can just do this:

    # portupgrade -fr lang/php5

    -or-

    # portmaster -fr lang/php5


Also double check httpd.conf once PHP5 is installed with mod_php5 --=20
the port will automatically add a line to ${PREFIX}/etc/apache22/httpd.co=
nf
to cause apache to load the module, which should look like this:

LoadModule php5_module        libexec/apache22/libphp5.so

As I recall, PHP5 creates that line as shown, which should work straight
away, but some modules add a commented out LoadModule line, so it would
be a good idea to eliminate that as a potential problem.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
                                                  Kent, CT11 9PW


--------------enig64840457684D8A3D27A95369
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREIAAYFAktITcMACgkQ8Mjk52CukIxKNwCeKY+CG03igP0WVa3ouPKgAhEG
KjgAoIyn2Th/Z7dYlV15NQ6H/AX0XVyf
=8GtR
-----END PGP SIGNATURE-----

--------------enig64840457684D8A3D27A95369--



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