17a41 [Solved] apache won't update (apache-2.2.22_5 to apache22-worker-mpm-2.2.22_8) - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Ports & Packages > Installation and Maintenance of FreeBSD Ports or Packages

Installation and Maintenance of FreeBSD Ports or Packages Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software).

Reply
 
Thread Tools Display Modes
  #1  
Old September 12th, 2012, 11:19
Lido Lido is offline
Junior Member
 
Join Date: Dec 2011
Posts: 59
Thanks: 8
Thanked 0 Times in 0 Posts
Default apache won't update (apache-2.2.22_5 to apache22-worker-mpm-2.2.22_8)

I unmarked CGI and marked CGID via make config in the apache22 port directory. Same error. I've spent a few hours searching, uninstalling apache22, installing apache22-worker-mpm but no luck. Anyone know what to do here?

Code:
===>>> Launching child to update apache-2.2.22_5 to apache22-worker-mpm-2.2.22_8

===>>> All >> apache-2.2.22_5 (7/7)

===>>> Currently installed version: apache-2.2.22_5
===>>> Port directory: /usr/ports/www/apache22

        ===>>> This port is marked IGNORE
        ===>>> When using a multi-threaded MPM, the module CGID should be used in place CGI.
               Please de-select CGI and select CGID instead.
               See http://httpd.apache.org/docs/2.2/mod/mod_cgi.html


        ===>>> If you are sure you can build it, remove the
               IGNORE line in the Makefile and try again.

===>>> Update for apache-2.2.22_5 failed
===>>> Aborting update

Last edited by Lido; September 21st, 2012 at 02:48.
Reply With Quote
  #2  
Old September 12th, 2012, 17:32
Lido Lido is offline
Junior Member
 
Join Date: Dec 2011
Posts: 59
Thanks: 8
Thanked 0 Times in 0 Posts
Default

portmaster seems to be able to update apache22, but then when I run:
Code:
portmaster -L --index-only| egrep '(ew|ort) version|total install'
it still says I need to update apache22. Then if I try
Code:
portmaster -ad --delete-packages
it fails with the message listed in my first message.
Reply With Quote
  #3  
Old September 13th, 2012, 12:07
mamalos mamalos is offline
Member
 
Join Date: Mar 2009
Location: Greece
Posts: 427
Thanks: 25
Thanked 43 Times in 42 Posts
Default

Quote:
Originally Posted by Lido View Post
Code:
        ===>>> This port is marked IGNORE
        ===>>> When using a multi-threaded MPM, the module CGID should be used in place CGI.
               Please de-select CGI and select CGID instead.
               See http://httpd.apache.org/docs/2.2/mod/mod_cgi.html


        ===>>> If you are sure you can build it, remove the
               IGNORE line in the Makefile and try again.

===>>> Update for apache-2.2.22_5 failed
===>>> Aborting update
As the error message says, you can continue building your apache22 port if you remove the IGNORE line from the Makefile. However, you should take note to what the message warns you with respect to CGI and CGID.
Reply With Quote
  #4  
Old September 13th, 2012, 22:36
Lido Lido is offline
Junior Member
 
Join Date: Dec 2011
Posts: 59
Thanks: 8
Thanked 0 Times in 0 Posts
Default

Ok, thanks. I was wondering. So the port apache22-mpm-worker is what is actually being used, and apache22 is being ignored? I've tried uninstalling apache22, since I've got mpm-worker installed, but that doesn't seem to work for some reason.
Reply With Quote
  #5  
Old September 14th, 2012, 10:20
mamalos mamalos is offline
Member
 
Join Date: Mar 2009
Location: Greece
Posts: 427
Thanks: 25
Thanked 43 Times in 42 Posts
Default

Try:

# pkg_delete -f apache\*

But check if you have anything else installed that starts with the same prefix (apache) before you run the above command.

To see if something else is installed containing the same string, give:

$ pkg_info -Ix apache

Which at some moment @wblock advised me to use (), instead of:

