Sean Carolan
2009-Mar-23 21:13 UTC
[Fedora-directory-users] /usr/lib64/dirsrv/modules/mod_admserv.so will not load
I have successfully installed Fedora Directory server on an x86_64 machine running CentOS 5. Everything works except for the Admin Server. When I attempt to start it the apache module fails to load: /usr/lib64/dirsrv/modules/mod_admserv.so [Mon Mar 23 16:06:44 2009] [error] This module only supports the threaded MPM Can anyone shed some light on this error? I googled and looked through the mailing list archives but did not find anything to specifically address this problem Thanks Sean
Ryan Manikowski
2009-Mar-23 21:18 UTC
Re: [Fedora-directory-users] /usr/lib64/dirsrv/modules/mod_admserv.so will not load
Edit /etc/sysconfig/httpd and find the line that says httpd.worker. Uncomment that and then try and start the Admin server. Apache by default uses prefork in Centos/RHEL/Fedora. Beward that unless php (if you''re using it) was compiled for threads, it will not work with httpd.worker on Centos w/ Apache 2.0.x/2.2.x. Ryan Manikowski | System Administrator :703.677.8499: ryan.manikowski@2ergo.com 2ergo – Digital leaders in a mobile world Mobile Excellence Award - Best Innovator Mobile Star Award - Best Enterprise Mobile Web Publishing Solution Webby Awards - Official Honoree for Best Mobile News Site Deloitte Fast 50 - Fastest Growing Technology Companies in the UK GSMA - GSMA Mobile Innovation Award Finalist Vodafone - Vodafone Innovation Award ***** Email confidentiality notice ***** This message (including attachments) is confidential and may be legally privileged. The content and views expressed are those of the sender and not necessarily the 2ergo Group. If you are not the intended recipient, you must not disclose, copy or use any part of it. Please delete all copies immediately and notify the sender. Sean Carolan wrote:> I have successfully installed Fedora Directory server on an x86_64 > machine running CentOS 5. Everything works except for the Admin > Server. When I attempt to start it the apache module fails to load: > > /usr/lib64/dirsrv/modules/mod_admserv.so > [Mon Mar 23 16:06:44 2009] [error] This module only supports the threaded MPM > > Can anyone shed some light on this error? I googled and looked > through the mailing list archives but did not find anything to > specifically address this problem > > Thanks > > Sean > > -- > Fedora-directory-users mailing list > Fedora-directory-users@redhat.com > https://www.redhat.com/mailman/listinfo/fedora-directory-users > > >
Sean Carolan
2009-Mar-23 21:34 UTC
Re: [Fedora-directory-users] /usr/lib64/dirsrv/modules/mod_admserv.so will not load
> Beward that unless php (if you''re using it) was compiled for threads, it > will not work with httpd.worker on Centos w/ Apache 2.0.x/2.2.x.Indeed: [Mon Mar 23 16:24:22 2009] [crit] Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP. Pre-configuration failed I tried removing PHP and unfortunately it still doesn''t work. Running httpd.worker from the command line produces this: [root@newldap6 ~]# /usr/sbin/httpd.worker -k start -f /etc/dirsrv/admin-serv/httpd.conf Segmentation fault Could this be because of the 64 bit OS?
Rich Megginson
2009-Mar-25 16:49 UTC
Re: [Fedora-directory-users] /usr/lib64/dirsrv/modules/mod_admserv.so will not load
Sean Carolan wrote:>> Beward that unless php (if you''re using it) was compiled for threads, it >> will not work with httpd.worker on Centos w/ Apache 2.0.x/2.2.x. >> > > Indeed: > > [Mon Mar 23 16:24:22 2009] [crit] Apache is running a threaded MPM, > but your PHP Module is not compiled to be threadsafe. You need to > recompile PHP. > Pre-configuration failed > > I tried removing PHP and unfortunately it still doesn''t work. Running > httpd.worker from the command line produces this: > > [root@newldap6 ~]# /usr/sbin/httpd.worker -k start -f > /etc/dirsrv/admin-serv/httpd.conf > Segmentation fault > > Could this be because of the 64 bit OS? >No. Fedora DS admin server will only work with httpd.worker. It uses its own special httpd.conf file and other config files - it does not use /etc/httpd config files.> -- > Fedora-directory-users mailing list > Fedora-directory-users@redhat.com > https://www.redhat.com/mailman/listinfo/fedora-directory-users >
Sean Carolan
2009-Mar-25 16:53 UTC
Re: [Fedora-directory-users] /usr/lib64/dirsrv/modules/mod_admserv.so will not load
> No. Fedora DS admin server will only work with httpd.worker. It uses its > own special httpd.conf file and other config files - it does not use > /etc/httpd config files.Ok, I understand all that. But the initialization script fails with no useful error message, just an exit status of "1". How can I continue to troubleshoot this to find the problem?
Rich Megginson
2009-Mar-25 17:42 UTC
Re: [Fedora-directory-users] /usr/lib64/dirsrv/modules/mod_admserv.so will not load
Sean Carolan wrote:>> No. Fedora DS admin server will only work with httpd.worker. It uses its >> own special httpd.conf file and other config files - it does not use >> /etc/httpd config files. >> > > Ok, I understand all that. But the initialization script fails with > no useful error message, just an exit status of "1". How can I > continue to troubleshoot this to find the problem? >You cannot run setup-ds-admin.pl again - you have to start with a completely clean system.> -- > Fedora-directory-users mailing list > Fedora-directory-users@redhat.com > https://www.redhat.com/mailman/listinfo/fedora-directory-users >
Sean Carolan
2009-Mar-25 19:29 UTC
Re: [Fedora-directory-users] /usr/lib64/dirsrv/modules/mod_admserv.so will not load
> You cannot run setup-ds-admin.pl again - you have to start with a completely > clean system.I wasn''t talking about the setup-ds-admin.pl script. I was referring to /etc/init.d/dirsrv-admin, which simply fails with no error message. I followed the installation instructions here: http://directory.fedoraproject.org/wiki/Download#Enterprise_Linux_5 As I mentioned before, the LDAP server is working great, but the dirsrv-admin is not.
Rich Megginson
2009-Mar-25 19:33 UTC
Re: [Fedora-directory-users] /usr/lib64/dirsrv/modules/mod_admserv.so will not load
Sean Carolan wrote:>> You cannot run setup-ds-admin.pl again - you have to start with a completely >> clean system. >> > > I wasn''t talking about the setup-ds-admin.pl script. I was referring > to /etc/init.d/dirsrv-admin, which simply fails with no error message. > I followed the installation instructions here: > > http://directory.fedoraproject.org/wiki/Download#Enterprise_Linux_5 > > As I mentioned before, the LDAP server is working great, but the > dirsrv-admin is not. >Does /usr/sbin/start-ds-admin work?> -- > Fedora-directory-users mailing list > Fedora-directory-users@redhat.com > https://www.redhat.com/mailman/listinfo/fedora-directory-users >
Sean Carolan
2009-Mar-25 19:35 UTC
Re: [Fedora-directory-users] /usr/lib64/dirsrv/modules/mod_admserv.so will not load
> Does /usr/sbin/start-ds-admin work? >>Nope: [scarolan@newldap6 ~]$ sudo /usr/sbin/start-ds-admin [scarolan@newldap6 ~]$ echo $? 1
Rich Megginson
2009-Mar-25 19:40 UTC
Re: [Fedora-directory-users] /usr/lib64/dirsrv/modules/mod_admserv.so will not load
Sean Carolan wrote:>> Does /usr/sbin/start-ds-admin work? >> > > Nope: > > [scarolan@newldap6 ~]$ sudo /usr/sbin/start-ds-admin > [scarolan@newldap6 ~]$ echo $? >What''s in /var/log/dirsrv/admin-serv/error?> 1 > > -- > Fedora-directory-users mailing list > Fedora-directory-users@redhat.com > https://www.redhat.com/mailman/listinfo/fedora-directory-users >
Sean Carolan
2009-Mar-25 19:42 UTC
Re: [Fedora-directory-users] /usr/lib64/dirsrv/modules/mod_admserv.so will not load
> What''s in /var/log/dirsrv/admin-serv/error?I get this: [Wed Mar 25 14:41:21 2009] [crit] do_admserv_post_config(): unable to create AdmldapInfo Configuration Failed [Wed Mar 25 14:41:21 2009] [error] NSS_Shutdown failed: -8038 Is it unable to create a file somewhere?
Rich Megginson
2009-Mar-25 19:45 UTC
Re: [Fedora-directory-users] /usr/lib64/dirsrv/modules/mod_admserv.so will not load
Sean Carolan wrote:>> What''s in /var/log/dirsrv/admin-serv/error? >> > > I get this: > > [Wed Mar 25 14:41:21 2009] [crit] do_admserv_post_config(): unable to > create AdmldapInfo > Configuration Failed > [Wed Mar 25 14:41:21 2009] [error] NSS_Shutdown failed: -8038 > > Is it unable to create a file somewhere? >grep \^User /etc/dirsrv/admin-serv/console.conf ls -al /etc/dirsrv/admin-serv> -- > Fedora-directory-users mailing list > Fedora-directory-users@redhat.com > https://www.redhat.com/mailman/listinfo/fedora-directory-users >
Sean Carolan
2009-Mar-25 19:56 UTC
Re: [Fedora-directory-users] /usr/lib64/dirsrv/modules/mod_admserv.so will not load
> grep \^User /etc/dirsrv/admin-serv/console.conf > ls -al /etc/dirsrv/admin-servOk, I think we are on the right track, thank you for pointing out this config file. [scarolan@newldap6 ~]$ grep \^User /etc/dirsrv/admin-serv/console.conf User nobody [scarolan@newldap6 ~]$ ls -al /etc/dirsrv/admin-serv total 56 drwxr-xr-x 2 root root 4096 Mar 23 16:21 . drwxrwxr-x 7 root ldap 4096 Mar 23 15:49 .. -rw-r--r-- 1 root root 3984 Mar 23 15:29 adm.conf -rw-r--r-- 1 root root 3984 Sep 4 2008 admserv.conf -rw-r--r-- 1 root root 4033 Sep 4 2008 console.conf -rw-r--r-- 1 root root 27000 Sep 4 2008 httpd.conf -rw-r--r-- 1 root root 4548 Sep 4 2008 nss.conf The username we used to install FDS was "ldap" instead of "nobody". What should the settings be to enable the server to start?
Rich Megginson
2009-Mar-25 20:28 UTC
Re: [Fedora-directory-users] /usr/lib64/dirsrv/modules/mod_admserv.so will not load
Sean Carolan wrote:>> grep \^User /etc/dirsrv/admin-serv/console.conf >> ls -al /etc/dirsrv/admin-serv >> > > Ok, I think we are on the right track, thank you for pointing out this > config file. > > [scarolan@newldap6 ~]$ grep \^User /etc/dirsrv/admin-serv/console.conf > User nobody > [scarolan@newldap6 ~]$ ls -al /etc/dirsrv/admin-serv > total 56 > drwxr-xr-x 2 root root 4096 Mar 23 16:21 . > drwxrwxr-x 7 root ldap 4096 Mar 23 15:49 .. > -rw-r--r-- 1 root root 3984 Mar 23 15:29 adm.conf > -rw-r--r-- 1 root root 3984 Sep 4 2008 admserv.conf > -rw-r--r-- 1 root root 4033 Sep 4 2008 console.conf > -rw-r--r-- 1 root root 27000 Sep 4 2008 httpd.conf > -rw-r--r-- 1 root root 4548 Sep 4 2008 nss.conf > > The username we used to install FDS was "ldap" instead of "nobody". >Did the user "ldap" exist before you ran the setup script?> What should the settings be to enable the server to start? >Looks like something went wrong in setup, and it just ignored "ldap" and used the default "nobody". The config is pretty well hosed now and you''re best off by just starting over.> -- > Fedora-directory-users mailing list > Fedora-directory-users@redhat.com > https://www.redhat.com/mailman/listinfo/fedora-directory-users >