OCS error - Invalid command 'PerlSetEnv'

October 2016


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.


Just add 'perl' in:
Under the APACHE_MODULES section.


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.