Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.5 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

CentOS fails to restart httpd

Hello everyone,

I am working on a CentOs 7 on a virtual machine in order to  manage the IT infrastructure in the company where I'm working.

Trying to restart apache, I've got this error 

Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.

And when I do the first command this is what it shows me

‚óŹ httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since jeu. 2017-06-22 15:57:10 CEST; 22s ago
     Docs: man:httpd(8)
           man:apachectl(8)
  Process: 3404 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
  Process: 3402 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
 Main PID: 3402 (code=exited, status=1/FAILURE)

juin 22 15:57:10 localhost.localdomain systemd[1]: Starting The Apache HTTP Server...
juin 22 15:57:10 localhost.localdomain httpd[3402]: AH00526: Syntax error on line 36 of /etc/httpd/conf.d/ocsinventory-reports.conf:
juin 22 15:57:10 localhost.localdomain httpd[3402]: Invalid command 'SSLRequireSSL', perhaps misspelled or defined by a module not included in the server configuration
juin 22 15:57:10 localhost.localdomain systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
juin 22 15:57:10 localhost.localdomain kill[3404]: kill: cannot find process ""
juin 22 15:57:10 localhost.localdomain systemd[1]: httpd.service: control process exited, code=exited status=1
juin 22 15:57:10 localhost.localdomain systemd[1]: Failed to start The Apache HTTP Server.
juin 22 15:57:10 localhost.localdomain systemd[1]: Unit httpd.service entered failed state.
juin 22 15:57:10 localhost.localdomain systemd[1]: httpd.service failed.

Can anyone help me figure out what's causing this and how can I fix it?

Regards,

Malek

asked in OCS Inventory NG server for Unix by (160 points)

3 Answers

0 votes
How did you install OCS on your centos ? Do you used the RPM or the tar.gz ?
answered by (19.8k points)
0 votes

Hello,

I used RPM

answered by (160 points)
0 votes

juin 22 15:57:10 localhost.localdomain httpd[3402]: AH00526: Syntax error on line 36 of /etc/httpd/conf.d/ocsinventory-reports.conf:
juin 22 15:57:10 localhost.localdomain httpd[3402]: Invalid command 'SSLRequireSSL', perhaps misspelled or defined by a module not included in the server configuration

These two lines are the key to your problem.  on line 36 of the ocsinventory-reports.conf file there is a syntax error.

answered by (390 points)
 
Powered by Question2Answer
...