• 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 622 Times!

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

  • 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

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

  • What is Configuration Management February 5, 2023
  • What is ChatGPT? February 3, 2023
  • Zebronics Pixaplay 16 : Entry Level Movie Projector Review February 2, 2023
  • What is Voice User Interface (VUI) January 31, 2023
  • Proxy Server: Design Pattern in Programming January 30, 2023

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, February 6, 2023, https://thecustomizewindows.com/2016/04/install-linux-dash-on-nginx-php-server-monitoring-tool/.

Source:The Customize Windows, JiMA.in

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

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT