Properly installing PHP4 extensions under Apache 1.3.x
o.greve at axis.nl
Tue Jan 4 01:38:47 PST 2005
A while ago the topic was raised about how to properly install PHP
4.3.8+ versions with their required extensions, under Apache 1.3.x.
I'm doing so just now, but I seem to be missing one step, as the
extensions do not seem to get picked up.
Here's what I did:
1) Update the ports tree using CVSup
2) Build the /usr/ports/lang/php4 port (= 4.3.10 -> make install)
3) Build the /usr/ports/lang/php4-extensions port
4) Build several extensions I need (GD, MySQL, session), again, I did do
a make install
5) Restart Apache
Double checking the installation shows:
pkg_info | grep php
php4-4.3.10 PHP Scripting Language (Apache Module and CLI)
php4-gd-4.3.10 The gd shared extension for php
php4-mysql-4.3.10 The mysql shared extension for php
php4-session-4.3.10 The session shared extension for php
O.k., so that goes alright. Yet, I do not see any of these extensions
getting picked up, and I wonder on the one hand what I am missing
exactly, and on the other hand what the easiest (or best) way is to fix
Can anyone tell me something more about the following:
1) How do I get these extensions to be picked up (using the configure
tool in the php4 ports? adding entries to Apache's httpd.conf file?
2) Is this really the easiest way to go? It seems to be somewhat
cumbersome to have to install all extensions this way. When building the
php4-extensions port I was prompted for which extensions I wanted to
install. I was hoping some form of "master Makefile" would result from
that, allowing me to install the previously selected extensions all in
one go, rather than having to install each one of them manually.
Thanks a lot in advance, and cheers!
More information about the freebsd-questions