Re: Error: Failed to start Apache2 service on boot

2024-03-01 Thread Dan Ritter
Stephen P. Molnar wrote: 
> 
> 
> On 03/01/2024 11:08 AM, Markus Schönhaber wrote:
> > 
> > [1] Look at /etc/apache2/mods-enabled/userdir.conf line 11
> > there you should see something like
> > [2] "ExecCG" which probably should read "ExecCGI" instead.
> > 
> That was the problem. Many thanks.

If you install etckeeper on this machine, you can check in
snapshots of every configuration change you make and the
packaging system makes, and then see precisely what changed and
when.

$ sudo apt install etckeeper

before each change:

$ sudo etckeeper commit [optional message to yourself]

when there's a problem:

$ sudo etckeeper vcs diff
will show you the difference between what you have now and what
you last stored


You can actually do just about anything you need to do on a
single user system with those two commands, but you have the
whole power of git available as well.

-dsr-



Re: Error: Failed to start Apache2 service on boot

2024-03-01 Thread Stephen P. Molnar




On 03/01/2024 11:08 AM, Markus Schönhaber wrote:

01.03.24, 16:36 +0100, Stephen P. Molnar:


I am running up to date Bookworm and get the 'Failed to start Apache2
service on boot' error message.

I searched Google and found
https://forums.debian.net/voew.top9c,php?t=14419s which didn't solve the
problem.

I then tried sudo systemctl status apache2.service resulting in:

× apache2.service - The Apache HTTP Server
  Loaded: loaded (/lib/systemd/system/apache2.service; enabled;
preset: enabled)
  Active: failed (Result: exit-code) since Fri 2024-03-01 10:14:07
EST; 20min ago
    Docs: https://httpd.apache.org/docs/2.4/
     Process: 4474 ExecStart=/usr/sbin/apachectl start (code=exited,
status=1/FAILURE)
     CPU: 41ms

Mar 01 10:14:07 AbNormal systemd[1]: Starting apache2.service - The
Apache HTTP Server...
Mar 01 10:14:07 AbNormal apachectl[4477]: AH00526: Syntax error on line
11 of /etc/apache2/mods-enabled/userdir.conf:

[1] ^^


Mar 01 10:14:07 AbNormal apachectl[4477]: Illegal option ExecCG

[2] ^^


Mar 01 10:14:07 AbNormal apachectl[4474]: Action 'start' failed.
Mar 01 10:14:07 AbNormal apachectl[4474]: The Apache error log may have
more information.
Mar 01 10:14:07 AbNormal systemd[1]: apache2.service: Control process
exited, code=exited, status=1/FAILURE
Mar 01 10:14:07 AbNormal systemd[1]: apache2.service: Failed with result
'exit-code'.
Mar 01 10:14:07 AbNormal systemd[1]: Failed to start apache2.service -
The Apache HTTP Server.

Unfortunately, I am not conversant in ancient Greek and wold very
appreciative of assistance.

Hm, to me it seems that the problem description in the log is written in
pretty plain English:

[1] Look at /etc/apache2/mods-enabled/userdir.conf line 11
there you should see something like
[2] "ExecCG" which probably should read "ExecCGI" instead.


That was the problem. Many thanks.

--
Stephen P. Molnar, Ph.D.
https://insilicochemistry.net
(614)312-7528 (c)
Skype:  smolnar1



Re: Error: Failed to start Apache2 service on boot

2024-03-01 Thread Markus Schönhaber
01.03.24, 16:36 +0100, Stephen P. Molnar:

> I am running up to date Bookworm and get the 'Failed to start Apache2
> service on boot' error message.
> 
> I searched Google and found
> https://forums.debian.net/voew.top9c,php?t=14419s which didn't solve the
> problem.
> 
> I then tried sudo systemctl status apache2.service resulting in:
> 
> × apache2.service - The Apache HTTP Server
>  Loaded: loaded (/lib/systemd/system/apache2.service; enabled;
> preset: enabled)
>  Active: failed (Result: exit-code) since Fri 2024-03-01 10:14:07
> EST; 20min ago
>    Docs: https://httpd.apache.org/docs/2.4/
>     Process: 4474 ExecStart=/usr/sbin/apachectl start (code=exited,
> status=1/FAILURE)
>     CPU: 41ms
> 
> Mar 01 10:14:07 AbNormal systemd[1]: Starting apache2.service - The
> Apache HTTP Server...

> Mar 01 10:14:07 AbNormal apachectl[4477]: AH00526: Syntax error on line
> 11 of /etc/apache2/mods-enabled/userdir.conf:
[1] ^^

> Mar 01 10:14:07 AbNormal apachectl[4477]: Illegal option ExecCG
[2] ^^

> Mar 01 10:14:07 AbNormal apachectl[4474]: Action 'start' failed.
> Mar 01 10:14:07 AbNormal apachectl[4474]: The Apache error log may have
> more information.
> Mar 01 10:14:07 AbNormal systemd[1]: apache2.service: Control process
> exited, code=exited, status=1/FAILURE
> Mar 01 10:14:07 AbNormal systemd[1]: apache2.service: Failed with result
> 'exit-code'.
> Mar 01 10:14:07 AbNormal systemd[1]: Failed to start apache2.service -
> The Apache HTTP Server.
> 
> Unfortunately, I am not conversant in ancient Greek and wold very
> appreciative of assistance.
Hm, to me it seems that the problem description in the log is written in
pretty plain English:

[1] Look at /etc/apache2/mods-enabled/userdir.conf line 11
there you should see something like
[2] "ExecCG" which probably should read "ExecCGI" instead.

-- 
Regards
  mks