Skip to Content.
Sympa Menu

en - Re: [en@sympa] FreeBSD, Apache, and Sympa Issues.

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: "Janky Jay, III" <address@concealed>
  • To: address@concealed
  • Subject: Re: [en@sympa] FreeBSD, Apache, and Sympa Issues.
  • Date: Sat, 19 Aug 2023 08:24:02 -0600

Hello Racke,

Thank you for the reply.

On 8/19/23 04:36AM, Stefan Hornburg (Racke) wrote:
On 19/08/2023 06:19, Janky Jay, III wrote:
Hello All,

I attempting to deploy Sympa as a replacement for Mailman on a FreeBSD 13.2-RELEASE system. I'm also using Postfix and Apache24+spawn_fcgi (as suggested in the docs). I've followed all the documentation provided at https://www.sympa.community/manual/install.html without much issue but now I'm stuck.

Everything appears to be working as expected aside from the web UI. When I visit https://lists.domain.tld/sympa, it does bring up the home page, but after that, everything fails to work properly. Below is what I'm currently seeing:

When I open the home page (https://lists.domain.tld/sympa), I get a popup error that says " ERROR () - Unknown action ". I can close the popup and continue, but what might the cause of this be? I see no errors in the sympa.log or Apache log.

If I click the "Login" button, it takes me to the login page (great!). However, when I click the "First Login?" link to begin setup, it takes me to https://lists.domain.tld/firstpasswd which displays the message "The requested URL was not found on this server.". Should this be taking me to https://lists.domain.tld/sympa/firstpasswd instead?

Thinking the above might be the issue, if I visit https://lists.domain.tld/sympa/firstlogin, it just shows me a blank page of "Mailing list services" along with a popup error of " ERROR () - List 'firstpasswd' does not exist. " which I suppose is fair.

Can anyone tell me what I might be missing to get this sorted out? I followed the Apache24 configuration suggestion in the manual with the <Location> parameters and there are no syntax or configuration errors when starting Apache.

So far, it looks like Sympa might be a great replacement for Mailman so I'm looking forward to getting started with it. Thanks for awesome contribution to the open-source community!

Hello,

the value for wwsympa_url in the configuration should be https://lists.domain.tld/sympa.

Please verify.
Currently, the robot.conf file for this list contains the following:
wwsympa_url https://lists.domain.tld/sympa

I haven't tried to set this in the sympa.conf file due to the installation manual saying not to if I was going to be using virtual domains.


It also helps to post the Apache configuration here.
I've attached my httpd.conf and httpd-ssl.conf files to this reply. Hopefully, they're available. Otherwise, I'll paste them somewhere.

Regards,
Janky JayServerRoot "/usr/local"
Listen 80
LoadModule authn_file_module libexec/apache24/mod_authn_file.so
LoadModule authn_core_module libexec/apache24/mod_authn_core.so
LoadModule authz_host_module libexec/apache24/mod_authz_host.so
LoadModule authz_groupfile_module libexec/apache24/mod_authz_groupfile.so
LoadModule authz_user_module libexec/apache24/mod_authz_user.so
LoadModule authz_core_module libexec/apache24/mod_authz_core.so
LoadModule access_compat_module libexec/apache24/mod_access_compat.so
LoadModule auth_basic_module libexec/apache24/mod_auth_basic.so
LoadModule socache_shmcb_module libexec/apache24/mod_socache_shmcb.so
LoadModule reqtimeout_module libexec/apache24/mod_reqtimeout.so
LoadModule filter_module libexec/apache24/mod_filter.so
LoadModule deflate_module libexec/apache24/mod_deflate.so
LoadModule mime_module libexec/apache24/mod_mime.so
LoadModule log_config_module libexec/apache24/mod_log_config.so
LoadModule env_module libexec/apache24/mod_env.so
LoadModule headers_module libexec/apache24/mod_headers.so
LoadModule setenvif_module libexec/apache24/mod_setenvif.so
LoadModule version_module libexec/apache24/mod_version.so
LoadModule proxy_module libexec/apache24/mod_proxy.so
LoadModule proxy_fcgi_module libexec/apache24/mod_proxy_fcgi.so
LoadModule ssl_module libexec/apache24/mod_ssl.so
LoadModule unixd_module libexec/apache24/mod_unixd.so
LoadModule status_module libexec/apache24/mod_status.so
LoadModule autoindex_module libexec/apache24/mod_autoindex.so
LoadModule cgi_module libexec/apache24/mod_cgi.so
LoadModule cgid_module libexec/apache24/mod_cgid.so
LoadModule vhost_alias_module libexec/apache24/mod_vhost_alias.so
LoadModule dir_module libexec/apache24/mod_dir.so
LoadModule userdir_module libexec/apache24/mod_userdir.so
LoadModule alias_module libexec/apache24/mod_alias.so
LoadModule rewrite_module libexec/apache24/mod_rewrite.so
LoadModule php_module libexec/apache24/libphp.so
IncludeOptional etc/apache24/modules.d/[0-9][0-9][0-9]_*.conf

<IfModule unixd_module>
User www
Group www
</IfModule>

ServerAdmin address@concealed
ServerName www.domain.tld:80

<Directory />
AllowOverride none
Require all denied
</Directory>

DocumentRoot "/usr/local/www/apache24/data"
<Directory "/usr/local/www/apache24/data">
Options Indexes FollowSymLinks
IndexOptions NameWidth=*
AllowOverride None
Require all granted
</Directory>

<IfModule dir_module>
DirectoryIndex index.html index.htm index.php
</IfModule>

<Files ".ht*">
Require all denied
</Files>

ErrorLog "/var/log/httpd/httpd-error.log"
LogLevel warn

<IfModule log_config_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
<IfModule logio_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"
%I %O" combinedio
</IfModule>
CustomLog "/var/log/httpd/httpd-access.log" combined
</IfModule>

<IfModule alias_module>
ScriptAlias /cgi-bin/ "/usr/local/www/apache24/cgi-bin/"
</IfModule>

<IfModule cgid_module>
</IfModule>

<Directory "/usr/local/www/apache24/cgi-bin">
AllowOverride None
Options None
Require all granted
</Directory>

<IfModule mime_module>
TypesConfig etc/apache24/mime.types
AddType application/x-gzip .tgz
AddEncoding x-compress .Z
AddEncoding x-gzip .gz .tgz
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
</IfModule>

<FilesMatch "\.php$">
SetHandler application/x-httpd-php
</FilesMatch>
<FilesMatch "\.phps$">
SetHandler application/x-httpd-php-source
</FilesMatch>

Include etc/apache24/extra/httpd-autoindex.conf
Include etc/apache24/extra/httpd-userdir.conf
Include etc/apache24/extra/httpd-vhosts.conf
Include etc/apache24/extra/httpd-default.conf

<IfModule proxy_html_module>
Include etc/apache24/extra/proxy-html.conf
</IfModule>

Include etc/apache24/extra/httpd-ssl.conf

<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>

Include etc/apache24/Includes/*.conf
Include etc/apache24/sites-enabled/*.conf
Listen 443
SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5
SSLPassPhraseDialog builtin
SSLSessionCache "shmcb:/var/run/ssl_scache(512000)"
SSLSessionCacheTimeout 300

<VirtualHost *:443>
ServerName www.domain.tld
SSLEngine on
SSLProtocol all -SSLv2 -SSLv3
SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:!SSLv3:RC4+RSA:+HIGH:+MEDIUM:+LOW
SSLCertificateFile /usr/local/etc/letsencrypt/live/domain.tld/cert.pem
SSLCertificateKeyFile
/usr/local/etc/letsencrypt/live/domain.tld/privkey.pem
SSLCertificateChainFile
/usr/local/etc/letsencrypt/live/domain.tld/chain.pem
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
ServerAdmin address@concealed
DocumentRoot /var/customers/webs/webuser/domain.tld
ServerAlias domain.tld www.domain.tld
Alias /squirrelmail/ "/usr/local/www/squirrelmail/"
<Directory "/usr/local/www/squirrelmail">
AllowOverride None
Require all granted
</Directory>
<Directory "/var/customers/webs/webuser/domain.tld">
AllowOverride AuthConfig FileInfo Options
Require all granted
</Directory>
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
ScriptAlias /cgi-bin/
"/var/customers/webs/webuser/domain.tld/cgi-bin/"
<Directory "/var/customers/webs/webuser/domain.tld/cgi-bin">
SSLOptions +StdEnvVars
</Directory>
ErrorLog /var/customers/logs/webuser-error.log
CustomLog /var/customers/logs/webuser-access.log combined
</VirtualHost>

<Virtualhost *:443>
ServerAdmin address@concealed
DocumentRoot /usr/local/www/apache24/data
ServerName lists.domain.tld
ServerAlias lists.domain.tld
SSLEngine on
SSLProtocol all -SSLv2 -SSLv3
SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:!SSLv3:RC4+RSA:+HIGH:+MEDIUM:+LOW
SSLCertificateFile
/usr/local/etc/letsencrypt/live/lists.domain.tld/cert.pem
SSLCertificateKeyFile
/usr/local/etc/letsencrypt/live/lists.domain.tld/privkey.pem
SSLCertificateChainFile
/usr/local/etc/letsencrypt/live/lists.domain.tld/chain.pem
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
<Location "/sympa">
SetHandler "proxy:unix:/var/run/sympa/wwsympa.socket|fcgi://"
# Don't forget to edit lines below!
#Require local
Require all granted
</Location>
# Lines below are needed for 6.2.28 or later.
<Location "/static-sympa/css">
Require all granted
</Location>
Alias /static-sympa/css /usr/local/share/sympa/static/css
# Lines below are needed for 6.2.28 or later.
<Location "/static-sympa/pictures">
Require all granted
</Location>
Alias /static-sympa/pictures /usr/local/share/sympa/static/pictures
<Location /static-sympa>
Require all granted
</Location>
Alias /static-sympa /usr/local/share/sympa/static
ErrorLog /var/customers/logs/webuser-error.log
CustomLog /var/customers/logs/webuser-access.log combined
</Virtualhost>



Archive powered by MHonArc 2.6.19+.

Top of Page