Forum Moderators: bakedjake

Message Too Old, No Replies

Installing php4 on FreeBSD

pkg_add doesn't seem to work well

         

ShawnR

2:06 pm on Aug 21, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



A wonderful good evening to you all from wintery Sydney!

I am hoping someone can help me...

After installing Apache 2 on a FreeBSD system, I used FreeBSD's pkg_add to install php4, but it seems that there is some dependency, so this results in Apache 1.3 being installed, but I'd prefer to run Apache 2.

Any advice or recommendations?

Thanks
Shawn

Duckula

3:08 pm on Aug 21, 2003 (gmt 0)

10+ Year Member



Stay with Apache 1.3?

I haven't checked lately, but a couple months ago PHP was precisely the reason to not upgrade to Apache 2; some stability issues.

drbrain

3:24 pm on Aug 21, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Use the ports!

cd /usr/ports/www/mod_php4

make -DWITH_APACHE2 install distclean

The packages are compiled for the common case, wthich is still Apache 1.3.

I love the ports, they're beautiful. To keep them up-to-date, modify your /etc/make.conf to point to a CVSup server near you, run make update in /usr/ports and install sysutils/portupgrade. That makes upgrading your packages as easy as "portupgrade portname" and installing as easy as "portupgrade -N portname". You can even upgrade everything installed and all of its dependencies easily with portupgrade.

ShawnR

1:27 pm on Aug 22, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks guys

Duckula, do you know what the stability issues were?

Thanks
Shawn

Duckula

6:06 pm on Aug 22, 2003 (gmt 0)

10+ Year Member



Hmmm... I think it had to do with the multithreading of Apache 2, and PHP not being thread safe or something like that. But it has probably been fixed by now.