403 permissions problem after installing Nagios on virtualmin

December 15, 2009 by  
Filed under Linux Tutorials, Tools and Utilities

Comments Off

If the websites are managed with VirtualMin. Each site has its own user name, group and home folder.

For example, site www.sampleweb.com under VirtualMin has user name and groups sampleweb as well as home folder /home/sampleweb.
The document root of the site is /home/sampleweb/public_html.

If the Nagios is installed on the same server, it change the apache group and all the websites start returning 

403 error permission denied.

To resolve this add the user group again to apache for example :

/usr/sbin/usermod -a -G sampleweb apache

retstart apache and you will be back in business

IMPORTANT : THE NAGIOS INSTALLATION IS NOT RECOMMEND ON HOSTING SERVERS, AND THIS SHOULD BE DONE ON A PLAIN INSTALLATION ONLY, OTHERWISE IT LEADS TO SEVERAL PROBLEMS LIKE ONE ABOVE.