Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Jan 2010 22:02:03 +0600
From:      keneasson <keneasson@zoho.com>
To:        <af.gourmet@videotron.ca>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: cannot install apache22 on FBSD 8.0
Message-ID:  <126286b91ec.-135289677807361896.868388711535684751@zoho.com>
In-Reply-To: <4B4DEA77.10801@videotron.ca>
References:  <4B4D7ABE.3050001@videotron.ca> <4B4D8DD2.3000500@infracaninophile.co.uk> <4B4DEA77.10801@videotron.ca>

next in thread | previous in thread | raw e-mail | index | archive | help

---- On Wed, 13 Jan 2010 21:44:55 +0600 PJ &lt;af.gourmet@videotron.ca&gt; wrote ---- 

On 1/13/2010 4:09 AM, Matthew Seaman wrote: 
&gt; PJ wrote: 
&gt;&gt; Gentlemen, 
&gt;&gt; I am absolutely stupefied by apache22, php5, php5-extensions and 
&gt;&gt; phpmysql refusing to be updated or installed 
&gt;&gt; I did manage to do one installation on a freshly upgraded box from 7.2 
&gt;&gt; to 8.0 but with very frustrating and time consuming efforts. I still 
&gt;&gt; don't know how I managed, but it seems to work, for the moment anyway. 
&gt;&gt; Could someone explain to me why there is a problem with apache22, php5 
&gt;&gt; and the rest - when doing an upgrade from 7.2 to 8.0. 
&gt;&gt; I followed the instructions in the handbood to the letter and both times 
&gt;&gt; there is a problem. 
&gt;&gt; Am I doing something that is not evident in the instructions. Even the 
&gt;&gt; apache site states very clearly that and update is about as simple as 
&gt;&gt; could be. 
&gt;&gt; The long list of errors when installing apache seem to deal with a lot 
&gt;&gt; of undeclared stuff (first use in this function) for a lot of uldap 
&gt;&gt; stuff like cache, connection etc. etc. 
&gt;&gt; How does one deal with this as there seems to be nothing on google. 
&gt;&gt; TIA 
&gt; 
&gt; You're installing quite a complex interconnected group of ports there, 
&gt; and 
&gt; it can go wrong in any number of new and exciting ways. We can't tell 
&gt; exactly 
&gt; what has gone wrong from what you tell us -- but it's almost certainly a 
&gt; problem fairly high up the dependency tree which is screwing things up 
&gt; for 
&gt; all of the ports lower down you're having trouble with. 
&gt; 
&gt; As a general strategy for making this work, probably the most effective 
&gt; route is 'back to square one.' Rip out everything that apache, php etc. 
&gt; depend on, and start again from scratch. This includes all options 
&gt; settings 
&gt; for those ports under /var/db/ports/. 
&gt; 
&gt; When reinstalling a group of interconnected ports like this, I find it 
&gt; beneficial to sort out all of the OPTIONS settings over the whole 
&gt; dependency 
&gt; tree before trying to compile anything. One of the unfortunate 
&gt; characteristics 
&gt; of the way OPTIONS processing works at the moment is that changing an 
&gt; option 
&gt; somewhere can add or remove other ports from the dependency tree, and 
&gt; those in their turn may have their own OPTIONS settings, but those 
&gt; OPTIONS are not processed in that pass. There are patches to correct 
&gt; that behaviour in PR ports/141641 but until that or something like it 
&gt; is committed, the trick is 
&gt; to run 'make config-recursive' repeatedly, until you no longer get 
&gt; presented with any of the blue OPTIONS dialogues. 
&gt; 
&gt; Some ports may not give you an OPTIONS dialogue but still have 
&gt; configuration 
&gt; settings you can tweak by setting make(1) variables. In this case, I 
&gt; recommend 
&gt; preserving your settings by adding them to /etc/make.conf. Changing a 
&gt; setting like this can affect the dependency tree in exactly the same 
&gt; way as changing an 
&gt; option, so re-running 'make config-recursive' /yet again/ is a good idea. 
&gt; 
&gt; I wrote a piece about this earlier in the context of reinstalling all 
&gt; ports as 
&gt; part of the process of upgrading 7.2 -&gt; 8.0, which you might like to 
&gt; refer to: 
&gt; 
&gt; http://lists.freebsd.org/pipermail/freebsd-questions/2010-January/210449.html 
&gt; 
&gt; 
&gt; Note: there's a fairly tricky interplay between www/apache22 and 
&gt; devel/apr 
&gt; which only affects you if you enable the APR_FROM_PORTS option in the 
&gt; apache22 
&gt; OPTIONS dialogue -- both www/apache22 and devel/apr can be configured 
&gt; to add dependencies on all sorts of fairly large software groups 
&gt; (Berkeley DB, MySQL, LDAP, PostgreSQL ...) and to toggle threading 
&gt; support. Empirically I've come to the conclusion that if you're 
&gt; compiling against devel/apr, then devel/apr has to include matching 
&gt; support for all the software groups enabled in the apache22 options, 
&gt; or building apache22 will fall over in a twisty mess of dependencies, 
&gt; all alike. However, you pretty much cannot get the OPTIONS settings 
&gt; right in one pass of 'make config-recursive' starting from the 
&gt; www/apache22 directory. You can avoid some trouble by *not* enabling 
&gt; the APR_FROM_PORTS option -- which is the default, but loses some 
&gt; flexibility 
&gt; if you're going to be rebuilding Apache or any 3rd party apache 
&gt; modules quite 
&gt; a bit. 
&gt; 
&gt; Cheers, 
&gt; 
&gt; Matthew 
&gt; 
Thanks for the input. 
There was no way that apache22 was going to install with the apr. I 
tried everything imaginable and referred to your suggestions. 
Finally, I removed apr, removed the configuration files from the /work 
directory, redid config without apr and did config-recursive. 
Much to my surprise, it worked... now to install php5 and php5 
extensions and try it all out. 
PJ 
_______________________________________________ 
freebsd-questions@freebsd.org mailing list 
http://lists.freebsd.org/mailman/listinfo/freebsd-questions 
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" 
I read somewhere to put this in my make.conf file.

WITH_MYSQL_VER=51
APACHE_VERSION=22
WWWDIR = /web/phpmyadmin

I have had no problems at all with apache, php or mysql working.
#php -v
PHP 5.2.12 with Suhosin-Patch 0.9.7 (cli) (built: Jan  8 2010 17:12:52)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
#apachectl -v
Server version: Apache/2.2.14 (FreeBSD)
Server built:   Jan  7 2010 16:40:50


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?126286b91ec.-135289677807361896.868388711535684751>