• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » Install linux-dash on Nginx : PHP Server Monitoring Tool

By Abhishek Ghosh April 5, 2016 11:46 pm Updated on April 5, 2016

Install linux-dash on Nginx : PHP Server Monitoring Tool

Advertisement

Here the Steps on How to Install linux-dash on Nginx, Ubuntu Server. linux-dash is a Lightweight, PHP Server Monitoring Tool Which is Easy. We are assuming a setup like we wrote in details as steps – WordPress Nginx Setup. We are assuming that you are a basic user. We discovered this linux-dash PHP, Node.js, Go, compatible web tool from GitHub. The GUI looks great and easy to use. At this moment, you will use the original linux-dash.

 

Needed Setup to Install linux-dash on Nginx, The PHP Server Monitoring Tool

 

We are taking it as a fresh cloud server instance. We suggest to use Nginx Extras instead of Nginx as cache purge module is available with Nginx Extras. We need to install these components :

Vim
1
apt-get install git nginx-extras curl php5-json php5-common php5-fpm php5-curl

We suggest not to change default Nginx file names and path of root for easy troubleshooting over the Internet on Q&A sites like StackExchange. We will change directory to default Nginx root of public FTP :

Advertisement

---

Vim
1
cd /usr/share/nginx/html/

Then we will clone this repo of linux-dash :

Browse GitHub Project of linux-dash
Vim
1
https://github.com/afaqurk/linux-dash

Here we go :

location: /usr/share/nginx/html
Vim
1
2
3
4
git clone https://github.com/afaqurk/linux-dash.git
## for root installation on subdomain
# cp -r linux-dash/ /usr/share/nginx/html
chown -R www-data:www-data /usr/share/nginx/html

Now, we will edit the file /etc/nginx/sites-available/default :

Vim
1
nano /etc/nginx/sites-available/default

This is an example configuration, note that /usr/share/nginx/html :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
upstream php5-fpm-sock {
        server unix:/var/run/php5-fpm.sock;
}
server {
        server_name   dash.domain.com;
        listen  80;
 
        root    /usr/share/nginx/html/linux-dash;
        index   index.php index.html module.php;
        access_log      /var/log/nginx/linux-dash-access.log;
        error_log       /var/log/nginx/linux-dash-error.log;
 
 
    location ~ \.php$ {
     try_files $uri =404;
         root           /usr/share/nginx/html/linux-dash;
         fastcgi_pass   unix:/var/run/php-fpm/php-fpm.sock;
         fastcgi_index  index.php;
     fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
         include        fastcgi_params;
    }
}

Open php.ini, locate the disable_the functions line to make sure that shell_exec and exec are not listed. Restart the services :

Vim
1
2
service php5-fpm restart
service nginx restart

Navigate to http://your-ip/linux-dash/ to see the stuffs. Now you should have an insight into server’s status through the linux dash dashboard.

Install linux-dash on Nginx PHP Server Monitoring Tool

 

Conclusion : PHP Server Monitoring Tool linux-dash

 

For support, general community support and questions, please see the repo page on GitHub.

We in previously published article shown a pretty sweet dashboard for our infrastructure using Graphite, Grafana and collectd. That was a difficult to handle by an ordinary user. This is easier & practical.

As linux dash gives access to sensitive information, you need to restrict access to this directory. This is Nginx documentation on password protecting a directory :

Vim
1
http://nginx.org/en/docs/http/ngx_http_auth_basic_module.html

and run service nginx restart, it makes the interface inaccessible to all. This block needs to be added :

Vim
1
2
3
4
location /linux-dash {
auth_basic            "Restricted Area";
auth_basic_user_file  /etc/nginx/conf/.htpasswd;
}

conf/htpasswd itself means that the code will use the htpasswd file in /etc/nginx/conf/ directory but we used the full path. To generate that .htpasswd file, you can use this kind of service :

Vim
1
http://www.tools.dynamicdrive.com/password/

Or use this :

Vim
1
2
3
4
cd /opt
wget https://gist.github.com/AbhishekGhosh/3dfa200a82134c5f68f5c506c826c986/raw/8fc1a0dd15197a4cdaca67db264be94a41cae76d/htpasswd.py
chmod 755 /opt/htpasswd.py
htpasswd.py -c -b /etc/nginx/conf/.htpasswd username password

Obviously, change username and password to real one. I do not know why most of the websites suggest to run :

Vim
1
apt-get install apache2-utils

for only generating the .htpasswd file. There is openssl passwd command, PHP, Perl to do the same work.

Tagged With https://thecustomizewindows com/2011/03/difference-between-cd-dvd-and-blu-ray-disks/ , https://yandex ru/clck/jsredir?from=yandex ru;search;web;;&text=&etext=1836 oU3iOjApw8YasmuHWZmfR1u2s5RxbORvW2z-Znv_mkkHUXF6O2RVC_ulSQLTnhgG b83b346a258c4181a12a52d7fa21f8c4965e1a01&uuid=&state=_BLhILn4SxNIvvL0W45KSic66uCIg23qh8iRG98qeIXme , https://yandex ru/clck/jsredir?from=yandex ru;search;web;;&text=&etext=1837 7CBz-Z9sCNb9HzjnpQqNQvNEb1A1EnbV56yvQ83sVauXClwBqhYuVf82fsMIZU3- 627191e4320e6164d39f10b299a5f4939697c8cb&uuid=&state=_BLhILn4SxNIvvL0W45KSic66uCIg23qh8iRG98qeIXme , https://yandex ru/clck/jsredir?from=yandex ru;search;web;;&text=&etext=1838 3si63sJpbEIXAbXx1PdOwESVjfFRy2nZ030xk7nrPjmyv4Xu5n5UgbV8OWV-U449 e5cc31c01d29473cc4ee02cc829eaf775b00c3b4&uuid=&state=_BLhILn4SxNIvvL0W45KSic66uCIg23qh8iRG98qeIXme , linux monitoring web
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Install linux-dash on Nginx : PHP Server Monitoring Tool

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • WordPress Multisite on Nginx on Ubuntu 14.04 on HP Cloud

    Here is a Step by Step Guide on Setting Up WordPress Multisite on Nginx on Ubuntu 14.04 on HP Cloud with All Commands and the Configuration.

  • How to Install WordPress : Ubuntu 16.04, Nginx, PHP7-FPM

    Here is Step by Step Guide on How to Install WordPress on Ubuntu 16.04, Nginx, PHP7-FPM, memcached & Percona MySQL 5.7 on Cloud Server or VPS.

  • Ubuntu Nginx PHP5-FPM UNIX Socket Configuration

    Some Extra Steps Needed to Perform in Ubuntu for the Right Nginx PHP5-FPM UNIX Socket Configuration. Else You’ll Face Random 502, 504 Error.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy