OCS error - Invalid command 'PerlSetEnv'

December 2016




Issue


I have just finished installing OCS Inventory Agent for Linux Server on Redhat Enterprise 4 but now my httpd service wont start, it is giving me the error below:

Starting httpd: Syntax error on line 16 of /etc/httpd/conf.d/ocsinventory.conf:
Invalid command 'PerlSetEnv', perhaps mis-spelled or defined by a module not included in the server configuration.

Solution


Just add 'perl' in:
/etc/sysconfig/apache2
Under the APACHE_MODULES section.

Note


Thanks to mrslash for this tip on the forum.

Related :

This document entitled « OCS error - Invalid command 'PerlSetEnv' » from CCM (ccm.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.