The Apache ebuilds have used
To rectify this situation
$ echo APACHE2_MODULES=\"$(sed '/^mod_/s/mod_\(.*\)\s\+\(shared\|static\)/\1/;t n;d;:n' /etc/apache2/apache2-builtin-mods)\" >> /etc/make.conf # rm /etc/apache2/apache2-builtin-mods(You can now safely upgrade apache:) # emerge -uva '>=www-servers/apache-2.2.6-r4'
Additionally to the new
For a detailed description of old and corresponding new USE flags see
The state of Apache and its modules in Gentoo was becoming dismal. There were a number of problems that caused support problems and made maintaining everything the Apache herd is responsible for difficult:
This document details how to upgrade without breaking your system. If you are
a developer or would like to know what we changed, or how ebuilds need to be
modified to take advantage of our eclass, then check the
There have been many changes to how Apache works within Gentoo. Every package that is directly related to Apache needs to be updated and some things that worked previously will no longer work.
First you need to figure out what packages you need to upgrade. You can do this
using the
$ equery depends www-servers/apache [ Searching for packages depending on www-servers/apache... ] dev-db/phpmyadmin-2.5.6 dev-php/mod_php-4.3.10 dev-php/phpsysinfo-2.1-r2 net-www/mod_bandwidth-2.0.5 net-www/mod_layout-4.0.1a net-www/mod_mp3-0.40 net-www/mod_random-2.0 net-www/mod_throttle-3.1.2-r1 www-apache/mod_ldap_userdir-1.1.4 www-apache/mod_loopback-1.04 www-apache/mod_watch-3.18 www-apps/viewcvs-0.9.2_p20030430
Many webapps aren't affected in any way as most use the
As we have added some new USE flags, you may want to review them and add
appropriate lines to
(Check the USE flags and needed updates) # emerge --pretend --verbose --update --newuse --deep apache subversion \ mod_php mod_bandwidth mod_layout mod_ldap_userdir mod_loopback mod_mp3 \ mod_random mod_throttle mod_watch(Update the packages) # emerge --verbose --update --newuse --deep apache subversion mod_php \ mod_bandwidth mod_layout mod_ldap_userdir mod_loopback mod_mp3 mod_random \ mod_throttle mod_watch(It may be easier to just update world instead of the above) # emerge --ask --verbose --update --newuse --deep world
Now you need to reconfigure Apache and its modules. Start by using
If you have made changes to the previous default
When you have finished migrating your changes to the new configuration file,
you will need to delete the old configuration files (or move them to a safe
place). The new
Now you may restart apache.
# /etc/init.d/apache stop # /etc/init.d/apache start
If you run into any problems check the
There are USE flags that are local to apache and its modules. Apache
supports several other more generic USE flags such as
| USE flag | Description |
|---|---|
With the advent of
| USE flag | Old USE flag | Description |
|---|---|---|
The following table lists supported
| Flag | Old USE flag | Description |
|---|---|---|
The following table lists supported
| Flag | Description |
|---|---|