Skip to Content.
Sympa Menu

en - [sympa-users] Re: Re:Wwsympa problems on Debian etch

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Olivier Salaün - CRU <address@concealed>
  • To: address@concealed
  • Cc: address@concealed
  • Subject: [sympa-users] Re: Re:Wwsympa problems on Debian etch
  • Date: Fri, 25 May 2007 10:14:36 +0200

address@concealed wrote:
Olivier,
thanks for your prompt and accurate answer. Let's go step by step:

1. CSS Problem:
  
you check the page sources, you'll see that the CSS URL is
http:///css/style.css, which seems incorrect. This link is defined by
the 'css_url' sympa.conf URL ; it might be incorrect. If css_url
parameter is not defined, then the default value is based on the
'static_cintent_url' parameter : $static_content_url/css.
    
I am a little confused here. I thought that static pages were introduced in Sympa 5.3, not in sympa 5.2.3. 
That's right, it was introduced in Sympa 5.3a.8
I checked for style.css files in my system and I found some, but none related to Sympa. So, what address should I provide in 'css_url' option?, and where do I got the files ?
  
I don't remember what is your server URL, let's say it is http://lists.upc.es/sympa
Then your sympa.conf should include :
css_url /static_content/css
First make sure that you have this directive set in your Apache config file :
(check http://www.sympa.org/wiki/manual/web-interface#installing_wwsympa.fcgi_in_your_apache_server)
Alias /static-sympa /home/sympa/static_content
2. Apache VARIABLES
  
All links are constructed as follows : $base_url+$path_cgi+... where $base_url is based on the HTTP_HOST variable provided by Apache and
$path_cgi is based on the PATH_INFO environment variable provided by Apache.

It sounds like your Apache does not provide HTTP_HOST and PATH_INFO.
Misconfiguration ? Proxy mode ?...
    
Here things seem to be more complicated. I created a perl program that prints out all variables received by the server, and put it in place of wwsympa.fcgi.
If wwsympa.fcgi is called "directly", the received variables are as follows:
SCRIPT_NAME --> /wws
SERVER_NAME --> www.isebi.org
SERVER_ADMIN --> webmaster@localhost
[...]
SERVER_PORT --> 80
[...]
REMOTE_HOST --> apofis.upc.es
DOCUMENT_ROOT --> /var/www/
HTTP_HOST --> www.isebi.org
----
As you can see, HTTP_HOST is set to the correct value, but PATH_INFO is not present. 
Sorry, I did a mistake in my previous email : $path_cgi is based on SCRIPT_NAME, not on PATH_INFO.
However, because wwsympa (the real one) must be run with "sympa.sympa"
uid, I was using the "sudo" method. Now, if wwsympa is called through
wwsympa_sudo_wrapper.pl, the received variables are as follows:

HOME --> /var/www
LOGNAME --> sympa
SUDO_GID --> 33
PATH -->
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
SUDO_USER --> www-data
SHELL --> /bin/sh
TERM --> unknown
SUDO_COMMAND --> /usr/lib/cgi-bin/sympa/wwsympa.fcgi
USER --> sympa
SUDO_UID --> 33

 I think that this is the expected behaviour. Does this mean that "sudo" cannot be used to run wwsympa.fcgi with sympa.sympa UID and another method must be tried ?.
  
Does it mean that you don't get HTT_HOST and SCRIPT_NAME environment variables when using the wwsympa_sudo_wrapper.pl ?
We don't get this behavior with sudo. Please provide more informations on your configuration :
  • OS ?
  • Apache version ? any specific modules used ?
  • provide all sympa-related Apache directives





Archive powered by MHonArc 2.6.19+.

Top of Page