Accéder au contenu.
Menu Sympa

fr - [sympa-fr] Problème pour interfacer Sympa avec Apache

Objet : Pour les administrateurs de serveurs de listes utilisant le logiciel Sympa

Archives de la liste

Chronologique Discussions  
  • From: Hedy Dargère <adresse@cachée>
  • To: adresse@cachée
  • Subject: [sympa-fr] Problème pour interfacer Sympa avec Apache
  • Date: Tue, 20 Dec 2011 10:30:43 +0100

Bonjour,

J'ai un serveur web sous Debian, sur lequel tourne ISPConfig pour faciliter la gestion de ce serveur.
J'essaie d'installer Sympa dessus, mais l'étape de la configuration d'Apache n'aboutit pas.
Malgré de nombreux essais, je ne parviens pas à accéder à l'interface web.
Sympa quand à lui semble tourner correctement (pas d'erreur au lancement...)

Je pense que le pb vient de la configuration du vhost, mais je ne sais pas trop comment résoudre le pb.

J'ai sur ce serveur plusieurs sites web qui tournent.
Je souhaite lier Sympa à l'un d'eux : transition.la

Sous ISPConfig, les fichiers web du domaine sont stockés dans /var/www/transition.la/web
Par défaut, la configuration Apache de ce domaine est la suivante (j'ai ajouté à la fin, les lignes nécessaires à Sympa) :

#####################################

<Directory /var/www/transition.la>
AllowOverride None
Order Deny,Allow
Deny from all
</Directory>

<VirtualHost *:80>
DocumentRoot /var/www/transition.la/web

ServerName transition.la
ServerAlias www.transition.la
ServerAdmin adresse@cachée

ErrorLog /var/log/ispconfig/httpd/transition.la/error.log


ErrorDocument 400 /error/400.html
ErrorDocument 401 /error/401.html
ErrorDocument 403 /error/403.html
ErrorDocument 404 /error/404.html
ErrorDocument 405 /error/405.html
ErrorDocument 500 /error/500.html
ErrorDocument 502 /error/502.html
ErrorDocument 503 /error/503.html

<IfModule mod_ssl.c>
</IfModule>
<Directory /var/www/transition.la/web>
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all

# ssi enabled
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
Options +Includes
</Directory>
<Directory /var/www/clients/client2/web10/web>
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all

# ssi enabled
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
Options +Includes
</Directory>

<IfModule mod_ruby.c>
<Directory /var/www/transition.la/web>
Options +ExecCGI
</Directory>
RubyRequire apache/ruby-run
#RubySafeLevel 0
<Files *.rb>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
</Files>
<Files *.rbx>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
</Files>
<IfModule mod_python.c>
<Directory /var/www/transition.la/web>
AddHandler mod_python .py
PythonHandler mod_python.publisher
PythonDebug On
</Directory>
</IfModule>

# cgi enabled
<Directory /var/www/clients/client2/web10/cgi-bin>
Order allow,deny
Allow from all
</Directory>
ScriptAlias /cgi-bin/ /var/www/clients/client2/web10/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
# suexec enabled
SuexecUserGroup web10 client2
# Clear PHP settings of this website
<FilesMatch "\.ph(p3?|tml)$">
SetHandler None
</FilesMatch>
# php as fast-cgi enabled
# For config options see: http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html
<IfModule mod_fcgid.c>
IdleTimeout 300
ProcessLifeTime 3600
# MaxProcessCount 1000
DefaultMinClassProcessCount 0
DefaultMaxClassProcessCount 100
IPCConnectTimeout 3
IPCCommTimeout 360
BusyTimeout 300
</IfModule>
<Directory /var/www/transition.la/web>
AddHandler fcgid-script .php .php3 .php4 .php5
FCGIWrapper /var/www/php-fcgi-scripts/web10/.php-fcgi-starter .php
Options +ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<Directory /var/www/clients/client2/web10/web>
AddHandler fcgid-script .php .php3 .php4 .php5
FCGIWrapper /var/www/php-fcgi-scripts/web10/.php-fcgi-starter .php
Options +ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>


# add support for apache mpm_itk
<IfModule mpm_itk_module>
AssignUserId web10 client2
</IfModule>

# add support for apache mpm_itk
<IfModule mpm_itk_module>
AssignUserId web10 client2
</IfModule>

<IfModule mod_dav_fs.c>
# Do not execute PHP files in webdav directory
<Directory /var/www/clients/client2/web10/webdav>
<FilesMatch "\.ph(p3?|tml)$">
SetHandler None
</FilesMatch>
</Directory>
# DO NOT REMOVE THE COMMENTS!
# IF YOU REMOVE THEM, WEBDAV WILL NOT WORK ANYMORE!
# WEBDAV BEGIN
# WEBDAV END
</IfModule>

<Directory /usr/lib/cgi-bin/sympa>
SetHandler fastcgi-script
</Directory>
Alias /static-sympa /var/lib/sympa/static_content
Alias /icons /usr/share/sympa/icons
<Directory /var/lib/sympa/static_content>
Order allow,deny
Allow from all
</directory>
ScriptAlias /wws /usr/lib/cgi-bin/sympa/wwsympa.fcgi
</VirtualHost>


#####################################

Seulement ça ne fonctionne pas : j'ai une erreur 403 quand je vais sur www.transition.la/wws
Mon souhait, à terme, est de faire tourner Sympa directement à la racine de www.transition.la (pas en sous-domaine ni dans le répertoire /wws...)
Mais en attendant je colle à la doc pour faire marcher tout ça !

Dans le fichier log, j'ai ceci :

[Tue Dec 20 10:28:40 2011] [error] [client 81.*****] client denied by server configuration: /usr/lib/cgi-bin/sympa/wwsympa.fcgi
[Tue Dec 20 10:28:40 2011] [error] [client 81.*****] client denied by server configuration: /usr/lib/cgi-bin/sympa/wwsympa.fcgierror


Au niveau des droits, voilà ce que j'ai :


# ls -al /var/www/transition.la/web
total 36
drwx--x--- 4 web10 client2 4096 15 déc. 19:28 .
drwxr-x--x 6 web10 client2 4096 20 déc. 01:11 ..
drwxr-xr-x 2 web10 client2 4096 15 déc. 19:28 error
-rwxr-xr-- 1 web10 client2 7358 15 déc. 19:28 favicon.ico
-rwxr-xr-- 1 web10 client2 26 15 déc. 19:28 .htaccess
-rwxr-xr-- 1 web10 client2 1861 15 déc. 19:28 index.html
-rwxr-xr-- 1 web10 client2 24 15 déc. 19:28 robots.txt
drwxr-xr-x 2 root root 4096 15 déc. 19:28 stats


Et :

# ls -al /var/lib/sympa/static_content
total 20
drwxrwx--x 5 sympa sympa 4096 20 déc. 01:11 .
drwxrwx--x 8 sympa sympa 4096 20 déc. 01:10 ..
drwxr-xr-x 2 sympa sympa 4096 20 déc. 01:11 css
drwxrwx--x 2 sympa sympa 4096 20 déc. 01:10 icons
-rw-r----- 1 sympa sympa 0 20 déc. 01:11 index.html
drwxrwxr-x 2 sympa sympa 4096 20 déc. 01:11 pictures


Avez-vous une idée de ce qu'il se passe ?

Merci,
Hedy



  • [sympa-fr] Problème pour interfacer Sympa avec Apache, Hedy Dargère, 20/12/2011

Archives gérées par MHonArc 2.6.19+.

Haut de le page