why is the PHP stuff line "off" by default in ports/lang/php5?
doug at safeport.com
doug at safeport.com
Mon Sep 20 15:00:36 UTC 2010
On Mon, 20 Sep 2010, Rob Farmer wrote:
> On Mon, Sep 20, 2010 at 00:45, Alex Dupre <ale at freebsd.org> wrote:
>> This "issue" has been discussed too many times. The answer is simply
>> "no", but you can search the archives for the actual reason. You have to
>> comile the module for your specific apache installation.
>> Alex Dupre
> If you can't be bothered to give the "actual reason," then why even reply?
> I have searched the archives. Unfortunately, there are so many
> messages revolving around how to set up php, secure it, etc. that it
> becomes difficult to find anything relevant. The only thing I came
> across was a thread from 2007 about how this is "more like a personal
> preference than engineering as such" and "its just one of those
> things that you learn to live with after a while."
>  http://lists.freebsd.org/pipermail/freebsd-questions/2007-June/151399.html
>  http://lists.freebsd.org/pipermail/freebsd-questions/2007-June/151384.html
I think that response was not all that unreasonable. I 'remember' the topic in
general. My questions archive has > 80,000 messages. Most [all??] of the ones
relating to this issue probably do not address that in the subject line and are
thus lost [to me].
That said the following reasons come to mind:
1) security - google + security + php = 9.7 million hits
Probably enough said. But if I do not have php installed why should I
have to prune it from apache or worry about the subset of the 9.7 hits
that relate to my server[s].
2) apache builds w/o php, and should php4, php5, or php6 be included by
default? The base apache httpd.conf file requires several statement to
support php, they should not have to be removed if php is not installed.
Having the base of any port install other packages/ports that are not
required breaks the requirements/dependencies that are the heart of the
3) I think (proof left to the reader) there is an apache/php package.
4) My own opinion of best admin practices generally follows, if you don't
need it, don't install it.
If you build/install something like wordpress that requires both php and apache,
the correct thing is done. Usually even the required directives are added to
httpd.conf. The original question does not say if a port management system was
used to upgrade apache. If that was the case, perhaps one could argue apache was
not updated properly. Even in that case, I would argue that the bug [if any]
lies with the port management system.
More information about the freebsd-questions