Accéder au contenu.
Menu Sympa

fr - Re: [sympa-fr] Sympa avec Apache 2.4??

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

Archives de la liste

Chronologique Discussions  
  • From: Mark Van Crombrugge <adresse@cachée>
  • To: <adresse@cachée>
  • Subject: Re: [sympa-fr] Sympa avec Apache 2.4??
  • Date: Tue, 20 Dec 2016 10:35:46 +0100

Guillaume,

 

My Apache2 error log: (restarted a few times yesterday).

 

------------------------------

# more /var/log/apache2/error.log

[Mon Dec 19 06:55:16.009556 2016] [:notice] [pid 16312] FastCGI: process manager initialized (pid 16312)

[Mon Dec 19 06:55:16.044473 2016] [mpm_prefork:notice] [pid 18674] AH00163: Apache/2.4.7 (Ubuntu) mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_fcgid/2.3.9 PHP/5.5.9-1ubuntu4.20 configured -- resuming normal operations

[Mon Dec 19 06:55:16.044512 2016] [core:notice] [pid 18674] AH00094: Command line: '/usr/sbin/apache2'

[Mon Dec 19 09:48:35.404170 2016] [mpm_prefork:notice] [pid 18674] AH00169: caught SIGTERM, shutting down

[Mon Dec 19 09:48:40.259644 2016] [suexec:notice] [pid 17922] AH01232: suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)

[Mon Dec 19 09:48:40.277899 2016] [:notice] [pid 17925] FastCGI: process manager initialized (pid 17925)

[Mon Dec 19 09:48:40.301359 2016] [mpm_prefork:notice] [pid 17923] AH00163: Apache/2.4.7 (Ubuntu) mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_fcgid/2.3.9 PHP/5.5.9-1ubuntu4.20 configured -- resuming normal operations

[Mon Dec 19 09:48:40.301414 2016] [core:notice] [pid 17923] AH00094: Command line: '/usr/sbin/apache2'

[Mon Dec 19 09:48:49.853160 2016] [:warn] [pid 17925] FastCGI: (dynamic) server "/home/sympa/bin/wwsympa-wrapper.fcgi" started (pid 17936)

[Mon Dec 19 16:02:19.688279 2016] [:error] [pid 17929] [client 91.196.50.33:48831] script '/var/www/html/testproxy.php' not found or unable to stat

[Mon Dec 19 16:47:35.396162 2016] [mpm_prefork:notice] [pid 17923] AH00169: caught SIGTERM, shutting down

[Mon Dec 19 16:47:42.097429 2016] [suexec:notice] [pid 21481] AH01232: suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)

[Mon Dec 19 16:47:42.117515 2016] [:notice] [pid 21483] FastCGI: process manager initialized (pid 21483)

[Mon Dec 19 16:47:42.136653 2016] [mpm_prefork:notice] [pid 21482] AH00163: Apache/2.4.7 (Ubuntu) mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_fcgid/2.3.9 PHP/5.5.9-1ubuntu4.20 configured -- resuming normal operations

[Mon Dec 19 16:47:42.136706 2016] [core:notice] [pid 21482] AH00094: Command line: '/usr/sbin/apache2'

[Mon Dec 19 16:48:16.440716 2016] [:warn] [pid 21483] FastCGI: (dynamic) server "/home/sympa/bin/wwsympa-wrapper.fcgi" started (pid 21503)

------------------------------

 

If only there was an error message that showed me what is wrong, at least I would know where to look.

 

Here is sympa.conf:

------------------------------

/etc/apache2/sites-available# more sympa.conf

<Location /sympa>

 Require all granted

 SetHandler fastcgi-script

</Location>

 

<Directory "/home/sympa/static_content">

  Require all granted

</Directory>

 

Alias /static-sympa /home/sympa/static_content 

ScriptAlias /sympa /home/sympa/bin/wwsympa-wrapper.fcgi

 

<IfModule mod_fcgid.c>

  AddHandler fcgid-script .fcgi

</IfModule>

 

Meanwhile, I have used your working sympa.conf file and adapted the pathnames, same result: “Mailing list server is in maitenenace mode...”

This is how the file is now:

 

------------------------------

<IfModule mod_fcgid.c>

    IPCCommTimeout 300

    # You wish to increase the value in following line, don't you?

    MaxProcessCount 5

    MaxRequestLen 131072

 

    # Don't forget to edit this section!

    <Location /sympa>

                SetHandler fcgid-script

                Require all granted

    </Location>

#    ScriptAlias /sympa /usr/libexec/sympa/wwsympa-wrapper.fcgi

    ScriptAlias /sympa /home/sympa/bin/wwsympa-wrapper.fcgi

 

#    # You may uncomment following lines to enable SympaSOAP feature.

#    <Location /sympasoap>

#              SetHandler fcgid-script

#

#              # Don't forget to edit lines below!

#              Order deny,allow

#              Deny from all

