How To Install Monit on Ubuntu 14.04

Install Monit on Ubuntu 14.04

For those of you who didn’t know, Monit is a opensource process tool for Linux operating system which helps you to monitor system process using web browser and also when ever requires it automatically do the maintenance or repair of particular process in such a way that it can be brought back online. The monitoring can be directly on the command line or on the web. You can assign Monit multiple tasks (not only monitoring), so if a certain service fails the check, Monit can alert or do something about it (try to restart the service for example).

This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple. I will show you through the step by step installation Monit on Ubuntu 14.04.

Step 1. Installing Monit and Apache server.

Step 2. Configure Monit.

After the installation is complete, edit the main config file to resemble the example below using your favorite text editor and set your own username and password:

Once you’ve configured it, you need to start the monit service to reload the new configuration settings:

Step 3. Configuring Programs Self-Monitoring.

Once the initial config is completed, we can configure some of the services we want to monitor. To do this, we will create separate files for every service located within the /etc/monit.d/ directory. Following are some useful configuration examples for monit, that can be very helpful to see how a service is running, where it keeps its pidfile and how to start and stop a service etc:

After adding required services in monit monitoring configuration file, Use the below command to verify syntax of file:

Now restart monit service:

Step 4. Accessing Monit.

Monit will be available on HTTP port 2812 by default. Open your favorite browser and navigate to http://your-domain.com:2812 or http://server-ip:2812 and and then enter the credentials you created in conf above.

Congratulation’s! You have successfully installed Monit. Thanks for using this tutorial for installing Monit on Ubuntu 14.04 system.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get a best deal!

Save

How To Install Monit on CentOS 6

monit-logo

For those of you who didn’t know, Monit is a opensource process tool for Linux operating system which helps you to monitor system process using web browser and also when ever requires it automatically do the maintenance or repair of particular process in such a way that it can be brought back online. The monitoring can be directly on the command line or on the web. You can assign Monit multiple tasks (not only monitoring), so if a certain service fails the check, Monit can alert or do something about it (try to restart the service for example).

This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple. I will show you through the step by step installation Monit on CentOS 6.

Step 1. First, you need to enable EPEL repository on your system.

Step 2. Installing Monit.

Step 3. Configure Monit.

Once the installation is complete, edit the main config file to resemble the example below using your favorite text editor and set your own username and password:

Once you’ve configured it, you need to start the monit service to reload the new configuration settings:

Step 4. Configuring Programs Self-Monitoring.

After the initial config is completed, we can configure some of the services we want to monitor. To do this, we will create separate files for every service located within the /etc/monit.d/ directory. Following are some useful configuration examples for monit, that can be very helpful to see how a service is running, where it keeps its pidfile and how to start and stop a service etc:

After creating the desired configuration files, test the control file for syntax errors:

And start monit by simply typing:

Step 5. Accessing Monit.

Monit will be available on HTTP port 2812 by default. Open your favorite browser and navigate to http://your-domain.com:2812 or http://server-ip:2812 and and then enter the credentials you created in /etc/monit.conf.

Congratulation’s! You have successfully installed Monit. Thanks for using this tutorial for installing Monit on CentOS 6 system.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get a best deal!

How To Install Zend Guard Loader on Ubuntu 14.04

php-logo

For those of you who didn’t know, Zend Guard Loader is a free runtime application that enables PHP to run the scripts encoded by Zend Guard. The Guard Loader extension must be installed on each Web server that runs files that were encoded with, or use, Zend Guard licenses. The Zend Guard Loader translates encoded files to a format that can be parsed by the Zend Engine. This runtime process uses the Zend engine as a trigger to start the Zend Guard Loader component. At the time of writing this article, Zend Guard Loader supports PHP 5.5 or higher.

This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple. I will show you through the step by step installation zend guard loader (Zend Optimizer) on Ubuntu 14.04.

Step 1. Download Zend Guard Loader packages.

Zend Guard Loader can only be downloaded while logged in to your Zend account. You cannot directly download it to your server. So, you’ll need to download the .tar.gz file and then SFTP it to your server:

After downloading, extract Zend Guard Loader:

Now enter the the new folder extracted and find the ZendGuardLoader.so file, lets copy it to the modules folder:

Add these two lines to the bottom of your php.ini to enable Zend Guard Loader:

Step 2. Restart Apache service.

Step 3. Verify Zend Guard Loader Is Enabled.

Congratulation’s! You have successfully installed Zend Guard Loader. Thanks for using this tutorial for installing zend guard loader (Zend Optimizer) on Ubuntu 14.04 system.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get a best deal!

How To Install Zend Guard Loader on CentOS 6

php-logo

For those of you who didn’t know, Zend Guard Loader is a free runtime application that enables PHP to run the scripts encoded by Zend Guard. The Guard Loader extension must be installed on each Web server that runs files that were encoded with, or use, Zend Guard licenses. The Zend Guard Loader translates encoded files to a format that can be parsed by the Zend Engine. This runtime process uses the Zend engine as a trigger to start the Zend Guard Loader component. At the time of writing this article, Zend Guard Loader supports PHP 5.5 or higher.

