Accéder au contenu.
Menu Sympa

fr - RE: [sympa-fr] Problème de configuration d'apache 2.4 et sympa

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

Archives de la liste

Chronologique Discussions  
  • From: Dominique LALOT <adresse@cachée>
  • To: adresse@cachée, albert <adresse@cachée>
  • Cc: adresse@cachée
  • Subject: RE: [sympa-fr] Problème de configuration d'apache 2.4 et sympa
  • Date: Mon, 12 Jan 2015 15:56:02 +0100 (CET)

Bonjour,

Je préfère utiliser le module fcgid. C'est rapide à essayer.
a2enmod fcgid

Alias /sympa-static /home/sympa/static_content
Alias /static-sympa /home/sympa/static_content
Alias /listes-css /home/sympa/etc/univ-amu.fr/css
ErrorLog /var/log/apache2/error.log
LogLevel error

<Location /wws>
    SetHandler fcgid-script
    Require all granted
</Location>
   #ScriptAlias /wws /home/sympa/bin/wwsympa-wrapper.fcgi
# pas de wrapper, on tourne en user sympa!
ScriptAlias /wws /home/sympa/bin/wwsympa.fcgi

et

export APACHE_RUN_USER=sympa
export APACHE_RUN_GROUP=sympa

Bonne chance

Dom (un autre..)

albert <adresse@cachée> wrote:
adresse@cachée>">

Re Bonjour,

 

Alors, je suis sous ubuntu 14.04 serveur

j'ai installé sympa à partir des sources (il fonctionnait très bien sous 12.04)

sympa est installé sous /home/sympa

 

 

mon sympa.conf :

 

   FastCgiServer /home/sympa/bin/wwsympa-wrapper.fcgi -processes 2

<VirtualHost *:80>
    ServerName listes.xxx.fr
    ServerAdmin adresse@cachée
        Redirect permanent / https://listes.xxx.fr/
    ScriptAlias /sympa /home/sympa/bin/wwsympa-wrapper.fcgi
#    DirectoryIndex /sympa/
#    SuExecUserGroup sympa sympa
</VirtualHost>

<VirtualHost *:443>
        ServerName listes.xxx.fr
        ServerAdmin adresse@cachée

    <Directory />
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Require all granted
                RedirectMatch ^/$ /sympa
    </Directory>


    ScriptAlias /sympa /home/sympa/bin/wwsympa-wrapper.fcgi
    DirectoryIndex sympa/
    SuExecUserGroup sympa sympa
    DocumentRoot /var/www


    <Location /sympa>
    SetHandler fastcgi-script
    AddHandler fastcgi-script .fcgi .fpl .pl
    Options +ExecCGI
    Options +FollowSymLinks
        Require all granted

    </Location>

    Alias /wwsicons /usr/share/sympa/icons
    Alias /static-sympa /home/sympa/static_content

SSLEngine on
        SSLCertificateFile /etc/apache2/ssl/xxx.crt
        SSLCertificateKeyFile /etc/apache2/ssl/monserveur.key
        SSLCACertificateFile /etc/apache2/ssl/xxx.pem
        SSLVerifyClient None

</VirtualHost>

 

mes modules activés :

access_compat actions alias auth_basic authn_core authn_file authz_core authz_groupfile authz_host authz_svn authz_user autoindex cgi dav dav_svn deflate dir env expires fastcgi filter headers include lbmethod_byrequests mime mpm_prefork negotiation perl php5 proxy proxy_balancer proxy_html proxy_http reqtimeout rewrite security2 setenvif slotmem_shm socache_shmcb ssl status suexec unique_id vhost_alias xml2enc

 

mon envars :

# envvars - default environment variables for apache2ctl

# this won't be correct after changing uid
unset HOME

# for supporting multiple apache2 instances
if [ "${APACHE_CONFDIR##/etc/apache2-}" != "${APACHE_CONFDIR}" ] ; then
        SUFFIX="-${APACHE_CONFDIR##/etc/apache2-}"
else
        SUFFIX=
fi

# Since there is no sane way to get the parsed apache2 config in scripts, some
# settings are defined via environment variables and then used in apache2ctl,
# /etc/init.d/apache2, /etc/logrotate.d/apache2, etc.
export APACHE_RUN_USER=www-data
export APACHE_RUN_GROUP=www-data
# temporary state file location. This might be changed to /run in Wheezy+1
export APACHE_PID_FILE=/var/run/apache2/apache2$SUFFIX.pid
export APACHE_RUN_DIR=/var/run/apache2$SUFFIX
export APACHE_LOCK_DIR=/var/lock/apache2$SUFFIX
# Only /var/log/apache2 is handled by /etc/logrotate.d/apache2.
export APACHE_LOG_DIR=/var/log/apache2$SUFFIX

## The locale used by some modules like mod_dav
export LANG=C
## Uncomment the following line to use the system default locale instead:
#. /etc/default/locale

export LANG

## The command to get the status for 'apache2ctl status'.
## Some packages providing 'www-browser' need '--dump' instead of '-dump'.
#export APACHE_LYNX='www-browser -dump'

## If you need a higher file descriptor limit, uncomment and adjust the
## following line (default is 8192):
#APACHE_ULIMIT_MAX_FILES='ulimit -n 65536'

## If you would like to pass arguments to the web server, add them below
## to the APACHE_ARGUMENTS environment.
#export APACHE_ARGUMENTS=''

## Enable the debug mode for maintainer scripts.
## This will produce a verbose output on package installations of web server modules and web application
## installations which interact with Apache
#export APACHE2_MAINTSCRIPT_DEBUG=1

 

 

Merci de votre aide ;-)

 

 

 

 

 


---
Dominique LALOT
Responsable Pôle Environnement Numérique DOSI
Université d'Aix-Marseille
http://annuaire.univ-amu.fr/showuser.php?uid=lalot




Archives gérées par MHonArc 2.6.19+.

Haut de le page