httpd service dont start

Issues related to applications and software problems
Post Reply
kwetcherod
Posts: 3
Joined: 2023/12/16 18:30:37

httpd service dont start

Post by kwetcherod » 2023/12/16 18:50:11

Hello
Please, we have a glpi version 9 server running on centos 7 which is no longer accessible from the browser.
After checking we found that the http service is stopped and when I start it it no longer starts even after restarting the entire server machine.

I looked in the logs and I don't see any error messages. here are the latest log messages that I get

[Sat Dec 16 14:37:41.728535 2023] [core:notice] [pid 12889] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Sat Dec 16 14:43:09.825450 2023] [core:notice] [pid 14755] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Sat Dec 16 14:43:09.829664 2023] [suexec:notice] [pid 14755] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sat Dec 16 14:44:10.326746 2023] [auth_digest:notice] [pid 14755] AH01757: generating secret for digest authentication ...
[Sat Dec 16 14:44:10.330954 2023] [lbmethod_heartbeat:notice] [pid 14755] AH02282: No slotmem from mod_heartmonitor
[Sat Dec 16 14:44:50.484925 2023] [core:warn] [pid 14755] AH00098: pid file /run/httpd/httpd.pid overwritten -- Unclean shutdown of previous Apache run?


Please i need your help
Regards

pjsr2
Posts: 614
Joined: 2014/03/27 20:11:07

Re: httpd service dont start

Post by pjsr2 » 2023/12/17 17:23:29

The time between the log messages is unusually long. What is going on on that machine? Is some other process oveloading CPU or memory usage?

Whoever
Posts: 1361
Joined: 2013/09/06 03:12:10

Re: httpd service dont start

Post by Whoever » 2023/12/17 18:10:02

Are there log files in /var/log/httpd? If so is there an error_log file there?

kwetcherod
Posts: 3
Joined: 2023/12/16 18:30:37

Re: httpd service dont start

Post by kwetcherod » 2023/12/18 07:26:52

Whoever wrote:
2023/12/17 18:10:02
Are there log files in /var/log/httpd? If so is there an error_log file there?
yes it is the log file /var/log/httpd , There is no error in this file.
The output come out from the command
tail -20 /var/log/httpd

kwetcherod
Posts: 3
Joined: 2023/12/16 18:30:37

Re: httpd service dont start

Post by kwetcherod » 2023/12/18 07:33:40

pjsr2 wrote:
2023/12/17 17:23:29
The time between the log messages is unusually long. What is going on on that machine? Is some other process oveloading CPU or memory usage?
Hello, see below the cpu and memory usage, there is no http service running

top - 08:33:27 up 1 day, 17:37, 1 user, load average: 0,04, 0,03, 0,05
Tasks: 137 total, 1 running, 136 sleeping, 0 stopped, 0 zombie
%Cpu(s): 0,2 us, 0,2 sy, 0,0 ni, 99,7 id, 0,0 wa, 0,0 hi, 0,0 si, 0,0 st
KiB Mem : 1015592 total, 134492 free, 478456 used, 402644 buff/cache
KiB Swap: 3145724 total, 2984444 free, 161280 used. 324960 avail Mem

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1038 mysql 20 0 807308 54676 2060 S 0,3 5,4 3:19.41 mysqld
1 root 20 0 191196 2876 1672 S 0,0 0,3 12:13.08 systemd
2 root 20 0 0 0 0 S 0,0 0,0 0:00.03 kthreadd
3 root 20 0 0 0 0 S 0,0 0,0 0:01.20 ksoftirqd/0
5 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 kworker/0:0H
7 root rt 0 0 0 0 S 0,0 0,0 0:01.56 migration/0
8 root 20 0 0 0 0 S 0,0 0,0 0:00.00 rcu_bh
9 root 20 0 0 0 0 S 0,0 0,0 0:30.00 rcu_sched
10 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 lru-add-drain
11 root rt 0 0 0 0 S 0,0 0,0 0:00.87 watchdog/0
12 root rt 0 0 0 0 S 0,0 0,0 0:00.62 watchdog/1
13 root rt 0 0 0 0 S 0,0 0,0 0:01.56 migration/1
14 root 20 0 0 0 0 S 0,0 0,0 0:01.19 ksoftirqd/1
16 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 kworker/1:0H
18 root 20 0 0 0 0 S 0,0 0,0 0:00.00 kdevtmpfs
19 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 netns
20 root 20 0 0 0 0 S 0,0 0,0 0:00.10 khungtaskd
21 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 writeback
22 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 kintegrityd
23 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 bioset
24 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 bioset
25 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 bioset
26 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 kblockd
27 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 md
28 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 edac-poller
34 root 20 0 0 0 0 S 0,0 0,0 0:09.90 kswapd0
35 root 25 5 0 0 0 S 0,0 0,0 0:00.00 ksmd
36 root 39 19 0 0 0 S 0,0 0,0 0:00.65 khugepaged
37 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 crypto
45 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 kthrotld
47 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 kmpath_rdacd
48 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 kaluad

User avatar
jlehtone
Posts: 4532
Joined: 2007/12/11 08:17:33
Location: Finland

Re: httpd service dont start

Post by jlehtone » 2023/12/18 09:06:47

kwetcherod wrote:
2023/12/18 07:26:52
Whoever wrote:
2023/12/17 18:10:02
Are there log files in /var/log/httpd? If so is there an error_log file there?
yes it is the log file /var/log/httpd , There is no error in this file.
The output come out from the command
tail -20 /var/log/httpd
The default httpd setup on CentOS 7 does create directory /var/log/httpd/
and httpd writes to files /var/log/httpd/access_log and /var/log/httpd/error_log.
If you have file -- not a directory -- /var/log/httpd, then you do have something custom.

Post Reply