Skip to Content.
Sympa Menu

en - [sympa-users] Re: problems to install WWSympa in Apache.

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: maximatt <address@concealed>
  • To: sympa-users <address@concealed>
  • Subject: [sympa-users] Re: problems to install WWSympa in Apache.
  • Date: Mon, 20 Apr 2009 11:07:12 -0300

hi...

i have a litle step.... but i still have problems...

i resolv the creation of dynamic instance of fastcgi.. now i receive the following message:

[Mon Apr 20 10:55:37 2009] [warn] FastCGI: (dynamic) server "/var/www/html/_sympa_/wwsympa.fcgi" started (pid 28995)

but i still having the following error:

Apr 20 10:55:38 maximatt wwsympa[28995]: WWSympa started
Apr 20 10:55:38 maximatt wwsympa[28995]: [robot ] [client 100.0.4.145] Config error: wwsympa should run with UID 12358 (instead of 48). *** Switching to maintenance mode. ***
Apr 20 10:55:38 maximatt wwsympa[28995]: [robot maximatt.test.org] [client 100.0.4.145] main::do_maintenance() do_maintenance()

these are my configurations for apache :

file "sympa.conf":

NameVirtualHost *:80
<VirtualHost *:80>
    SuexecUserGroup sympa sympa
    AddHandler fastcgi-script .fcgi
    AddDefaultCharset UTF-8
    <Directory "/var/www/html/_sympa_">
        AllowOverride None
        Options FollowSymLinks +ExecCGI
        Order allow,deny
        Allow from all
    </Directory>
    ScriptAlias /sympa /var/www/html/_sympa_/wwsympa.fcgi
    Alias /static-sympa /home/sympa/static_content
</VirtualHost>

i set sympa uid and guid to "/home/sympa" and "/var/www/html/_sympa" with sticky-bit for ".fcgi" files involved.

thanks!

2009/4/17 maximatt <address@concealed>
hi...

i cannot run sympa.. if someone could help me..

These are the context:

    - Red Hat LE 4 with these packages:
   
        # rpm -qa | egrep  "httpd|perl"
        httpd-2.0.52-9.ent
        httpd-manual-2.0.52-9.ent
        httpd-devel-2.0.52-9.ent
        perl-5.8.5-12
        :
        (list of perl modules installed)
        :
       
    - Sympa v5.4.7 intalled under "/home/sympa" and after setting sympa uid and guid as property of them (chown -R sympa:sympa /home/sympa).

    - module FastCGI v2.4.6 installed like:
       
        # gunzip mod_fastcgi-2.4.6.tar.gz
        # tar -xvf mod_fastcgi-2.4.6.tar
        # cd mod_fastcgi-2.4.6
        # cp Makefile.AP2 Makefile
        # make top_dir=/etc/httpd/
        # make top_dir=/etc/httpd/ install

I modify "/etc/sympa.conf" and "/etc/wwsympa.conf" with the values that sympa needs to work, and these are the log when sympa starts:

   Apr 17 11:59:15 maximatt sympa[17006]: Configuration file read, default log level 0
   Apr 17 11:59:15 maximatt sympa[17008]: Sympa 5.4.7 started
   Apr 17 11:59:15 maximatt sympa[17006]: Server started for all, pid 17008
   Apr 17 11:59:15 maximatt sympa:  succeeded
   Apr 17 11:59:17 maximatt root: Configuration file read, default log level 0
   Apr 17 11:59:17 maximatt archived[17016]: archived 5.4.7 Started
   Apr 17 11:59:17 maximatt sympa:  succeeded
   Apr 17 11:59:18 maximatt root: Configuration file read, default log level 0
   Apr 17 11:59:18 maximatt bounced[17024]: bounced Started
   Apr 17 11:59:18 maximatt sympa:  succeeded
   Apr 17 11:59:19 maximatt task_manager[17032]: Configuration file read, default log level 0
   Apr 17 11:59:19 maximatt sympa:  succeeded
   Apr 17 11:59:19 maximatt task_manager[17032]: main::create() creation of /home/sympa/spool/task/1239980359..eval_bouncers._global
   Apr 17 11:59:19 maximatt task_manager[17032]: main::create() with model /home/sympa/bin/etc/global_task_models/eval_bouncers.daily.task
   Apr 17 11:59:19 maximatt task_manager[17032]: main::create() creation of /home/sympa/spool/task/1239980359..purge_orphan_bounces._global
   Apr 17 11:59:19 maximatt task_manager[17032]: main::create() with model /home/sympa/bin/etc/global_task_models/purge_orphan_bounces.monthly.task

