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

In freebsd-questions Digest, Vol 3, Issue 9, Message: 21
On Fri, 17 Sep 2010 20:03:46 -0700 patrick <gibblertron@xxxxxxxxx> wrote:

I don't for sure, but I'd say it's off by default because not everyone
runs PHP with Apache, and mod_php5/ is strictly for Apache.

No, not everyone installs PHP to use with Apache, but I guess that maybe
half do. This comes up many times in the last 5 or so years since you
could last install the module from a package rather than only the port.

It's also one of those ports that takes a good while to build on slower
hardware (which of course developers don't tend to run :) but no amount
of requesting a version with '"Build Apache module" on' helped so far.

Lots of people use PHP with FastCGI or other purposes.

True, yet those people probably also tend to be less likely to want to
install from packages (when available) anyway. Sure, adding
to the (or one different?) package would add maybe 3MB to it. I'd be
happy to spend an extra few MB and minutes to save likely an hour.

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

Not a problem when you have the horsepower and time to build it, but a
significant loss of ability to install apache+php from packages, as you
once could from the CDs .. guess I just got spoiled back there in the
olden days :)

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@xxxxxxxxxxx> wrote:
A couple hours ago my web server was not running.  I traced it to a
missing  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, if you install something like MRTG to monitor your servers, you'll
have interesting graphs to ponder over breakfast and you'll get to see
pretty soon when something comes unstuck. Of course you have to have
your Apache chicken working to lay that egg, but it doesn't need PHP.

FWIW. I don't expect this policy so long now 'customary' to change, but
I'm cc'ing the maintainer (ale@) in case it may help .. I expect not so
many people run webservers and such on smaller, older systems either ..

cheers, Ian

(busy portupgrading from 8.0-R to 8.1-S fetching mostly packages, -aFPP)_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"

Relevant Pages

  • Re: PHP Tutorials
    ... >> In this tutorial we assume that your server has activated support for PHP ... install a web server locally (not just Apache). ...
  • RE: Mea Culpa, Ive killed OWA/RWW/Other stuff with NET STOP
    ... the SSL port to the new site, once that was deleted, I was able to ... Perhaps posting my config, as you requested, will help answer this question: ... available - it's a PHP intranet/extranet application, ... >>I was trying to install PHP manually, ...
  • RE: [PHP] Question before upgrading to 5
    ... We only use php for intranet applications I create, ... so the server is basically dead at nights, which is when I do most of my ... so your going to shut down apache on ... install of apache would allow you to do. ...
  • Re: [SLE] updating to PHP5
    ... while running PHP 5 for my stuff. ... managed by SuSE staff where you can download latest apache with all ... SLES 9 doesn't need PHP for its default configuration. ... Thus, it seems possible to remove PHP4, install a new Apache instance, PHP5 ...
  • RE: Problem with apache, php and mysql after FC4 upgrade: SegmentationFault ...
    ... the config options are that php/apache is seeing for php... ... this will install in the default dirs.... ... i'm curious to know if the rpms for php with FC4 are somehow screwed up... ... > Group apache ...