You are not logged in.

#1 2014-03-20 13:02:58

Crocodil
Member
Registered: 2011-03-27
Posts: 10

[SOLVED] httpd does not start after update 2.4

Hi,

Yesterday, I've updated apache from 2.2.x to 2.4.9-1 (testing). I've made sure that the configuration is OK for the new version. Unfortunatelly the httpd service does not start:

# systemctl start httpd
Job for httpd.service failed. See 'systemctl status httpd.service' and 'journalctl -xn' for details.

'journalctl -xn' gives this:

mar 20 13:53:06 maciekz-desktop systemd[1]: Failed to load environment files: No such file or directory
mar 20 13:53:06 maciekz-desktop systemd[1]: ^[[1;39mhttpd.service failed to run 'start' task: No such file or directory
mar 20 13:53:06 maciekz-desktop systemd[1]: Failed to start Apache Webserver.
-- Subject: Unit httpd.service has failed
-- Defined-By: systemd
-- Support: [url]http://lists.freedesktop.org/mailman/listinfo/systemd-devel[/url]
--
-- Unit httpd.service has failed.
--
-- The result is failed.
mar 20 13:53:06 maciekz-desktop systemd[1]: ^[[1;39mUnit httpd.service entered failed state.
mar 20 13:53:06 maciekz-desktop systemd[1]: httpd.service holdoff time over, scheduling restart.
mar 20 13:53:06 maciekz-desktop systemd[1]: Stopping Apache Webserver...
-- Subject: Unit httpd.service has begun shutting down
-- Defined-By: systemd
-- Support: [url]http://lists.freedesktop.org/mailman/listinfo/systemd-devel[/url]
--
-- Unit httpd.service has begun shutting down.
mar 20 13:53:06 maciekz-desktop systemd[1]: Starting Apache Webserver...
-- Subject: Unit httpd.service has begun with start-up
-- Defined-By: systemd
-- Support: [url]http://lists.freedesktop.org/mailman/listinfo/systemd-devel[/url]
--
-- Unit httpd.service has begun starting up.
mar 20 13:53:06 maciekz-desktop systemd[1]: ^[[1;39mhttpd.service start request repeated too quickly, refusing to start.
mar 20 13:53:06 maciekz-desktop systemd[1]: Failed to start Apache Webserver.
-- Subject: Unit httpd.service has failed
-- Defined-By: systemd
-- Support: [url]http://lists.freedesktop.org/mailman/listinfo/systemd-devel[/url]
--
-- Unit httpd.service has failed.
--
-- The result is failed.
mar 20 13:53:06 maciekz-desktop systemd[1]: ^[[1;39mUnit httpd.service entered failed state.

This doesn't tell me anything... I know that this is not an Apache configuration problem, because 'apachectl -k start' runs fine.

The strange thing is that if I go to /usr/lib/systemd/system, copy httpd.service to apache.service and then run 'systemctl start apache', it works fine (no errors, server starts).

I would be grateful for any help...

Best regards,
Crocodil


EDIT: The problem was caused by a customized /etc/systemd/system/httpd.service file. Removing it has solved the problem.

Last edited by Crocodil (2014-03-20 14:12:48)

Offline

#2 2014-03-20 13:11:46

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] httpd does not start after update 2.4

When posting configs, code or command output, please use [ code ] tags, not [ quote ] tags https://bbs.archlinux.org/help.php#bbcode

like this

It makes the code more readable and - in case of longer listings - more convenient to scroll through.



Edit: Please search the forum.
I know nothing about apache and httpd, but maybe https://bbs.archlinux.org/viewtopic.php?id=178124 has some tips.

Last edited by karol (2014-03-20 13:14:48)

Offline

#3 2014-03-20 13:29:47

Crocodil
Member
Registered: 2011-03-27
Posts: 10

Re: [SOLVED] httpd does not start after update 2.4

karol wrote:

When posting configs, code or command output, please use [ code ] tags, not [ quote ] tags https://bbs.archlinux.org/help.php#bbcode

like this

It makes the code more readable and - in case of longer listings - more convenient to scroll through.



Edit: Please search the forum.
I know nothing about apache and httpd, but maybe https://bbs.archlinux.org/viewtopic.php?id=178124 has some tips.

Thank you for the suggestion - I've changed the tags to [ code ] (wasn't sure before which one to use). I've already searched quite a lot, but I wasn't able to find a solution or a similar problem. All the threads I could find were related to httpd.conf problems but it looks like my configuration is fine.

# apachectl -t
Syntax OK

Also, as I've said,  the copied apache.service starts fine. I will check the suggested topic though smile

EDIT: I've also tried removing /etc/httpd and reinstalling the apache package - even though httpd.conf was the default one, it also failed to start using httpd.service.

Last edited by Crocodil (2014-03-20 13:34:30)

Offline

#4 2014-03-20 13:57:24

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 12,065
Website

Re: [SOLVED] httpd does not start after update 2.4

Do you have a custom httpd.service file in /etc/systemd/system, or some modifications in /etc/systemd/system/httpd.service.d/ ?


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2014-03-20 14:11:33

Crocodil
Member
Registered: 2011-03-27
Posts: 10

Re: [SOLVED] httpd does not start after update 2.4

WorMzy wrote:

Do you have a custom httpd.service file in /etc/systemd/system, or some modifications in /etc/systemd/system/httpd.service.d/ ?

Thank you very much! There was in fact a /etc/systemd/system/httpd.conf file that was causing the problem. I do not remember ever customising httpd.service but my memory might be failing, as it was created in 2012 wink

After removing that file, httpd.service now starts fine smile

Offline

Board footer

Powered by FluxBB