How to Install Linux Dash on an Ubuntu VPS with Nginx and Password Protect it

Linux Dash is a low-overhead server statistics monitoring application written in PHP. It is intended for anyone looking for a lightweight, easy to deploy server monitoring and view server resource usage via web interface in real time. In this step-by-step tutorial, we will show you how to install Linux Dash on an Ubuntu 14.04 VPS with Nginx and password protect the statistics pages.

and your ‘dash’ directory, it’s sub directories and the files inside it should be password protected.

Restart the Nginx service for the changes to take effect:

service nginx restart

Use the htpasswd command (if you previously had apache installed on your server) to generate your htpasswd file:

htpasswd -b htpasswd NewUser NewPassword

Make sure you replace the ‘NewUserName’ and ‘NewPassword’ with your desired username and password for accessing the protected directory. For example:

htpasswd -bc /etc/nginx/.htpasswd rhadmin Xcnd6%s^cJc@d.M

will create a new file using ‘rhadmin’ as username and ‘Xcnd6%s^cJc@d.M’ as password.

Please note, once the new .htpasswd file is created and you want to create another user, use ‘htpasswd -b NewUser NewPassword’ command (using the -c flag would overwrite the original file).

Or, you could generate the encrypted password using Perl:

perl -le 'print crypt("your-password", "salt-hash")'

That is it. The installation of Linux-dash monitoring system is now complete. Open http://your-domain.com in your favorite web browser, enter your username and password to authenticate and start monitoring your server resources.

Of course you don’t have to do any of this if you use one of our Linux VPS Hosting services, in which case you can simply ask our expert Linux admins to install Linux Dash for you. They are available 24×7 and will take care of your request immediately.

PS. If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.