Hi,
Apache service not started after installed the OCS Inventory in Centos7, Please help for me to make it working.
[root@blr ~]# service httpd status
Redirecting to /bin/systemctl status httpd.service
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2017-12-12 18:42:08 IST; 5h 17min left
Docs: man:httpd(8)
man:apachectl(8)
Process: 1741 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 1276 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 1276 (code=exited, status=1/FAILURE)
Dec 12 18:42:06 blrasset.com systemd[1]: Starting The Apache HTTP Server...
Dec 12 18:42:08 blrasset.com systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Dec 12 18:42:08 blrasset.com kill[1741]: kill: cannot find process ""
Dec 12 18:42:08 blrasset.com systemd[1]: httpd.service: control process exited, code=exited status=1
Dec 12 18:42:08 blrasset.com systemd[1]: Failed to start The Apache HTTP Server.
Dec 12 18:42:08 blrasset.com systemd[1]: Unit httpd.service entered failed state.
Dec 12 18:42:08 blrasset.com systemd[1]: httpd.service failed.
-- Unit httpd.service has failed.
--
-- The result is failed.
Dec 12 14:30:19 blrasset.com systemd[1]: Unit httpd.service entered failed state.
Dec 12 14:30:19 blrasset.com systemd[1]: httpd.service failed.
Dec 12 14:30:19 blrasset.com polkitd[887]: Unregistered Authentication Agent for unix-process:2165:481885 (system bus name :1.68, object path /org/freedesktop/PolicyKit1/Authent
Dec 12 14:40:01 blrasset.com systemd[1]: Started Session 17 of user root.
-- Subject: Unit session-17.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit session-17.scope has finished starting up.
--
-- The start-up result is done.
Dec 12 14:40:01 blrasset.com systemd[1]: Starting Session 17 of user root.
-- Subject: Unit session-17.scope has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit session-17.scope has begun starting up.
Dec 12 14:40:01 blrasset.com CROND[2189]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Dec 12 14:42:07 blrasset.com polkitd[887]: Registered Authentication Agent for unix-process:2194:552762 (system bus name :1.71 [/usr/bin/pkttyagent --notify-fd 5 --fallback], ob
Dec 12 14:42:07 blrasset.com systemd[1]: Starting The Apache HTTP Server...
-- Subject: Unit httpd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit httpd.service has begun starting up.
Dec 12 14:42:08 blrasset.com systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Dec 12 14:42:08 blrasset.com kill[2211]: kill: cannot find process ""
Dec 12 14:42:08 blrasset.com systemd[1]: httpd.service: control process exited, code=exited status=1
Dec 12 14:42:08 blrasset.com systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit httpd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit httpd.service has failed.
--
-- The result is failed.
Dec 12 14:42:08 blrasset.com systemd[1]: Unit httpd.service entered failed state.
Dec 12 14:42:08 blrasset.com systemd[1]: httpd.service failed.
Dec 12 14:42:08 blrasset.com polkitd[887]: Unregistered Authentication Agent for unix-process:2194:552762 (system bus name :1.71, object path /org/freedesktop/PolicyKit1/Authent
HTTPD service is not starting
HTTPD service is not starting
Last edited by nageshgsn on 2017/12/13 03:48:35, edited 1 time in total.
-
- Posts: 519
- Joined: 2012/06/26 14:20:47
Re: HTTPD service is not starting
You need to look in the apache error log to find out what's causing it to fail.
-
- Posts: 2019
- Joined: 2015/02/17 15:14:33
- Location: Bulgaria
- Contact:
Re: HTTPD service is not starting
You can check your configuration via
Code: Select all
apachectl configtest
Re: HTTPD service is not starting
I'm getting below output,
[root@blrasset ~]# apachectl configtest
Syntax OK
[root@blrasset ~]#
[root@blrasset ~]# apachectl configtest
Syntax OK
[root@blrasset ~]#
Re: HTTPD service is not starting
Checked in the httpd error.log,
[Wed Dec 13 09:39:16.070654 2017] [perl:error] [pid 10016] Can't locate Apache/Ocsinventory/Plugins/Apache.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /etc/httpd) at (eval 14) line 2.\n
[Wed Dec 13 09:39:16.070726 2017] [perl:error] [pid 10016] Can't load Perl module Apache::Ocsinventory::Plugins::Apache for server blrasset.com:0, exiting...
[Wed Dec 13 09:39:16.070654 2017] [perl:error] [pid 10016] Can't locate Apache/Ocsinventory/Plugins/Apache.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /etc/httpd) at (eval 14) line 2.\n
[Wed Dec 13 09:39:16.070726 2017] [perl:error] [pid 10016] Can't load Perl module Apache::Ocsinventory::Plugins::Apache for server blrasset.com:0, exiting...
Re: HTTPD service is not starting
I resolved this problem as below:
Copy the file and folder from installation source,
OCSNG_UNIX_SERVER-2.3.1/Apache/Ocsinventory.pm
OCSNG_UNIX_SERVER-2.3.1/Apache/Ocsinventory
Copy to:
/usr/local/share/perl5/Apache/
Restart service httpd, Now it is working.
Thanks.
Nagesh
Copy the file and folder from installation source,
OCSNG_UNIX_SERVER-2.3.1/Apache/Ocsinventory.pm
OCSNG_UNIX_SERVER-2.3.1/Apache/Ocsinventory
Copy to:
/usr/local/share/perl5/Apache/
Restart service httpd, Now it is working.
Thanks.
Nagesh
Re: HTTPD service is not starting
To install ocsinventory on CentOS, I heartily recommend to use upstream packages, see
https://www.ocsinventory-ng.org/en/rpm- ... tosfedora/
https://www.ocsinventory-ng.org/en/rpm- ... tosfedora/