Apache refuses to start using PerlModule and virtual host
Hi,
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? Thanks I'm using apache 2.2.3, perl 5.8.8 and CentOS 5.4 |
Quote:
Code:
apachectl configtest |
'apachectl configtest' gives me "Syntax OK".
I just found that my apache error log complains about OCS_MODPERL_VERSION not being set: Code:
[Tue Nov 10 00:45:31 2009] [error] OCS_MODPERL_VERSION not defined. Abort\nBEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/Apache/Ocsinventory.pm line 28.\nCompilation failed in require at (eval 8) line 3.\n 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 02:36 PM. |