Sympa mailing - displays "text"

Discussion in 'Installation/Configuration' started by jbonlinea, Jun 25, 2019.

  1. jbonlinea

    jbonlinea Member

    Hi guys

    I need a mailing list and naturally looked at mailman as it was installed along the stretch perfect server with IPSC I'm using. After some hasle, I managed to have it up an running (see here for a mini tutorial).
    Lately I looked at sympa, as I understood it is more advanced for multi domain. I thus folowed the instalation procedure here, but without success yet, althought I could see on the forum at leat someone manage to set it up along ISPC.

    Sympa has a WebUI I'm suposed to acces using however I have a sort of text page with 24 000 lines displayed instead. you'll find the first few lines below :
    # -*- indent-tabs-mode: nil; -*-
    # vim:ft=perl:et:sw=4
    # $Id: 12833 2016-06-08 08:30:27Z sikeda $
    # Sympa - SYsteme de Multi-Postage Automatique
    # Copyright (c) 1997, 1998, 1999 Institut Pasteur & Christophe Wolfhugel
    # Copyright (c) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    # 2006, 2007, 2008, 2009, 2010, 2011 Comite Reseau des Universites
    # Copyright (c) 2011, 2012, 2013, 2014, 2015, 2016 GIP RENATER
    # This program is free software; you can redistribute it and/or modify
    # it under the terms of the GNU General Public License as published by
    # the Free Software Foundation; either version 2 of the License, or
    # (at your option) any later version.
    # This program is distributed in the hope that it will be useful,
    # but WITHOUT ANY WARRANTY; without even the implied warranty of
    # GNU General Public License for more details.
    # You should have received a copy of the GNU General Public License
    # along with this program.  If not, see <>.
    ## Copyright 1999 Comité Réseaux des Universités
    ## web interface to Sympa mailing lists manager
    ## Sympa:
    ## Authors :
    ##           Serge Aumont <sa AT>
    ##           Olivier Salaün <os AT>
    use strict;
    ##use warnings;
    use lib split(/:/, $ENV{SYMPALIB} || ''), '/usr/share/sympa/lib';
    use Archive::Zip qw();
    use DateTime;
    use DateTime::Format::Mail;
    use Digest::MD5;
    use Encode qw();
    use English qw(-no_match_vars);
    use MIME::EncWords;
    use MIME::Lite::HTML;
    use POSIX qw();
    use Time::Local qw();
    use URI;
    use Data::Dumper;    # tentative
    BEGIN { eval 'use Crypt::OpenSSL::X509'; }
    use Sympa;
    use Sympa::Admin;
    use Sympa::Alarm;
    use Sympa::Archive;
    use Sympa::Auth;
    use Sympa::Bulk;
    use Conf;
    use Sympa::ConfDef;
    use Sympa::Constants;
    use Sympa::Crash Hook => \&_crash_handler;    # Show traceback.
    use Sympa::Database;
    use Sympa::DatabaseManager;
    use Sympa::Family;
    use Sympa::HTMLSanitizer;
    use Sympa::Language;
    use Sympa::List;
    use Sympa::ListOpt;
    use Sympa::Log;
    use Sympa::Marc::Search;
    use Sympa::Message;
    use Sympa::Regexps;
    use Sympa::Report;
    use Sympa::Request;
    use Sympa::Robot;
    use Sympa::Scenario;
    use Sympa::Session;
    use Sympa::SharedDocument;
    use Sympa::Spindle::ResendArchive;
    use Sympa::Spool::Archive;
    use Sympa::Spool::Auth;
    use Sympa::Spool::Held;
    use Sympa::Spool::Incoming;
    use Sympa::Spool::Moderation;
    use Sympa::Template;
    use Sympa::Ticket;
    use Sympa::Tools::Data;
    use Sympa::Tools::File;
    use Sympa::Tools::Password;
    use Sympa::Tools::Text;
    use Sympa::Tools::WWW;
    use Sympa::Topic;
    use Sympa::Tracking;
    use Sympa::User;
    ## WWSympa librairies
    my %options;
    my $sympa_conf_file = Sympa::Constants::CONFIG;
    # Used via the Sympa::Plugin interface
    our $list;
    our $param = {};
    our $robot_id;
    our $session;
    our $plugins;
    my $loop = 0;
    my ($robot, $robot_object);
    my $pinfo;
    my $ip;
    my $rss;
    my $ajax;
    my $allow_absolute_path;    #FIXME: to be removed in the future.
    my @other_include_path;     #FIXME: ditto.
    ## Load sympa config
    unless (Conf::load()) {
        printf STDERR
            "Unable to load sympa configuration, file %s or one of the vhost robot.conf files contain errors. Exiting.\n",
        exit 1;
    # Open log
    my $log = Sympa::Log->instance;
    $log->{level} = $Conf::Conf{'log_level'};
    $log->openlog($Conf::Conf{'log_facility'} || $Conf::Conf{'syslog'},
    ## Start plugins
    if (eval "require Sympa::Plugin::Manager") {
        $plugins = Sympa::Plugin::Manager->new(application => 'website');
    Sympa::Alarm->instance->{use_bulk} = 1;
    if ($Conf::Conf{'use_fast_cgi'}) {
        require CGI::Fast;
    } else {
        require CGI;


    I create a vhost in ISPC, with its SSL certificates
    and my dns for A and MX point toward my server

    At firstI had to try many apache config to get rid of the error 500 ; these are some of the guidance I used here, here, or here and end up with that, with the possible variants by changing the comented lines to their siblings
    <IfModule mod_fcgid.c>
        Alias /static-sympa /var/lib/sympa/static_content
        <Directory /var/lib/sympa/static_content>
            Require all granted
    # ScriptAlias /sympasoap /usr/lib/cgi-bin/sympa/sympa_soap_server-wrapper.fcgi
     ScriptAlias /wws /usr/lib/cgi-bin/sympa/wwsympa-wrapper.fcgi
    # ScriptAlias /wws /usr/lib/cgi-bin/sympa/wwsympa.fcgi 
        <Location /wws>
           SetHandler fcgid-script
           Options ExecCGI
       <Directory /usr/lib/cgi-bin/sympa>
            Require all granted
     #   RewriteEngine On
     #  RewriteRule ^/$ /wws/lists [R=301,L]

    I do belive sympa is running
    [email protected]:/etc/sympa# systemctl status sympa
    ● sympa.service - SYMPA mailing list manager
       Loaded: loaded (/lib/systemd/system/sympa.service; enabled; vendor preset: enabled)
       Active: active (running) since Tue 2019-06-25 13:25:20 CEST; 26min ago
         Docs: man:sympa_msg(8)
      Process: 17609 ExecStart=/usr/lib/sympa/bin/ (code=exited, status=0/SUCCESS)
      Process: 17606 ExecStartPre=/bin/chown -R sympa:sympa /run/sympa (code=exited, status=0/SUCCESS)
      Process: 17605 ExecStartPre=/bin/mkdir -p /run/sympa (code=exited, status=0/SUCCESS)
     Main PID: 17623 (
        Tasks: 1 (limit: 4915)
       CGroup: /system.slice/sympa.service
               └─17623 /usr/bin/perl /usr/lib/sympa/bin/
    Jun 25 13:25:16 vpsXXXXXX systemd[1]: Starting SYMPA mailing list manager...
    Jun 25 13:25:20 XXXXXX[17609]: Use of uninitialized value $host in hash element at /usr/share/sympa/lib/ line 2392.
    Jun 25 13:25:20 vpsXXXXXX[17609]: Use of uninitialized value $host in hash element at /usr/share/sympa/lib/ line 2404.
    Jun 25 13:25:20 vpsXXXXXX sympa_msg[17609]: info main::_load() Configuration file read, default log level 0
    Jun 25 13:25:20 vpsXXXXXX[17609]: Use of uninitialized value $host in hash element at /usr/share/sympa/lib/ line 2392.
    Jun 25 13:25:20 vpsXXXXXX[17609]: Use of uninitialized value $host in hash element at /usr/share/sympa/lib/ line 2404.
    Jun 25 13:25:20 vpsXXXXXX sympa_msg[17609]: notice Sympa::Process::daemonize() Starting sympa/msg daemon, PID 17623
    Jun 25 13:25:20 vpsXXXXXX sympa_msg[17623]: notice main:: Sympa/msg 6.2.16 Started
    Jun 25 13:25:20 vpsXXXXXX systemd[1]: Started SYMPA mailing list manager.
    [email protected]:/etc/sympa#
    I did some more research and it apears that I did not had a wwsympa.conf file by default.
    I thus created it with this content
    ## Is fast_cgi module for Apache (or Roxen) installed (0 | 1)
    ## This module provide much faster web interface
    use_fast_cgi    1
    I'm starting to run out of ressource here, may tutorials suggest ot edit postfix config and such, but i don't think it is related to my actual issue, so before going further I belive you may help me to reach the WebUI of sympa?

    That wuld actually be sympa ;)
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Is Perl enabled for that website?
  3. jbonlinea

    jbonlinea Member

    It wasn't, I felt dumb, no it is, but still no changes :(
  4. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    That shoud fix the perl code showing instead of being executed. Try to clear browser cache, or try another browser that did not access that host while perl was off.
  5. jbonlinea

    jbonlinea Member

    You're so right, why am I struggling for nothing ?
    but done !

Share This Page