[opensuse] Little apache problem
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I have migrated apache2 from a machine running 13.1 to another using 42.2. In YaST the configs seem to be the same. Trying to start the new install, fails: Isengard:~ # systemctl restart apache2.service Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details. Isengard:~ # log says: <3.6> 2016-12-05T12:05:00.487182+01:00 Isengard systemd 1 - - Starting The Apache Webserver... <3.6> 2016-12-05T12:05:00.577111+01:00 Isengard start_apache2 8020 - - AH00526: Syntax error on line 22 of /etc/apache2/httpd.conf.local: <3.6> 2016-12-05T12:05:00.577674+01:00 Isengard start_apache2 8020 - - Invalid command 'order', perhaps misspelled or defined by a module not included in the server configuration <3.5> 2016-12-05T12:05:00.602799+01:00 Isengard systemd 1 - - apache2.service: Main process exited, code=exited, status=1/FAILURE The config section it refers to is this: <Directory /srv/www/htdocs/ficheros> Options FollowSymLinks Indexes Includes AllowOverride All IndexOptions FancyIndexing \ ScanHTMLTitles \ NameWidth=* \ DescriptionWidth=* \ SuppressLastModified \ FoldersFirst order deny,allow deny from all allow from localhost .valinor 192.168.1.51 192.168.1.52 192.168.1.53 </Directory> I don't understand why it doesn't understand "order". If I remove the line, it baulks at "deny". I went in YaST list of apache modules, one by one, and the list has the same enabled modules. What is hapening? - -- Cheers Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iEYEARECAAYFAlhFSt4ACgkQtTMYHG2NR9XFYwCfR1yC/E5blXi7iKnv6gR/isDU u20AnjVuUoEQwla64EVgo01/ja3ltFBN =OYvx -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Monday 05 December 2016, Carlos E. R. wrote:
Hi,
I have migrated apache2 from a machine running 13.1 to another using 42.2. In YaST the configs seem to be the same.
Trying to start the new install, fails:
Isengard:~ # systemctl restart apache2.service Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details. Isengard:~ #
log says:
<3.6> 2016-12-05T12:05:00.487182+01:00 Isengard systemd 1 - - Starting The Apache Webserver... <3.6> 2016-12-05T12:05:00.577111+01:00 Isengard start_apache2 8020 - - AH00526: Syntax error on line 22 of /etc/apache2/httpd.conf.local: <3.6> 2016-12-05T12:05:00.577674+01:00 Isengard start_apache2 8020 - - Invalid command 'order', perhaps misspelled or defined by a module not included in the server configuration <3.5> 2016-12-05T12:05:00.602799+01:00 Isengard systemd 1 - - apache2.service: Main process exited, code=exited, status=1/FAILURE
The config section it refers to is this:
<Directory /srv/www/htdocs/ficheros> Options FollowSymLinks Indexes Includes AllowOverride All
IndexOptions FancyIndexing \ ScanHTMLTitles \ NameWidth=* \ DescriptionWidth=* \ SuppressLastModified \ FoldersFirst
order deny,allow deny from all
This is now incompatible. You should switch to the "Require" directive or load the "access_compat" module.
allow from localhost .valinor 192.168.1.51 192.168.1.52 192.168.1.53 </Directory>
I don't understand why it doesn't understand "order". If I remove the line, it baulks at "deny".
I went in YaST list of apache modules, one by one, and the list has the same enabled modules.
What is hapening?
-- Cheers
Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2016-12-05 12:20, Ruediger Meier wrote:
On Monday 05 December 2016, Carlos E. R. wrote:
The config section it refers to is this:
<Directory /srv/www/htdocs/ficheros> Options FollowSymLinks Indexes Includes AllowOverride All
IndexOptions FancyIndexing \ ScanHTMLTitles \ NameWidth=* \ DescriptionWidth=* \ SuppressLastModified \ FoldersFirst
order deny,allow deny from all
This is now incompatible. You should switch to the "Require" directive or load the "access_compat" module.
Thanks. I know little about apache, so what I need now are examples. Do you know of any, or what string to search for in google? -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
On 2016-12-05 12:40, Carlos E. R. wrote:
Thanks. I know little about apache, so what I need now are examples. Do you know of any, or what string to search for in google?
I can not even read apache local documentation because it does not start... -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
Le 05/12/2016 à 12:46, Carlos E. R. a écrit :
On 2016-12-05 12:40, Carlos E. R. wrote:
Thanks. I know little about apache, so what I need now are examples. Do you know of any, or what string to search for in google?
I can not even read apache local documentation because it does not start...
now it's <Directory /> Options None AllowOverride None Require all granted </Directory> jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2016-12-05 12:51, jdd wrote:
Le 05/12/2016 à 12:46, Carlos E. R. a écrit :
On 2016-12-05 12:40, Carlos E. R. wrote:
Thanks. I know little about apache, so what I need now are examples. Do you know of any, or what string to search for in google?
I can not even read apache local documentation because it does not start...
now it's
<Directory /> Options None AllowOverride None Require all granted </Directory>
But that would allow anybody to access, and previously I had restrictions. It seems that: Order Deny,Allow Deny from all Allow from example.org would be: Require host example.org But it does not work, I don't get access. Ah, Ok, open firewall (supposedly YaST had done that, but I don't see where), and start Apache, that supposedly had already started. Ah, raining again. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
Carlos E. R. wrote:
On 2016-12-05 12:40, Carlos E. R. wrote:
Thanks. I know little about apache, so what I need now are examples. Do you know of any, or what string to search for in google?
I can not even read apache local documentation because it does not start...
Well, there is always: http://httpd.apache.org/docs/2.4/ Anyway, the 2.2 to 2.4 update and the change in the permissions config is well documented. You can either switch to the new method/syntax, or retain the old by loading access_compat. I switched to 2.4 a couple of years back, and updated every config to use the new syntax. -- Per Jessen, Zürich (1.4°C) http://www.dns24.ch/ - free dynamic DNS, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2016-12-05 12:57, Per Jessen wrote:
Carlos E. R. wrote:
On 2016-12-05 12:40, Carlos E. R. wrote:
Thanks. I know little about apache, so what I need now are examples. Do you know of any, or what string to search for in google?
I can not even read apache local documentation because it does not start...
Well, there is always:
Ah, thanks. Opened.
Anyway, the 2.2 to 2.4 update and the change in the permissions config is well documented.
Where? O:-) Ah, this one: http://httpd.apache.org/docs/2.4/upgrading.html
You can either switch to the new method/syntax, or retain the old by loading access_compat. I switched to 2.4 a couple of years back, and updated every config to use the new syntax.
I'll try to switch. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
Carlos E. R. wrote:
On 2016-12-05 12:57, Per Jessen wrote:
Carlos E. R. wrote:
On 2016-12-05 12:40, Carlos E. R. wrote:
Thanks. I know little about apache, so what I need now are examples. Do you know of any, or what string to search for in google?
I can not even read apache local documentation because it does not start...
Well, there is always:
Ah, thanks. Opened.
Anyway, the 2.2 to 2.4 update and the change in the permissions config is well documented.
Where? O:-)
Ah, this one: http://httpd.apache.org/docs/2.4/upgrading.html
I think we also have some openSUSE documentation on it. The change was discussed quite a bit - ISTR some talk about whether we should load the compatibility module automatically or not etc. -- Per Jessen, Zürich (2.0°C) http://www.dns24.ch/ - your free DNS host, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2016-12-05 13:53, Per Jessen wrote:
Carlos E. R. wrote:
I think we also have some openSUSE documentation on it. The change was discussed quite a bit - ISTR some talk about whether we should load the compatibility module automatically or not etc.
I suspect that YaST failed to apply changes to apache, perhaps due to it not starting. Saw a fast message flying by. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
Le 05/12/2016 à 14:10, Carlos E. R. a écrit :
I suspect that YaST failed to apply changes to apache, perhaps due to it not starting. Saw a fast message flying by.
I always use "apache2ctl configtest" to test syntax jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (4)
-
Carlos E. R.
-
jdd
-
Per Jessen
-
Ruediger Meier