How to make Munin Web Accessable with Password Protection on cPanel/WHM



Install Munin via WHM



Edit Munin Config

# nano /etc/munin/munin.conf

+ find; # htmldir /usr/local/cpanel/whostmgr/docroot/munin
+ replace with; htmldir /usr/local/apache/htdocs/munin


Create Web-Accessable Munin Directory

# mkdir /usr/local/apache/htdocs/munin


Update Web-Accessable Munin Directory Permissions

# chown -R munin:munin /usr/local/apache/htdocs/munin


Create .htaccess

# nano /usr/local/apache/htdocs/munin/.htaccess

AuthType Basic
AuthName "Munin"
AuthUserFile /usr/local/apache/htdocs/munin/.htpasswd
require valid-user


Create .htpasswd

# nano /usr/local/apache/htdocs/munin/.htpasswd

+ Generate .htpasswd Password:

+ Add to .htpasswd: syntax username:password


Update .htaccess & .htpasswd Permissions

# chown munin:munin /usr/local/apache/htdocs/munin/.ht*


Enable .htaccess in httpd.conf

# nano /usr/local/apache/conf/httpd.conf

+ find;

<Directory "/usr/local/apache/htdocs">
Options All
AllowOverride None
Require all granted

+ replace with;

<Directory "/usr/local/apache/htdocs">
Options All
AllowOverride All
Require all granted


Restart httpd

# service httpd restart


Restart Munin

# service munin-node restart


Open Munin via Web




Have more questions? Submit a request


Powered by Zendesk