corrected environment variables problem in apache and added monitor