$ ls /var/db/pkg | grep -i apache
Reply With Quote
  #6  
Old September 14th, 2012, 11:05
freethread freethread is offline
Member
 
Join Date: Aug 2009
Location: italy
Posts: 168
Thanks: 25
Thanked 18 Times in 18 Posts
Default

Quote:
Originally Posted by mamalos View Post
To see if something else is installed containing the same string, give:

$ pkg_info -Ix apache

Which at some moment @wblock advised me to use (), instead of:

$ ls /var/db/pkg | grep -i apache
I also use the following command that give the port name of packages, in this specific case the command is

# pkg_info -q -o 'apache*'

to list all packages installed on the system giving the port name

# pkg_info -q -o '*' | sort -f | less
Reply With Quote
  #7  
Old September 15th, 2012, 14:27
ohauer ohauer is offline
Member
 
Join Date: Aug 2009
Posts: 108
Thanks: 1
Thanked 11 Times in 11 Posts
Default

Quote:
Originally Posted by Lido View Post
I unmarked CGI and marked CGID via make config in the apache22 port directory. Same error. I've spent a few hours searching, uninstalling apache22, installing apache22-worker-mpm but no luck. Anyone know what to do here?
With the old framework CGI was silently disabled if MPM worker or event was chosen.
With the new option framework it's not possible to disable an option at the time where the CGI/CGID check is done, therefore the ports cannot share the same OPTIONSFILE.

Try the following:
Configure inside the apache22-worker-mpm directory, not from the apache22 directory.
If you get an error remove the line apache22_(UN|SET)+=CGI (not the CGID) from /var/db/ports/apache22-worker-mpm/options.
Reply With Quote
  #8  
Old September 15th, 2012, 21:40
Lido Lido is offline
Junior Member
 
Join Date: Dec 2011
Posts: 59
Thanks: 8
Thanked 0 Times in 0 Posts
Default

Thanks. So is this a bug in the port? It's telling me that apache needs to be updated, but when I update apache22 with portmaster, it just re-installs apache22-worker-mpm and leaves apache22 at 2.2.22_5 so then portmaster or portupgrade both tell me that apache22 is out of date. I've got both installed,
Code:
# pkg_info -q -o 'apache*'
www/apache22
www/apache22-worker-mpm
..but deinstalling apach22 doesn't seem to work. I can't even figure out how to go back to prefork mpm. If I deinstall apache22-worker-mpm, I still can't install apache22 because it give the cgid vs cgi error because I'm using worker-mpm (after deinstalling the worker-mpm port).
Reply With Quote
  #9  
Old September 16th, 2012, 00:01
ohauer ohauer is offline
Member
 
Join Date: Aug 2009
Posts: 108
Thanks: 1
Thanked 11 Times in 11 Posts
Default

Have you build apache in the past with WITH_MPM=worker ?
If yes , there was a regression since the package name was recorded as apache22 instead apache22-worker-mpm. This is fixed now for usage with pkg.

I've seen to much issues from portupgrade and others, please do a manual de-install of both recorded apache ports. Then go directly into the directory of the port you want to install www/apache22 or www/apache22-worker-mpm and do a manual # make clean config
# make install

Try first to deinstall apache22-worker-mpm and the a forced deinstall of apache22 or the other way around.
Reply With Quote
  #10  
Old September 17th, 2012, 05:43
Lido Lido is offline
Junior Member
 
Join Date: Dec 2011
Posts: 59
Thanks: 8
Thanked 0 Times in 0 Posts
Default

I deinstalled both, then reinstalled worker-mpm with this command:
Code:
make clean config
make install
but I'm still getting the same error:
Code:
# portmaster -ad --delete-packages
===>>> Gathering distinfo list for installed ports

===>>> Starting check of installed ports for available updates
===>>> Launching child to update apache-2.2.22_5 to apache22-worker-mpm-2.2.22_8

===>>> All >> apache-2.2.22_5 (1/1)

