Red Hat Bugzilla – Bug 493424
remove unneeded modules for admin server apache config
Last modified: 2015-12-07 11:39:44 EST
Created attachment 337592 [details]
Description of problem:
On F11-beta machine, the dirsrv-admin script looks for wrong files:
# setup-ds-admin.pl --debug
[09/04/01:19:25:31] - [Setup] Info Updating the configuration for the httpd engine . . .
[09/04/01:19:25:31] - [Setup] Info Starting admin server . . .
[09/04/01:19:25:31] - [Setup] Info output: httpd.worker: Syntax error on line 142 of /etc/dirsrv/admin-serv/httpd.conf: Cannot load /usr/lib64/httpd/modules/
mod_file_cache.so into server: /usr/lib64/httpd/modules/mod_file_cache.so: cannot open shared object file: No such file or directory
[09/04/01:19:25:31] - [Setup] Fatal Failed to create and configure the admin server
[09/04/01:19:25:31] - [Setup] Fatal Exiting . . .
I couldn't find the mod_file_cache.so file in any Fedora package:
# yum provides \*mod_file_cache.so
Loaded plugins: refresh-packagekit
No Matches found
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. install fedora-ds* packages on rawhide
2. setup-ds-admin.pl (pretty much defaults)
Full log file is attached
It appears that both mod_file_cache.so and mod_mem_cache.so are no longer a part of the httpd package as they were in F10 and earlier. I don't believe that we use these modules, so it may be safe to remove them from our httpd config file template.
There is actually a bug open on these libraries no longer being provided with httpd (bug #493458).
The changelog for the httpd rpm on F11 shows that we explicitly are not building mod_mem_cache or mod_file_cache as of httpd-2.2.11-8, but I'm not sure why this change was made.
Do you have the patches to remove those modules from httpd.conf? If so, I can get them into f11.
Created attachment 338936 [details]
Built. Please try the build and let me know if it works for you.
Built by: rmeggins
Started: Thu, 09 Apr 2009 16:32:22 UTC
Finished: Thu, 09 Apr 2009 16:35:57 UTC
* Thu Apr 09 2009 Rich Megginson <firstname.lastname@example.org> - 1.1.7-4
- Resolves: bug 493424
- Description: dirsrv-admin initscript looks for nonexistent library
- Added patch to remove those modules from the httpd.conf
I'm going to leave this bug open - we should at least remove these modules from the default admin server module list in the next release, and probably revisit the way we generate the httpd.conf.
(In reply to comment #5)
> Built. Please try the build and let me know if it works for you.
Sorry for the late reply. I can confirm that this version fixed the problem for me.
Thanks for the quick turnaround!
The real problem here is that the admin server has many unneeded modules in its config. We need to remove all unneeded modules.
I use this modules.
It's useful modules, please add to next build.
one more bug:
This bug is still preventing installs of 389 server on F11.
The patch above can still be applied while work on eliminating unused modules continues.
Created attachment 480295 [details]
Pushed to master. Thanks to Noriko for her review!
Counting objects: 9, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 529 bytes, done.
Total 5 (delta 4), reused 0 (delta 0)
f5a1e66..8f350bf master -> master
yes, Admin Server & console works fine on RHEL6.