Skip to Content.
Sympa Menu

en - RE: [sympa-users] [sympa-dev] WWSYMPA.CGI problem

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Venkat R <address@concealed>
  • To: <address@concealed>
  • Cc: <address@concealed>, <address@concealed>
  • Subject: RE: [sympa-users] [sympa-dev] WWSYMPA.CGI problem
  • Date: Tue, 12 Mar 2013 15:29:05 -0400

I am seeing some light at the end of the tunnel but still a bit to go. With these changes, I am getting this error. I am trying with a simple cgi script to make sure the problem is not related to the wwsympa.cgi scrit. I see the content of the test.fcgi is coming to apache but the connection rest by peer is causing the 500 error eventually on the Browser. Anyone seen this and got a resolution?

Premature end of script headers: test.fcgi
Content-type: text/html


 <html>
 <head>
 <title>A Simple Perl CGI</title>
 </head>
 <body>
 <h1>A Simple Perl CGI</h1>
 <p>Hello World</p>
 </body>
</html>
 [Tue Mar 12 12:20:38 2013] [warn] [client ::1] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
[Tue Mar 12 12:20:38 2013] [error] [client ::1] Premature end of script headers: test.fcgi



> Date: Tue, 12 Mar 2013 16:11:52 +0100
> From: address@concealed
> To: address@concealed
> CC: address@concealed; address@concealed
> Subject: Re: [sympa-users] [sympa-dev] WWSYMPA.CGI problem
>
> Hello,
>
> i got 12.04.02 ubuntu precise
>
> with getent passwd i got the uid of the apache user , with getent group
> i got the gid of the users group.
>
> i had to edit
> vi /usr/sbin/apache2ctl
>
> : line 110 install -d -o ${APACHE_RUN_USER:-sympa}
>
> vi /etc/apache2/envvars
>
> : export APACHE_RUN_USER=sympa
> : export APACHE_RUN_GROUP=sympa
>
> then give any apache (www-data ) owned file to sympa uid/group
> cd /
> find . -uid 33 -exec chown sympa {} \;
> find . -gid 33 -exec chgrp sympa {} \;
>
> i got fastcgi not fcgi mod:
>
> vi /etc/apache2/mods-enabled/fastcgi.conf
> : AddHandler fastcgi-script .fcgi
>
> relevant vhost config:
> ScriptAlias /sympa /var/www/listen/cgi-bin/wwsympa.fcgi (owned by sympa)
> ScriptAlias /sympahome /home/sympa/bin
> ScriptAlias /cgi-bin/ /var/www/listen/cgi-bin/
>
> Alias /wwsicons /home/sympa/static_content/icons
> Alias /wws /var/www/listen/cgi-bin/wwsympa-wrapper.fcgi
> Alias /static-sympa /home/sympa/static_content
>
> i guess its not relevant, but
> var/www/listen/cgi-bin/wwsympa-wrapper.fcgi content is:
>
> #!/bin/bash
> # Path to your real wwsympa.fcgi
> exec /home/sympa/bin/wwsympa.fcgi
>
> owned by root
>
>
> my sympa version is latest from the webpage, patched for certificates.
>
>
>



Archive powered by MHonArc 2.6.19+.

Top of Page