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

Follow

 

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: http://www.htaccesstools.com/htpasswd-generator/

+ 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
</Directory>

+ replace with;

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

 

Restart httpd

# service httpd restart

 

Restart Munin

# service munin-node restart

 

Open Munin via Web

+ http://xxx.xxx.xxx.xxx/munin

 

--

Have more questions? Submit a request

Comments

Powered by Zendesk