From owner-freebsd-questions@FreeBSD.ORG Thu Jun 16 16:55:46 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 14597106564A for ; Thu, 16 Jun 2011 16:55:46 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 8F9B68FC16 for ; Thu, 16 Jun 2011 16:55:45 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QXFr5-0007DG-Ss for freebsd-questions@freebsd.org; Thu, 16 Jun 2011 18:55:43 +0200 Received: from pool-173-79-85-36.washdc.fios.verizon.net ([173.79.85.36]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 Jun 2011 18:55:43 +0200 Received: from nightrecon by pool-173-79-85-36.washdc.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 Jun 2011 18:55:43 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Michael Powell Followup-To: gmane.os.freebsd.questions Date: Thu, 16 Jun 2011 12:56:10 -0400 Lines: 92 Message-ID: References: <64D6EF8B-A799-4D8C-A688-FC020CCFEFD1@d3photography.com> <3.0.1.32.20110615175738.019581f8@sage-american.com> <3.0.1.32.20110615155910.019581f8@sage-american.com> <3.0.1.32.20110615150619.019581f8@sage-american.com> <3.0.1.32.20110615090401.0181fea8@sage-american.com> <3.0.1.32.20110615090401.0181fea8@sage-american.com> <3.0.1.32.20110615150619.019581f8@sage-american.com> <3.0.1.32.20110615155910.019581f8@sage-american.com> <3.0.1.32.20110615175738.019581f8@sage-american.com> <3.0.1.32.20110615191858.018e54e0@sage-american.com> <64D6EF8B-A799-4D8C-A688-FC020CCFEFD1@d3photography.com> <85B7376289F04B2596EBE3090DB9D970@rivendell> <3.0.1.32.20110616085819.018c54e0@sage-american.com> <0122428124834D73AAE4EE5178CEE27C@rivendell> <3.0.1.32.20110616105844.027f64f8@sage-american.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: pool-173-79-85-36.washdc.fios.verizon.net Subject: Re: Another PHP5 problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jun 2011 16:55:46 -0000 Jack L. Stone wrote: [snip] > > Thanks to both you and Mike for the advice. I've already installed > apache22 on a test server and trying to allocate time to it as and when. > Looks like this apr thing is going to raise the priority. You shouldn't have any of these apr problems with 22. > Also, I see the sqlite3 is tacked on the apr you have. I only have: > apr-ipv6-devrandom-gdbm-db46-mysql50-1.4.5.1.3.12 >>The name depends completely on the knobs you have used with >>portbuild - my apr is: >>apr-ipv6-devrandom-db43-pgsql84-sqlite3-1.4.5.1.3.12 Depends on what knobs you chose during the make config stage. > What are all of those "conf" files in the apache22/extra directory? Any > includes needed there besides perhaps the ssl if used? > These are essentially just the big httpd.conf of old broken into separate sections. Many are not needed. You'll probably need httpd-default.conf, httpd-ssl.conf, httpd-mpm.conf at the bare minimum. If you are running any vhosts their configs will be in httpd-vhosts.conf. The no-accf.conf under includes is for if you do not desire to use either of the AcceptFilter choices, one for httpd the other for SSL traffic. These can be loaded as kernel modules in /boot/loader.conf as such: accf_http_load="YES" accf_data_load="YES" When there is a problem with these Apache will emit an error warning, but will operate OK. They are supposed to provide some small measure of performance improvement. What I've noticed is I never seem to get any warning when I boot a machine and Apache starts right up. I've only ever seen a warning occassionally when restarting. the no-accf.conf is simply telling Apache not to look for these modules. If you load these kernel modules simply comment out the 'Include' line at the bottom of httpd.conf. The structure of the .conf file storage has changed, but once you look at the individual files themselves a lot of it is familiar, just divided up into pieces. There have been new and changed Directives from Apache 13, 20, and 22. What I did was to let apache22 install all it's default files and then just migrated over settings from backup copies of what I had in place beforehand. One thing you'll want to know for the future - When you did make config to set the options for the Apache build the config gets saved as an 'options' file under /var/db/ports/apache22. There is a corresponding one for apr. Any additional extra build options not set here should be set in /etc/make.conf. Now I am remiss at going over and comparing mine for dupes and misfits, but by way of example my make.conf has this section in it: #For Apache-2.2.9 Build WITH_MPM=event WITH_THREADS=yes WITHOUT_AUTHN_MODULES=yes WITH_CUSTOM_AUTHZ=authz_host WITHOUT_DAV_MODULES=yes WITHOUT_LDAP_MODULES=yes #WITH_PROXY_MODULES=yes #WITHOUT_SUEXEC_MODULES=yes WITH_THREADS_MODULES=yes WITH_CACHE_MODULES=yes WITH_SSL_MODULES=yes WITH_AUTH_MODULES=yes WITH_MISC_MODULES=yes WITH_CUSTOM_EXPERIMENTAL=ext_filter As you can see it's old. The advantage of having these 2 configs stored is from now on out when you do a portupgrade it will be pretty automagical. I've portupgraded since 2.2.9 and never had to mess with fixing anything! Also, I would suspect your apr was just built with whatever the port maintainer has set as defaults if you just launched the Apache build and it built the apr port as a dependency. You can set your own if you build and do a 'make config' in the apr port first, or you could also do 'make config recursive' when beginning the Apache build and this allows to set dependency options ahead of time. The first time a port is built and there are no saved 'options' file it will display the build options for you to choose. Once this file exists you need to do 'make config' to bring that screen up again. A 'make config recursive' will walk the dependency tree and show you them all. -Mike