Apache refuses to start using PerlModule and virtual host
I'm trying to install two instances of OCS Inventory on the same machine using virtual hosts in apache.
The apache configuration for it is in it's own file and it works fine without any virtual host. If I add it apache refuses to start without giving any error message. I narrowed it down to some lines loading perl modules, and if I comment them away apache will start again. Some of the modules work, but some of the ones specific to OCS Inventory will not work.
I can't understand what the difference is between loading it in a virtual host or not, it doesn't make any sense to me! Does anyone have a clue?
I'm using apache 2.2.3, perl 5.8.8 and CentOS 5.4
'apachectl configtest' gives me "Syntax OK".
I just found that my apache error log complains about OCS_MODPERL_VERSION not being set:
PerlSetEnv OCS_MODPERL_VERSION 2
so it should really be set...
EDIT: Putting that line before the virtualhost definition allowed apache to start, but The Ocsinventory module is complaining about other variables not being set (which are set within virtualhost). I could put them all in the beginning, but the different virtualhosts need different configurations so I'm not sure it it would work well.
|All times are GMT -5. The time now is 05:03 PM.|