why is the PHP stuff line "off" by default in ports/lang/php5?

patrick gibblertron at gmail.com
Sat Sep 18 03:03:48 UTC 2010

I don't for sure, but I'd say it's off by default because not everyone
runs PHP with Apache, and mod_php5/libphp5.so is strictly for Apache.
Lots of people use PHP with FastCGI or other purposes.

If you always want it to be on, add the option to /etc/make.conf. Or,
if you're using portupgrade or some other port management utility for
upgrades, there are ways to set the default options for the ports you

Hindsight is 20/20, but I'll go out on a limb here and say that it's
generally considered good practice to test software after upgrading --
particularly if it's a web server running websites. Another thing to
consider would be running something like Nagios to monitor your
systems/sites to make sure things are working properly.


On Thu, Sep 16, 2010 at 6:45 PM, Gary Kline <kline at thought.org> wrote:
> Guys,
> Tell me if I'm wrong to be ticked off.  I just learned that my website
> has been down for weeks.  My KVM switch doesn't work to let me have
> control of the console of my server [ns1|ethic].thought.org.  Whether
> it was a cheap KVM switch or whether the '09 Dell 550 is defective is
> unknown.  I have a new KVM switch.  I do need direct control of the
> console for many reasons, but mostly to portupgrad ports.
> In the months since I first got ethic working, everything _but_ X11
> worked.  In late August I upgraded apache and php5, rebooted, and
> just-assumed {TM} that apache22 was working.  Weeks ago I did read and
> edit my non-blog blog; further reason to assume that everything worked.
> A couple hours ago my web server was not running.  I traced it to a
> missing libphp5.so.  I checked the makefile and found the php stuff
> defaults to "off". ...I am thinking this is a security risk, but most
> of us are reasonably sophisticated about such things ....
> Comments, anybody?
> --
>  Gary Kline  kline at thought.org  http://www.thought.org  Public Service Unix
>    The 7.83a release of Jottings: http://jottings.thought.org/index.php
>                           http://journey.thought.org
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"

More information about the freebsd-questions mailing list