Skip to Content.
Sympa Menu

en - Re: [en@sympa] [External] Re: Beginner's Help

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: VTR <address@concealed>
  • To: address@concealed
  • Subject: Re: [en@sympa] [External] Re: Beginner's Help
  • Date: Fri, 26 May 2023 16:12:33 -0400

Thanks Phil. I installed spawn-fcgi and can now see the Apache test page on the top level of my webpage. But adding /sympa to the address, I get Forbidden, you don’t have permission to access this resource.


This is my wwsympa.service file:

$ cat wwsympa.service
[Unit]
Description=Sympa web interface FastCGI backend
After=sympa.service
Requires=wwsympa.socket

[Service]
User=sympa
Group=sympa
ExecStart=/usr/bin/multiwatch \
          -f $WWS_FCGI_CHILDREN -- \
          /usr/libexec/sympa/wwsympa.fcgi
StandardOutput=null
StandardInput=socket
StandardError=journal
Environment="WWS_FCGI_CHILDREN=5"
EnvironmentFile=-/etc/default/sympa
EnvironmentFile=-/etc/sysconfig/sympa
Restart=always
RestartSec=5

[Install]
Also=wwsympa.socket
WantedBy=multi-user.target


And this is my wwsympa.socket file:

$ cat wwsympa.socket
[Unit]
Description=Sympa web interface socket

[Socket]
SocketUser=nobody
SocketMode=0600
ListenStream=/run/sympa/wwsympa.socket

[Install]
WantedBy=sockets.target

I’m supposed to add FCGI_OPTS="-M 0600 -U www-data somewhere but not sure which file?



On May 26, 2023, at 2:52 PM, Phil Stracchino <address@concealed> wrote:

On 5/26/23 14:06, VTR wrote:
I installed sympa-httpd and set up as a single domain setting.
I did not install FastCGI because I’m not sure if I need to (based on my earlier post).
But I am running into these errors:
[Fri May 26 17:58:41.821055 2023] [authz_core:error] [pid 9710] [client x.x.x.x] AH01630: client denied by server configuration: /var/www/html/sympa
[Fri May 26 17:58:57.231110 2023] [autoindex:error] [pid 9702] [client x.x.x.x] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html) found, and server-generated directory index forbidden by Options directive
I checked the path for /var/www/html/sympa, and it doesn’t exist.
Seems like my Apache httpd config is half-baked.
Suggestions?


Given that you are a self-admitted beginner, in your place I would not be trying to depart from established configurations.  I have approaching 40 years of experience and I found that I could not make it work correctly WITHOUT a FastCGI tool (I actually chose spawn-fcgi over FastCGI because it worked better and was easier to get a working configuration).

These are the sections I found to work in Apache 2.4:

 <IfDefine SYMPA>
    ScriptAlias /sympa /usr/libexec/sympa/wwsympa.fcgi
    Alias /static-sympa /var/spool/sympa/static_content

    <Location /sympa>
       SetHandler "proxy:unix:/var/run/sympa/wwsympa.socket|fcgi://"
       Options +ExecCGI
       Require all granted
    </Location>

    <Location /static-sympa>
       Require all granted
    </Location>
 </IfDefine>


with the sympa URL set in /etc/sympa/sympa.conf as:

wwsympa_url         https://www.caerllewys.net/sympa


and the following directives in /etc/conf.d/spawn-fcgi-sympa:

FCGI_SOCKET=/var/run/sympa/wwsympa.socket
FCGI_PROGRAM=/usr/libexec/sympa/wwsympa.fcgi
FCGI_CHILDREN=1
FCGI_USER=sympa
FCGI_GROUP=sympa
FCGI_EXTRA_OPTIONS='-s /var/run/sympa/wwsympa.socket -M 0600 -U apache'


Disclaimer:  You are not running Gentoo Linux.  THE LOCATIONS FOR SOME OF THESE CONFIGURATION ITEMS WILL PROBABLY VARY.  Don't take them as gospel.



--
 Phil Stracchino
 Babylon Communications
 address@concealed
 address@concealed
 Landline: +1.603.293.8485
 Mobile:   +1.603.998.6958





Archive powered by MHonArc 2.6.19+.

Top of Page