===>>> Currently installed version: apache-2.2.22_5
===>>> Port directory: /usr/ports/www/apache22

        ===>>> This port is marked IGNORE
        ===>>> When using a multi-threaded MPM, the module CGID should be used in place CGI.
               Please de-select CGI and select CGID instead.
               See http://httpd.apache.org/docs/2.2/mod/mod_cgi.html


        ===>>> If you are sure you can build it, remove the
               IGNORE line in the Makefile and try again.

===>>> Update for apache-2.2.22_5 failed
===>>> Aborting update

Terminated
Reply With Quote
  #11  
Old September 17th, 2012, 06:18
ohauer ohauer is offline
Member
 
Join Date: Aug 2009
Posts: 108
Thanks: 1
Thanked 11 Times in 11 Posts
Default

The error message is right, MPM worker and event are threaded versions and they do not work with CGI, they have to use CGID.
The apache port (default prefork) is not threaded and should use CGI instead CGID.

I'm not sure what portmaster has recored in the database and why it wants to update apache22 if you have installed apache22-worker-mpm.
Maybe this command helps # portmaster -o www/apache22 www/apache22-worker-mpm
Reply With Quote
  #12  
Old September 17th, 2012, 08:17
Lido Lido is offline
Junior Member
 
Join Date: Dec 2011
Posts: 59
Thanks: 8
Thanked 0 Times in 0 Posts
Default

Thanks, but it makes no difference if I config apache22 to use cgid instead of cgi, it still gives this same error. Also if I update apache individually, it just updates worker-mpm and leaves the old apache22 in the same state (outdated).
Reply With Quote
  #13  
Old September 21st, 2012, 00:07
wmoreno3 wmoreno3 is offline
Junior Member
 
Join Date: Oct 2011
Posts: 30
Thanks: 1
Thanked 1 Time in 1 Post
Default I have the same problem, but apache runs fine ...

Code:
server# pkg_info -Ix apache
apache22-worker-mpm-2.2.22_8 Version 2.2.x of Apache web server with worker MPM.
Code:
server# cat /var/log/portmanager.log
========================================================================
portmanager 0.4.1_9
FreeBSD host.mydomain.com 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12 02:52:29 UTC 2012
    root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64
Thu Sep 20 17:42:50 2012
 apache22-worker-mpm-2.2.22_8        /www/apache22
     marked                             IGNORE                               port not installed/updated

Thu Sep 20 17:45:02 2012
 portmanager                         0.4.1_9
    ports are up to date

Thu Sep 20 17:45:02 2012
 end of log
Reply With Quote
  #14  
Old September 21st, 2012, 02:48
Lido Lido is offline
Junior Member
 
Join Date: Dec 2011
Posts: 59
Thanks: 8
Thanked 0 Times in 0 Posts
Default

I was actually able to resolve the issue by a force pkg_delete. Then I reinstalled worker-mpm and ended up deciding to go back to apache22 with prefork since I've just got a core2 duo processor and I'm using php (two things I've read that make the worker-mpm advantage minimal or non-existent - though that could be wrong, there isn't a ton of info about that on freebsd that I've found out there).
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Solved] apache + php5 packages without module for apache eyebone Installation and Maintenance of FreeBSD Ports or Packages 3 December 9th, 2011 14:26
[Solved] VERY DEADLY bad performance (apache/php/mysql) on FreeBSD 8.1 with Apache/2.2.16 kenorb Web & Network Services 17 November 17th, 2010 19:33
[Solved] How do I fix an error with Apache 2.2 update macgruder Installation and Maintenance of FreeBSD Ports or Packages 5 September 2nd, 2010 07:05
Install apache 1.3 and apache22 on the same machine? everypot Installation and Maintenance of FreeBSD Ports or Packages 7 February 18th, 2010 10:12
[Solved] Apache SSL Not Working After Update To 2.2.13 dave Web & Network Services 17 October 27th, 2009 20:57


All times are GMT +1. The time now is 17:24.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0