• 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

This Article Has Been Shared 236 Times!

Facebook Twitter Pinterest
Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Orthopaedic 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

  • Cloud Computing and its Importance in Education and Research

    Cloud Computing though is intended for Business market, does have lot of opportunities from Basic Educational field to top notch research.

  • Private Cloud Computing – Guiding Steps To Start

    Private Cloud Computing becoming an indispensable Component of any sized Enterprise. Cloud Computing Expert has written a handy guide where and how to implement Private Cloud in your business.

  • On Demand in Computing : What On Demand Means ?

    On Demand in Computing, specially in Cloud Computing this word on demand is frequently used. On Demand has more than its literal meaning.

  • Steaming iTunes Music Server on Cloud Platform

    Steaming iTunes Music Server on Cloud Platform can be setup without paying for the dedicated hardware. Here is the detailed ways of the possible solution.

  • Cloud PaaS Development : Taste Exo IDE Development Environment

    Cloud PaaS Development is a fun with Exo IDE Development Environment. You can deploy your Cloud App on Heroku Cloud, AppFog, Cloud Foundry, OpenShift and more.

Additionally, 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

You can subscribe to our Free Once a Day, Regular Newsletter by clicking the subscribe button below.

Click To Subscribe

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 (20K Followers)
  • Twitter (4.9k Followers)
  • Facebook (5.8k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.2k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • A.I. Bingo Game for Teaching A.I. January 27, 2021
  • Blackjack Strategies, AI and Cognitive Science January 27, 2021
  • Wi-Fi for Old House With Thick Walls January 26, 2021
  • What is Inertial Navigation System? January 25, 2021
  • What is Miniaturization? January 24, 2021

 

About This Article

Cite this article as: Abhishek Ghosh, "Install linux-dash on Nginx : PHP Server Monitoring Tool," in The Customize Windows, April 5, 2016, January 28, 2021, https://thecustomizewindows.com/2016/04/install-linux-dash-on-nginx-php-server-monitoring-tool/.

Source:The Customize Windows, JiMA.in

 

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Cookie Policy.

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

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

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