This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple. I will show you through the step by step installation zend guard loader (Zend Optimizer) on CentOS 6.

Step 1. Download Zend Guard Loader packages.

Zend Guard Loader can only be downloaded while logged in to your Zend account. You cannot directly download it to your server. So, you’ll need to download the .tar.gz file and then SFTP it to your server:

Extract Zend Guard Loader:

Now enter the the new folder extracted and find the ZendGuardLoader.so file, lets copy it to the modules folder:

Create ZendGuard.ini file inside /etc/php.d directory:

Step 2. Restart Apache service.

Step 3. Verify Zend Guard Loader Is Enabled.

Run the following command to verify Zend Guard Loader is enabled:

Congratulation’s! You have successfully installed Zend Guard Loader. Thanks for using this tutorial for installing zend guard loader (Zend Optimizer) on CentOS 6 system.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get a best deal!

Save

How To Install Poweradmin on CentOS 6

poweradmin-logo

For those of you who didn’t know, Poweradmin is a friendly web-based DNS administration tool for Bert Hubert’s PowerDNS server. The interface has full support for most of the features of PowerDNS. Poweradmin allows us to easily define Zone files and record types. This version of Poweradmin is an adaptation of the Poweradmin that was written by Jorn Ekkelenkamp and Roeland Nieuwenhuis long time ago. The current version has been extended with numerous features that were missing in the original code and has considerable performance improvements.

This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple. I will show you through the step by step installation Poweradmin on CentOS 6.

Step 1. First, make sure you have installed PowerDNS on your system.

Step 2. Enable EPEL repository on your system.

Step 3. Install and configure PHP and Nginx.

Change PHP-FPM to listen on a unix socket, open the default www pool:

Restart the service for changes to take effect:

Create a php session directory and change the ownership to apache:

Create a new Nginx virtual host with the following content:

Restart nginx by running the following commands:

Step 4. Install Poweradmin.

Download the latest version of Poweradmin:

Set the correct permissions:

Step 5. Accessing Poweradmin.

Poweradmin will be available on HTTP port 80 by default. Open your favorite browser and navigate to http://pdns.your-domain.com/installer or http://server-ip/installer.

Step by step guide start the installation wizard:

  1. Select the desired language.
  2. Just click on the “Go to step 3″ button
  3. Fill the database information fields, select “MySQL” for Database type and “localhost” for the “Hostname” and set the Poweradmin administrator password.
  4. Set the username and password for Poweradmin, Hostmaster and Primary and Secondary nameservers.
  5. Before going to next step to create less privileged user poweradmin, perform the mariadb command shown on the screen.
  6. If you have set the correct permissions the installer will create your poweradmin php configuration file.

Congratulation’s! You have successfully installed Poweradmin. Thanks for using this tutorial for installing Poweradmin web-based control panel for PowerDNS on CentOS 6 system.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get a best deal!

How To Install PowerDNS on Ubuntu 14.04

Install PowerDNS on Ubuntu 14.04

For those of you who didn’t know, PowerDNS is a MySQL-based DNS server, written in C++ and licensed under the GPL. PowerDNS can be managed through a web interface (PowerAdmin). Unlike Bind, PowerDNS can be setup using a multitude of backends such as Bind Zone Files, or various Databases.

This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple. I will show you through the step by step installation PowerDNS on Ubuntu 14.04.

Step 1. First you need to update repository on your system.

Step 2. Install MySQL.

By default, MySQL is not hardened. You can secure MySQL using the mysql_secure_installation script. you should read and below each steps carefully which will set root password, remove anonymous users, disallow remote root login, and remove the test database and access to secure MySQL.

Step 3. Configuring MySQL.

Edit /etc/mysql/my.cnf to make MySQL to listen all interfaces:

Restart MySQL service:

Step 4. Install the PowerDNS server and MySql backend.

Step 5. Create PowerDNS Database and User in MySQL.

Login as a MySQL root and create a new database and tables:

Step 6. Configure PowerDNS.

Remove the existing PowerDNS configuration files:

Create file /etc/powerdns/pdns.d/pdns.local.gmysql.conf file:

Add the following lines and set the correct database name and database user which we created earlier:

Finally, restart the PowerDNS service:

Congratulation’s! You have successfully installed PowerDNS. Thanks for using this tutorial for installing PowerDNS on Ubuntu 14.04 system.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get a best deal!

Save

How To Install PowerDNS on CentOS 6

Install PowerDNS on CentOS 6

For those of you who didn’t know, PowerDNS is a MySQL-based DNS server, written in C++ and licensed under the GPL. PowerDNS can be managed through a web interface (PowerAdmin). Unlike Bind, PowerDNS can be setup using a multitude of backends such as Bind Zone Files, or various Databases.

This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple. I will show you through the step by step installation PowerDNS on CentOS 6.

Step 1. First, you need to enable EPEL repository on your system.

Step 2. Install MySQL.

Enable MySQL on boot and start MySQL server:

Step 3. Configuring MySQL.

By default, MySQL is not hardened. You can secure MySQL using the mysql_secure_installation script. you should read and below each steps carefully which will set root password, remove anonymous users, disallow remote root login, and remove the test database and access to secure MySQL.