#              #Allow from all

#    </Location>

#    ScriptAlias /sympasoap /usr/libexec/sympa/sympa_soap_server-wrapper.fcgi

</IfModule>

 

## Other static contents

#Alias /static-sympa /var/lib/sympa/static_content

Alias /static-sympa /home/sympa/static_content

    <Location /static-sympa>

                Require all granted

    </Location>

 

## If your host is dedicated to Sympa:

#RewriteEngine on

#RewriteRule ^/?$ /sympa [R=301]

------------------------------

 

Restarted Apache2: site is still in maintenance mode.

 

Think it will be faster to install everything on a new server?

 

Thanks for your help, enjoy the end of year festivities!

Mark

 

From: <adresse@cachée> on behalf of Guillaume Laurès <adresse@cachée>
Reply-To: <adresse@cachée>
Date: Tuesday 20 December 2016 at 08:53
To: sympa-fr <adresse@cachée>
Subject: Re: [sympa-fr] Sympa avec Apache 2.4??

 

Hello Mark,

 

First, as of migrating from apache 2.2 to apache 2.4, here's a diff for the sympa.conf apache config file.

I made it recently on a new install on a CentOS 7 host (rpm sympa-6.2.13-1.20160219.RHEL7.x86_64 seems to include an apache 2.2 config file) :

--------------------

--- /etc/httpd/conf.d/sympa.conf.orig   2016-12-13 13:55:42.722640075 +0100
+++ /etc/httpd/conf.d/sympa.conf        2016-12-15 11:13:11.631373458 +0100
@@ -12,9 +12,10 @@
        SetHandler fcgid-script

        # Don't forget to edit lines below!
-       Order deny,allow
-       Deny from all
+       #Order deny,allow
+       #Deny from all
        #Allow from all
+       Require all granted
     </Location>
     ScriptAlias /sympa /usr/libexec/sympa/wwsympa-wrapper.fcgi

@@ -32,7 +33,10 @@

 ## Other static contents
 Alias /static-sympa /var/lib/sympa/static_content
+    <Location /static-sympa>
+       Require all granted
+    </Location>

 ## If your host is dedicated to Sympa:
-#RewriteEngine on
-#RewriteRule ^/?$ /sympa [R=301]
+RewriteEngine on
+RewriteRule ^/?$ /sympa [R=301]

-------------

Basically you just need to update the syntax "order/deny/allow" to the new directive "require".

Attached is the whole file I'm using with success now.

 

Next, what does say your httpd error_log ?

 

Thanks and best wishes to you and the list as well :-)

 

G. Laurès


De: "sympa-fr" <adresse@cachée>
À: "sympa-fr" <adresse@cachée>
Envoyé: Lundi 19 Décembre 2016 09:57:50

Objet: Re: [sympa-fr] Sympa avec Apache 2.4??

Guillaume,

 

I uncommented the “SetHandler fastcgi-script” as you suggested but the site remains in maintenance mode.

 

Did some research from home this weekend and a lot of people discovered it has something to do with rights on the sci scripts.

But all info stops there.

 

Strange how an apache update can ruin an entire application!

 

Thanks for your help & have a wonderful 2017!

Mark

 

From: <adresse@cachée> on behalf of Guillaume Laurès <adresse@cachée>
Reply-To: <adresse@cachée>
Date: Friday 16 December 2016 at 21:43
To: <adresse@cachée>
Subject: Re: [sympa-fr] Sympa avec Apache 2.4??

 

Hello,

 

Do not # the "SetHandler fastcgi-script"

 

Le 16 déc. 2016 à 13:48, Mark Van Crombrugge (via sympa-fr Mailing List) <adresse@cachée> a écrit :

 

Thanks for the info.

 

I changed the config file from:

Alias /static-sympa /home/sympa/static_content 

ScriptAlias /sympa /home/sympa/bin/wwsympa-wrapper.fcgi

 

<IfModule mod_fcgid.c>

  AddHandler fcgid-script .fcgi

</IfModule>

 

 

to:

<Location /sympa>

 Require all granted

# SetHandler fastcgi-script

</Location>

 

<Directory "/home/sympa/static_content">

  Require all granted

</Directory>

 

Alias /static-sympa /home/sympa/static_content 

ScriptAlias /sympa /home/sympa/bin/wwsympa-wrapper.fcgi

 

<IfModule mod_fcgid.c>

  AddHandler fcgid-script .fcgi

</IfModule>

 

 

And now I get the wws webpage but it says “The mailing list server is in maintenance mode, no operations can be performed during this period.”

Impossible to login...

 

I’ts an improvement that the page is now visible but where do I change from maintenance to active mode?

It was active before the upgrade of Apache so it’s a bit strange tnat now it’s in maintenance mode...

 

Any help will be appreciated.

 

Have a nice weekend!

Mark

Mark

 

 




Archives gérées par MHonArc 2.6.19+.

Haut de le page