From owner-freebsd-questions@FreeBSD.ORG Sat Jan 9 15:57:26 2010 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 658C5106566C for ; Sat, 9 Jan 2010 15:57:26 +0000 (UTC) (envelope-from af.gourmet@videotron.ca) Received: from relais.videotron.ca (relais.videotron.ca [24.201.245.36]) by mx1.freebsd.org (Postfix) with ESMTP id 3C6D58FC15 for ; Sat, 9 Jan 2010 15:57:25 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=UTF-8 Received: from [192.168.0.51] ([96.21.103.185]) by VL-MH-MR003.ip.videotron.ca (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTP id <0KVZ0087ELNHI5B0@VL-MH-MR003.ip.videotron.ca> for freebsd-questions@freebsd.org; Sat, 09 Jan 2010 10:57:17 -0500 (EST) Message-id: <4B48A761.8040104@videotron.ca> Date: Sat, 09 Jan 2010 10:57:21 -0500 From: PJ User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0 To: Matthew Seaman References: <4B47EB5A.3010802@videotron.ca> <4B484DBB.4090902@infracaninophile.co.uk> In-reply-to: <4B484DBB.4090902@infracaninophile.co.uk> Cc: freebsd-questions@freebsd.org Subject: Re: port-MESS with apache22 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: Sat, 09 Jan 2010 15:57:26 -0000 Thanks for the response, Matthew. Now that I've had somewhat of a night's sleep thinking about the problem. This might help clear things for future generations. :-) Here's some background: Before upgrading from 7.2 RELEASE to 8.0 RELEASE , I had run portsnap on 7.2 but did not update the ports. Is it possible that this may be the source of the problem? PWould it make sense to rebuild the ports database and portsnap now that I'm running 8.0 and then reinstalling either just the problem apps or maybe do another complete reinstall (# portupgrade -af - -batch). It's a PITA but if that fixes things... I seem to recall that there are probably differences in the ports for different os versions? I do recall that when I was updating apache, I did make config and erroneously checked proxy_lconnect SSL support (do not use proxy). This generated a stop in the install and somewhere at this point I noticed that there had been an apache2 directory created. I tried to find the problem but figured that once installed, a deinstall and reinstall would fix thinkg. I think I mucked up something as I had to delete all the files and work directories in the hope they would be regenrated when installing. Well, no such luck. However, I have backups of all installations on another disk and was able to copy the files directory to the port. Anyway, the installation went all the way and on reboot apache was working. But when I tried to access my virtual sites, things were not quite right. Thanks again. On 1/9/2010 4:34 AM, Matthew Seaman wrote: > PJ wrote: >> Upgraded to 8.0 without problem. >> Reinstalling ports was tedious... but NP for most part. >> Sommehow the installation of apache22 stumbled over some configuration >> issues, I think.... >> I found that apache was running ok, except... >> php5 module was not correctly installed... > > mod_php5 isn't built by default when you install php5. This catches > out a very large number of people, and it is particularly astonishing > as integrating php into apache is probably the number one reason for > installing php. > > Sounds like you may need to do this: > > # cd /usr/ports/lang/php5 > # make config > [ Make sure the option for 'Build Apache Module' is checked ] > # portupgrade -f lang/php5 > > -or- > > # portmaster --force-config -f lang/php5 > > > > It might also be necessary to rebuild all of the php5 modules -- plus > any pecl- modules. At the cost of reinstalling pear- modules and PHP > apps (which should be fairly cheap, as the port installation process for > that sort of port consists almost entirely of copying files into place) > you can just do this: > > # portupgrade -fr lang/php5 > > -or- > > # portmaster -fr lang/php5 > > > Also double check httpd.conf once PHP5 is installed with mod_php5 -- > the port will automatically add a line to > ${PREFIX}/etc/apache22/httpd.conf > to cause apache to load the module, which should look like this: > > LoadModule php5_module libexec/apache22/libphp5.so > > As I recall, PHP5 creates that line as shown, which should work straight > away, but some modules add a commented out LoadModule line, so it would > be a good idea to eliminate that as a potential problem. > > Cheers, > > Matthew >