PHP installation woes

Gareth Bailey gjbailey at gmail.com
Tue Feb 22 08:27:11 GMT 2005


Hi there,

Could someone please give the low down on installing and configuring
php on freebsd? I am running the 4.10 release as our development
server with apache 1.3, php 4 and mysql 4.

Up until now, the only way i have got php to work is to extract the
php tarball, configure (with the switches below), make and make
install from source.

 ./configure '--with-apxs=/usr/local/sbin/apxs' '--enable-versioning'
'--with-gd' '--with-mysql' '--with-jpeg-dir=/usr/local/bin'
'--with-zlib' '--with-mysql=/usr/local' '--prefix=/usr/local'
'--with-mime-magic=/usr/share/misc/magic.mime' '--enable-sockets'
'--enable-memory-limit' '--disable-all'

The problem with this method is that it doesn't seem to install module
libaries, and i'm just not convinced that i am going about it
correctly.

I also at some stage tried installing from ports (/usr/ports/lang/php4) with:

# make 'insert switches from above here' build
# make 'insert switches from above here' install

None of the switches were acknowledged, as phpinfo() showed no support
for the switches i required.

I would really appreciate it if someone could recommend a way to
install php with control over modules that are supported.

Thanking you in adv,

Gareth


More information about the freebsd-questions mailing list