To configure Apache ("/etc/httpd/conf.d/sympa.conf"), first i try with these parameters (INSTALL file in sympa src):

    Alias /static-sympa /home/sympa/static_content
    ScriptAlias /sympa /home/sympa/bin/wwsympa-wrapper.fcgi
   
    <Directory /home/sympa/bin/>
    AddDefaultCharset utf-8
    </Directory>
   
    <IfModule mod_fcgid.c>
    AddHandler fcgid-script .fcgi
    </IfModule>

and going to "http://maximatt.test.org/sympa" wwsympa are displayed in maintenance mode:

   Apr 17 12:05:14 maximatt wwsympa[17105]: [robot ] [client 100.0.4.145] Config error: wwsympa should run with UID 12358 (instead of 48). *** Switching to maintenance mode. ***

So.. i need to run cgi script under sympa user... so i try to configure suexec like "http://www.sympa.org/manual/web-interface" says:
so... in my last try.. i keep with the following parametes in "sympa.conf":

LoadModule fastcgi_module modules/mod_fastcgi.so

<IfModule mod_fastcgi.c>
##    FastCgiWrapper /usr/sbin/suexec
##    FastCgiConfig  -singleThreshold 30 -minProcesses 2 -restart -idle-timeout 400 -killInterval 200 -autoUpdate -pass-header HTTP_AUTHORIZATION
     # Path to suexec executable
#    FastCgiIpcDir /tmp/fastcgi
#    FastCgiIpcDir /etc/httpd/logs/fastcgi
     # -restart kills crashed applications
     FastCgiConfig -restart
</IfModule>

<VirtualHost *>
    SuexecUserGroup sympa sympa

   <Directory "/var/www/_sympa_/">
        AllowOverride None
        Options ExecCGI
        Order allow,deny
        Allow from all
        AddHandler fastcgi-script .fcgi
    </Directory>

#    Alias /wwsicons /usr/share/sympa/icons
    Alias /sympa /var/www/_sympa_/wwsympa.fcgi
    Alias /static-sympa /home/sympa/static_content
   
</VirtualHost>

where "/var/www/_sympa_/wwsympa.fcgi" (with sympa uid:guid and 755 permissions) contents the following :

 #!/bin/bash
 exec /home/sympa/bin/wwsympa.fcgi
 #exec /home/sympa/bin/wwsympa-wrapper.fcgi

but.. i give the following response:

- web navigator:
 
     Internal Server Error

     The server encountered an internal error or misconfiguration and was unable to complete your request.

- apache error log:

    [Fri Apr 17 12:18:00 2009] [crit] (13)Permission denied: FastCGI: can't create (dynamic) server "/var/www/_sympa_/wwsympa.fcgi": bind() failed [/etc/httpd/logs/fastcgi  /dynamic/9dc8f77a6f2185a70de0d521ab8cd718]
    [Fri Apr 17 12:18:05 2009] [alert] [client 100.0.4.145] (13)Permission denied: FastCGI: failed to connect to (dynamic) server "/var/www/_sympa_/wwsympa.fcgi": something is seriously wrong, any chance the socket/named_pipe directory was removed?, see the FastCgiIpcDir directive
   [Fri Apr 17 12:18:05 2009] [error] [client 100.0.4.145] FastCGI: incomplete headers (0 bytes) received from server "/var/www/_sympa_/wwsympa.fcgi"


I can't set yet tyhe right value of FastCgiIpcDir paremeter...

other issues... if i ser the following parameter:

   FastCgiWrapper /usr/sbin/suexec

i receive the following response when i try to restart httpd server:

# service httpd restart
Parando httpd:                                             [  OK  ]
Iniciando httpd: Syntax error on line 4 of /etc/httpd/conf.d/sympa.conf:
FastCgiWrapper: "/usr/sbin/suexec" execute access for server (uid -1, gid -1) failed: execute not allowed
                                                           [FALLÓ]

... in resume... i don't know what more to try :(

can anybody helme? :(

thanks in advance :)

Salu2!!




--
Salu2 ;)



Archive powered by MHonArc 2.6.19+.

Top of Page