Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 45621 - Apache-2.0.49 Ebuild Error (Modules)
Summary: Apache-2.0.49 Ebuild Error (Modules)
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All All
: High major
Assignee: Gentoo Web Application Packages Maintainers
URL: http://forums.gentoo.org/viewtopic.ph...
Whiteboard:
Keywords:
: 45606 45639 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-03-24 10:31 UTC by Wade
Modified: 2004-03-25 07:16 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wade 2004-03-24 10:31:46 UTC
I just finished updating my apache server to version apache-2.0.49 and now all of my modules are placed in the wrong folder. I have a feeling some other files have been misplaced as well but I haven't checked it out yet. I believe it has to do with an ebuild problem since it defines where everything is placed. Here is what is wrong:

Code:

tux apache2 # pwd; ls
/etc/apache2
apache2-builtin-mods  conf  extramodules  lib  logs  modules

Code:

tux modules # pwd; ls
/etc/apache2/modules
build  conf  extramodules  lib  logs  modules

Then doing an ls inside /etc/apache2/modules/modules lists all of the modules.

If I try to start apache, I get this error:

Code:

tux modules # /etc/init.d/apache2 start
 * Apache2 has detected a syntax error in your configuration files:
Syntax error on line 23 of /etc/apache2/conf/apache2.conf:
Cannot load /etc/apache2/modules/mod_auth.so into server: /etc/apache2/modules/mod_auth.so: cannot open shared object file: No such file or directory

Changing line 23 from:

Code:
LoadModule access_module                 modules/mod_access.so

to

Code:
LoadModule access_module                 modules/modules/mod_access.so

will correct the problem (you would have to change this for every LoadModule. Another quick fix is to mv all of the modules to the original modules directory. Can someone fix this?
Comment 1 Heinrich Wendel (RETIRED) gentoo-dev 2004-03-24 10:36:03 UTC
You have to change ServerRoot to /usr/lib/apache2 in /etc/apache2/conf/apache2.conf

(next time take a look at the diffs etc-update gives you ;))
Comment 2 Wade 2004-03-24 10:41:17 UTC
Are the modules in /etc/apache2/modules/modules used at all now?  If not, which files can I safely clean out that are no longer in use?
Comment 3 Stuart Herbert (RETIRED) gentoo-dev 2004-03-24 12:42:56 UTC
If you read the apache-2.0.49 ebuild, you'll see that there's a warning message in there, telling you which directories you should now remove from /etc/apache2.  This message unfortunately scrolls up the screen pretty quickly when you upgrade your apache installation.

Best regards,
Stu
Comment 4 Stuart Herbert (RETIRED) gentoo-dev 2004-03-24 12:44:22 UTC
*** Bug 45606 has been marked as a duplicate of this bug. ***
Comment 5 Lance Albertson (RETIRED) gentoo-dev 2004-03-25 07:16:48 UTC
*** Bug 45639 has been marked as a duplicate of this bug. ***