Date: Fri, 12 May 2006 20:24:31 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Jonathan Horne <jhorne@dfwlp.com> Cc: freebsd-questions@freebsd.org, justin <justins@justnosweat.net> Subject: Re: libphp5.so not compiling for apache (was hello) Message-ID: <4464E0EF.8010201@infracaninophile.co.uk> In-Reply-To: <52234.167.246.36.14.1147458889.squirrel@mail.dfwlp.com> References: <20060512185626.D57174@justnosweat.net> <52234.167.246.36.14.1147458889.squirrel@mail.dfwlp.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
Jonathan Horne wrote:
>> I `ve got a question about installing the php5 module.
>> I`m installing it from the /usr/ports/www/php5-session port.
>>
>> Everything runs ok and it seems like the module is installed.
>> There is only one problem, in the httpd.conf there is a LoadModule
>> php5_module refering to libexec/apache/libphp5.so.
>>
>> The library libphp5.so is not made by the install and so my appache will
>> not start with the php5 enabled.
>>
>> What is wrong and what can i do to let the install make the libphp5.so.
>>
>> Ok thanks in advance,
>> Justin.
>>
>>
>>
>
> i was having the same issue yesterday. take a look at the
> /usr/ports/lang/php5/Makefile. this was where my problem was, and tho i
> didnt use the www/php5-session, i would make a bet that if you begin from
> there with no php5 installed at all, then it backs up and begins from
> lang/php5, and then moves on from there.
>
> the problem with my lang/php5/Makefile was, that this line was not
> included (totally not there... not even there and commented out):
>
> WITH_APACHE= yes
>
> once i added it, did a pkg_delete -r php5-5.1.4 (-r = recurse all
> dependencies against this package), and started over, the lib file
> compiled on the next attempt.
>
> the port for php5-5.1.2 included that line, and therefor the lib file
> compiled by default previously. im not sure if the omission of
> "WITH_APACHE= yes" was by intention or not, but ill have to be sure to
> check it for near future installs.
The canonical way to do this is by typing 'make config' in the lang/php5
port, and making sure the 'Apache' checkbox is checked. Then reinstall
php5. This will create a supplementary makefile under /var/db/ports/ which
will set various options according to your desires, and which will persist
across ports updates and so forth. It is, however, a bit of a bug in the
whole options processing thing that if the list of available options changes,
you aren't prompted to redo the configuration step when you go to update
the port.
Cheers,
Matthew
--
Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
Kent, CT11 9PW
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFEZOD08Mjk52CukIwRA3XRAJ96R/OzalARd5lhc9JE0GyA4oed2QCePr2C
AIQu92bnWLX/IgZif4ZqQLU=
=5gY7
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4464E0EF.8010201>
