I'm trying web2ldap. I have installed web2ldap-cgi and web2ldap rpm from
suse 8.1. I have enabled mod_fastcgi.c in /etc/sysconfig/apache
(HTTPD_SEC_MOD_FASTCGI=yes). Then I add this to the configuration of
apache, per the web2ldap instructions in
/usr/lib/web2ldap/htdocs/install.html:
<IfModule mod_fastcgi.c>
ScriptAlias /web2ldap-fcgi/ "/usr/lib/web2ldap/fcgi/"
FastCgiServer /usr/lib/web2ldap/fcgi/web2ldap.py
AddHandler fastcgi-script .py
</Directory>
</IfModule>
At this point, when I reaload apache, I start seeing this line repeated
every few seconds in the "/var/log/httpd/error_log" file:
[Thu May 8 23:49:40 2003] [warn] FastCGI: server "/usr/lib/web2ldap/fcgi/web2ldap.py" (pid 15751) terminated by calling exit with status '1'
[Thu May 8 23:49:45 2003] [warn] FastCGI: server "/usr/lib/web2ldap/fcgi/web2ldap.py" (pid 15752) terminated by calling exit with status '1'
[Thu May 8 23:49:50 2003] [warn] FastCGI: server "/usr/lib/web2ldap/fcgi/web2ldap.py" (pid 15753) terminated by calling exit with status '1'
If I try to browse to "http://localhost/web2ldap-fcgi/web2ldap.py" I also
see:
[Thu May 8 23:49:55 2003] [warn] FastCGI: server "/usr/lib/web2ldap/fcgi/web2ldap.py" (pid 15754) terminated by calling exit with status '1'
Traceback (most recent call last):
File "/usr/lib/web2ldap/fcgi/web2ldap.py", line 14, in ?
import sys,os,time,fcgi,threading
ImportError: No module named fcgi
[Thu May 8 23:49:58 2003] [error] [client 127.0.0.1] Premature end of script headers: /usr/lib/web2ldap/fcgi/web2ldap.py
[Thu May 8 23:50:00 2003] [warn] FastCGI: server "/usr/lib/web2ldap/fcgi/web2ldap.py" (pid 15756) terminated by calling exit with status '1'
I also see on the instructions this requirements:
Additional web server software depends on the running mode:
|Running mode | web server | SSL support
+---------------+--------------------------------+--------------------
|FastCGI server | Apache with Apache module |Apache SSL or Apache
| | mod_fastcgi | with mod_ssl
| | and the Python module fcgi.py. | Apache SSL or Apache
+---------------+--------------------------------+--------------------
| stand-alone | built-in | requires module
| M2Crypto
So it seem that the Python module "fcgi.py" is needed, but it has not been
provided by SuSE (nowhere on the 8.1 DVD).
Stand alone mode doesn't work either, it stays put and nothing shows. I
start the server thus:
| nimrodel:~ # /usr/lib/web2ldap/sbin/web2ldap.py -d off
| Read MIME-type mapping from file /etc/mime.types.
| Accepted IP address ranges: 127.0.0.1/255.0.0.0
| Running mode: multi-threaded
| SSL: disabled
| Changed to UID 30.
| Started web server on http://localhost:1760/web2ldap
|
| Point your favourite browser to
|
| http://localhost:1760/web2ldap
|
| to access the web application.
So I browse to http://localhost:1760/web2ldap and it shows nothing for
ages ("request sent"). Using iptraf I can see that some packets were
indeed transferred at the start, then nothing.
So... Has anybody set it working? How?
--
Cheers,
Carlos Robinson