Step 4. Create PowerDNS Database and User in MySQL.

Login as a MySQL root and create a new database and tables:

Step 5. Install PowerDNS.

Enable PowerDNS on boot and start PowerDNS server:

Step 6. Configure PowerDNS.

Open the /etc/pdns/pdns.conf file and add the following lines:

Finally, restart the Power DNS service:

Congratulation’s! You have successfully installed PowerDNS. Thanks for using this tutorial for installing PowerDNS on CentOS 6 system.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get a best deal!

Save

How To Install VNC Server on CentOS 6

vnc-server-logo

For those of you who didn’t know, VNC (Virtual Network Computing) server is a free and open source software which is designed for allowing remote access to the Desktop Environment of the server to the VNC Client whereas  VNC viewer is used on remote computer to connect to the server. To use VNC you must have TCP/IP connection and VNC viewer client to connect to a computer running VNC server component. The server transmits a duplicate display of a remote computer to the viewer.

This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple. I will show you through the step by step installation VNC server on CentOS 6.

Step 1. First, you need to update the system to ensure that we have all of the latest software installed.

Step 2. Install required packages.

Step 2. Enabling VNC Server service.

Step 4. Create VNC password for user.

Step 5. Configure VNC server.

Add the following to the end of the file:

Step 6. Configure firewall rules to allow the VNC connection.

Step 7. Setting Gnome session VNC.

Restart VNC service.

Now kill the VNC Server:

Edit the xstartup file in .vnc directory:

Comment the last line and run the Gnome:

Restart the service:

Step 8.
Now go to your Windows or Linux machine and download VNC Viewer client and install in your system to access the desktop. Now you can able to connect VNC server using IP and Port ( Eg : 192.168.1.10:1) and you will be asked to enter the password, enter the password that you have created earlier.

install-vnc-server-centos6

vnc-remote-desktop-client

Congratulation’s! You have successfully installed VNC server. Thanks for using this tutorial for installing VNC server on CentOS 6 system.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get a best deal!

How To Install VNC Server on CentOS 7

vnc-server-logo

For those of you who didn’t know, VNC (Virtual Network Computing) server is a free and open source software which is designed for allowing remote access to the Desktop Environment of the server to the VNC Client whereas  VNC viewer is used on remote computer to connect to the server .

This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple. I will show you through the step by step installation VNC server on CentOS 7.

Step 1. First, you need to update the system to ensure that we have all of the latest software installed.

Step 2. Install Gnome desktop.

Step 3. Install tigervnc server and X11 fonts.

Copy the VNC server configuration file to /etc/systemd/system/ for configuring the system service. While copying, you can mention which port it should listen. By default VNC server listens on 5900:

Edit VNC server file configuration:

Step 4. Configure firewall rules to allow the VNC connection.

Step 5. Start VNC server.

Set the password.

Step 6. Enabling and starting the VNC service

Reload the systemctl daemon as root.

Start the VNC service as root:

Enable it on system startup as root:

Step 7. Now you can able to connect VNC server using IP and Port ( Eg : 192.168.2.109:5 ) and you will be asked to enter the password, enter the password that you have created earlier.

VNC-authendication-CentOS-7-

CentOS-7-VNC-Desktop

Congratulation’s! You have successfully installed VNC server. Thanks for using this tutorial for installing VNC server on CentOS 7 system.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get a best deal!

How To Install Apache Solr on Ubuntu 14.04

apache-solr-logo

For those of you who didn’t know, Apache Solr is an open source enterprise search platform used to easily create search engines which searches websites, files and databases. Its major features include powerful full-text search, faceted search, distributed search, hit highlighting and index replication. But before you proceed, make sure you have already installed Tomcat which is necessary to access Solr from the browser.

This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple. I will show you through the step by step installation Apache Solr on Ubuntu 14.04.

Step 1. First, Install Java.

Because tomcat and solr are Java based softwares we need the Java environment (As it is advised in the Solr wiki : prefere a full JDK to a simple JRE.)

Add the webupd8team Java PPA repository in your system:

After added the PPA, run commands below one by one to install Java:

Verify installed Java version:

Step 2. Install Apache Solr.

Ubuntu provides 3 Solr packages by default: nsolr-commo, the package that contains the actual Solr code; solr-tomcat, Solr integrated with Tomcat; and solr-jetty, which is just like solr-tomcat but with the Jetty web server. In this article, we will install solr-tomcat, so execute the following command:

Then let’s start the server:

Important: the config & index will be stored at : /usr/share/solr/

Step 3. Install tomcat management utilities.

Once installed, you’ll have to grant some user:

Paste these lines (change username and password as you whish):

Step 4. Accessing Apache Solr.

Apache Solr will be available on HTTP port 8080 by default. Open your favorite browser and navigate to http://yourdomain.com:8080/solr  or http://server-ip:8080/solr. If you are using a firewall, please open port 8080 to enable access to the control panel.

solr-web-admin

Congratulation’s! You have successfully installed Apache Solr. Thanks for using this tutorial for installing Apache Solr on Ubuntu 14.04 system.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get a best deal!