Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[Solved] Apache2 fails to start just at boot

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
coppolino97
Posts: 117
Joined: 2018-06-05 15:23
Location: Italy
Has thanked: 2 times

[Solved] Apache2 fails to start just at boot

#1 Post by coppolino97 »

Hi all,
I have a strange issue with Debian10 and Apache2.
On this linux machine I have installed Apache2 with MariaDB.

Apache2 works fine if I manually start it when Debian10 is running, but not start automatically at boot (I have just configure it using systemctl enable apache2).

I get this error when Apache2 try to start at boot:

Code: Select all

systemd[1]: Starting The Apache HTTP Server...
apachectl[524]: [Mon Jan 13 12:51:08.552517 2020] [alias:warn] [pid 547] AH00671: The ScriptAlias directive in /etc/apache2/conf-enabled/serve-cgi-bin.conf at li
systemd[1]: apache2.service: Start operation timed out. Terminating.
systemd[1]: apache2.service: Control process exited, code=killed, status=15/TERM
systemd[1]: apache2.service: Failed with result 'timeout'.
systemd[1]: Failed to start The Apache HTTP Server.
Have someone any ideas to fix it?
Thanks so much!
Last edited by coppolino97 on 2020-02-02 11:03, edited 1 time in total.
Lenovo T460 | 8Gbyte of RAM | Intel core i5 | SSD 250GB | Debian 12

Dai_trying
Posts: 1101
Joined: 2016-01-07 12:25
Has thanked: 6 times
Been thanked: 16 times

Re: Apache2 fails to start just at boot

#2 Post by Dai_trying »

You could try posting the content of /etc/apache2/conf-enabled/serve-cgi-bin.conf as that appears to be where the problem is.

coppolino97
Posts: 117
Joined: 2018-06-05 15:23
Location: Italy
Has thanked: 2 times

Re: Apache2 fails to start just at boot

#3 Post by coppolino97 »

Hi,
I have found the following solution at the moment:

Edit apache.service

Code: Select all

nano /lib/systemd/system/apache2.service
Add the following configuration at the end of [Service] section of apache2.service file

Code: Select all

TimeoutStartSec=infinity
Regards! :D
Lenovo T460 | 8Gbyte of RAM | Intel core i5 | SSD 250GB | Debian 12

Post Reply