How To Install PostgreSQL on CentOS 7

Install PostgreSQL on CentOS 7

or those of you who didn’t know, PostgreSQL is a free, open-source object-relational database management system (object-RDBMS), similar to MySQL, and is standards-compliant and extensible. It is commonly used as a back-end for web and mobile applications. PostgreSQL, or ‘Postgres’ as it is nicknamed, adopts the ANSI/ISO SQL standards together, with the revisions. The vast majority of Linux distributions have PostgreSQL available in supplied packages.

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 PostgreSQL in CentOS 7 server.

Install PostgreSQL on CentOS 7

Step 1. First, add PostgreSQL Yum repository to your system.

Step 2. Install PostgreSQL server.

Once the postgresql94-server package is installed, you need to initialize a database:

Step 3. Start PostgreSQL server.

Step 4. Configure Iptables or firewall.

Adjust iptables to access postgresql from remote systems:

Step 5. Create test database and Create new user PostgreSQL.

Once the installation is completed, you can start using the PostgreSQL 9.4 on your CentOS 7 by typing the commands:

Create test database (as postgres user).

Login test database (as postgres user).

Delete database (as postgres user).

Congratulation’s! You have successfully installed PostgreSQL Server. Thanks for using this tutorial for installing PostgreSQL on CentOS 7 systems. For additional help or useful information, we recommend you to check the official PostgreSQL web site.

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 Munin on CentOS 6

munin-webserver-monitoring

For those of you who didn’t know, Munin is a free and open-source networked resource monitoring tool. It offers monitoring and alerting services for servers, switches, applications, and services. Munin uses the RRDtool  Munin uses the RRDtool to presents all the information in graphs through a web interface.

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 munin on centos 6.

Step 1. First we need to add EPEL repository in our system.

Step 2. Install Apache which is available from the CentOS repositories.

Step 3. Install Munin packages.

Step 4. Configuring Apache web server.

By default Munin creates Apache configuration file /etc/httpd/conf.d/munin.conf. Edit Munin Apache configuration file and add following content:

Step 5. Configuring Munin server.

Edit the Munin configuration file and add/modify the following lines:

Create password for the Munin administrator user:

Step 6. Start Apache and Munin services.

If all is well, open Munin at http://your-domain.com/munin using ‘admin’ as username and the previously generated munin password as password and you will be able to access Munin graphs and data.

Munin-graphs-data

Congratulation’s! You have successfully installed munin. Thanks for using this tutorial for installing munin server monitoring on centos 6 systems.

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 Munin on Ubuntu 14.04

Install Munin on Ubuntu 14.04

For those of you who didn’t know, Munin is a free and open-source networked resource monitoring tool. It offers monitoring and alerting services for servers, switches, applications, and services. Munin uses the RRDtool to create graphs which are accessible over a web browser. Also, Munin can be configured to send alerts when some service/application etc. is not working and Munin will automatically send an additional email alert once the problem has been resolved.

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 munin on ubuntu 14.04 server.

Install Munin on Ubuntu 14.04

Step 1. First make sure that all your system packages are up-to-date by running these following apt-get commands in the terminal.

Step 2. Install Apache which is available from the ubuntu repositories.

Step 3. Install Munin.

Install Munin and extra plugins using the following command:

Step 4. Configuring Apache web server.

Next, you will be editing Munin’s apache configuration file to point apache in the right direction when you request the monitoring information:

Edit the ‘/etc/munin/apache.conf’ configuration file and add the following lines:

Step 5. Configuring Munin server.

Create the directory path that you referenced in the munin.conf file and modify the ownership to allow munin to write to it:

Create a backup of the original Munin configuration file:

Edit the Munin configuration file and add/modify the following lines:

Create password for the Munin administrator user:

Step 6. Start Apache and Munin services.

If all is well, open Munin at http://munin.your-domain.com using ‘munin’ as username and the previously generated munin password as password and you will be able to access Munin graphs and data.

Munin-graphs-data

Congratulation’s! You have successfully installed munin. Thanks for using this tutorial for installing munin server monitoring on ubuntu 14.04 systems. For additional help or useful information, we recommend you to check the official munin web site.

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 ProFTPD on Ubuntu 14.04

proftpd-logo

For those of you who didn’t know, ProFTPD is a GPL-licensed FTP server that can be installed for free on your Linux system. It’s an alternative to vsftpd. ProFTPD open source FTP server one  most used, secure and reliable file transfer daemons on Unix environments, due to its file configurations simplicity speed and easy setup.

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 ProFTPD on ubuntu 14.04.

Step 1. First make sure that all your system packages are up-to-date by running these following apt-get commands in the terminal.

Step 2. Install ProFTPD and any required packages.

During the installation, you’ll be prompted to choose the installation method that you want. There are two installation method, standard daemon and the inet daemon methods.

Step 3. Configure ProFTPD.

ProFTPD default configuration file is at /etc/proftpd.conf.

Change the ServerName to the hostname of your server. In the case below, ftp.idroot.net is an example:

Step 4. Start ProFTPD Server.

Run the commands below to start ProFTPD:

Then set the ProFTPD service to automatically start at boot:

Step 5. Access the FTP server.

Once you have installed the FTP server and configured it to your liking, Now all you have to do is open an FTP client and connect to the server using its IP address, hostname or domain name. If  everything is configure correctly, you should be granted access to the server with the correct username and password.

Congratulation’s! You have successfully installed ProFTPD. Thanks for using this tutorial for installting ProFTPD on ubuntu 14.04 systems.

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 ProFTPD on CentOS 7

proftpd-logo

For those of you who didn’t know, ProFTPD is a GPL-licensed FTP server that can be installed for free on your Linux system. ProFTPD open source FTP server one  most used, secure and reliable file transfer daemons on Unix environments, due to its file configurations simplicity speed and easy setup.

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 ProFTPD on centos 7.

Step 1. First, add the EPEL repository.

Step 2. Install ProFTPD server.

Step 3. Configure firewall rules and access files.

By default, FTP access is blocked by the firewall. To enable access through the firewall, run the commands below:

Next, reload the firewall configuration by running the commands below:

Step 4. Configure ProFTPD.

ProFTPD default configuration file is at /etc/proftpd.conf.

Change the ServerName to the hostname of your server. In the case below, ftp.idroot.net is an example:

Step 5. Start ProFTPD Server.

Run the commands below to start ProFTPD:

Then set the ProFTPD service to automatically start at boot:

Step 6. Access the FTP server.

Once you have installed the FTP server and configured it to your liking, Now all you have to do is open an FTP client and connect to the server using its IP address, hostname or domain name. If  everything is configure correctly, you should be granted access to the sever with the correct username and password.

Congratulation’s! You have successfully installed ProFTPD. Thanks for using this tutorial for installting ProFTPD on centos 7 systems.

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 Jetty Web Server on Ubuntu 14.04

jetty_webserver-logo

For those of you who didn’t know, Jetty is a pure Java-based HTTP (Web) server and Java Servlet container. Jetty is now often used for machine to machine communications, usually within larger software frameworks. Jetty is developed under open source license,part of Eclipse foundation. Jetty is also the server in open source projects such as Lift, Eucalyptus, Red5, Hadoop and I2P. Jetty supports the latest Java Servlet API (with JSP support) as well as protocols SPDY and WebSocket.

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 Jetty on ubuntu 14.04.

Step 1. First of all we have to install java JDK.

Step 2. Download the latest version of Jetty.

Rename the file name to jetty:

Step 3. Create Jetty user to run jetty web server on system start-up.

Step 4. Jetty configuration file.

Add the following information in /etc/default/jetty, replace port and listening address with your value:

Step 5. Start Jetty web server.

You need to start jetty service using the following command:

If all is well, you should see the standard Jetty splash page when you visit the following address in your browser http://your-ip-address:8080

Congratulation’s! You have successfully installed jetty. Thanks for using this tutorial for installing Jetty web server on ubuntu 14.04 systems.

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 Jetty Web Server on CentOS 7

jetty_webserver-logo

For those of you who didn’t know, Jetty is a pure Java-based HTTP (Web) server and Java Servlet container. Jetty is now often used for machine to machine communications, usually within larger software frameworks. Jetty is developed under open source license,part of Eclipse foundation, it is used in multiple active products such as Apache ActiveMQ, Alfresco, Apache Geronimo,Apache Maven, Apache Spark and also in open source project such as Hadoop, Eucalyptus, Twitter’s Streaming API and Zimbra.

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 Jetty on centos 7.

Step 1. First of all we have to install java JDK.

Step 2. Download latest version of jetty.

Rename the file name to jetty:

Step 3. Create user called jetty to run jetty web server on system start-up.

Step 4. Configure Jetty.

Add the following information in /etc/default/jetty, replace port and listening address with your value:

Step 5. Start Jetty web server

You should now be able to start Jetty freely with the following command:

Now you can access jetty web sever in http://your-ip-address:8080

Congratulation’s! You have successfully installed jetty. Thanks for using this tutorial for installting Jetty web server on centos 7 systems.

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 uTorrent on Ubuntu 14.04

Install uTorrent on Ubuntu 14.04

For those of you who didn’t know, uTorrent is a freeware and a closed source BitTorrent Client. One of the most used lightweight BitTorrent Client, Now it is available for Linux as uTorrent Server. The µTorrent is designed to use minimal computer resources while offering functionality comparable to larger BitTorrent clients such as Vuze or BitComet and also it provides performance, stability, and support for older hardware and versions of operating system.It is available for Microsoft Windows and Mac OS X.

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 uTorrent on Ubuntu 14.04 server.

Install uTorrent on Ubuntu 14.04

Step 1. First, Install dependency library.

Open Terminal and run the following command to install dependency libraries. Assign the password for the user when asked:

Step 2. Download uTorrent package.

Download the latest version of µTorrent server from the official website or simply enter the following command to download the current version:

Move the downloaded tar.gz directory to /opt directory. Run the following commands or you can also do it manually:

Run the following commands to give proper permission to the uTorrent:

Run the command to link uTorrent server to the /user/bin directory:

Step 3. Start uTorrent Server.

Now you can start the utorrent server by using the following command in terminal:

Step 4. Log into uTorrent.

Now you can access the utorrent server from your browser, go to the following link:

Important: Type the User Name as admin and leave the password field as empty and click ok. Check the screen shot below.

Install uTorrent on Ubuntu 14.04

Congratulations! You have successfully installed uTorrent. Thanks for using this tutorial for installing μTorrent (uTorrent) in Ubuntu 14.04 systems. For additional help or useful information, we recommend you to check the official uTorrent web site.

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 Enable Gzip Compression on Apache

Apache-logo

For those of you who didn’t know, Apache’s mod_deflate is an Apache module that will compress output from your server before it is sent to the client. If you have newer version of Apache the mod_deflate module is probably loaded by default, but it may not be turned on. 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. In this post, I will talk about an easy way to enable gzip compression on apache web servers. It’s really not that difficult, Let’s start.

Step 1. First verify that the module is loaded in your httpd.conf file.

Your current version of Apache may already have enabled this module for you, but you may still want to be sure. To enable this module, add the following line (if it does not exist) in Apache configuration file.

Step 2. Configure httpd.conf file.

Open httpd.conf file using a text editor and place the following in it:

Step 3. Restart Apache and Verify.

You can use this link to verify your server gzip using one of domain configured on server.

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” installation, starting from $10 (Paypal payment). Please contact us to get a best deal!

How To Fix Nginx 413 Request Entity Too Large

Fix Nginx 413 Request Entity Too Large

I’m running a Nginx powered server I have configured a while ago. One problem I have on my wordprees sites hosted on that environment is that I couldn’t upload a files larger than 2MB. I got Nginx: 413 Request Entity Too Large error. After investigating I found the client_max_body_size directive determines the maximum accepted body size of client request. If size is greater than the given one, that’s when we get the error “Request Entity Too Large” (413).

If you’re getting 413 Request Entity Too Large errors trying to upload files to your webserver, you need to increase the client body size limit in your nginx.conf configuration file.

Fix Nginx 413 Request Entity Too Large

Step 1. First edit nginx.conf.

Add client_max_body_size in http section:

Step 2. Restart Nginx web server to apply the changes.

Step 3. Edit PHP configuration (optional).

Your php installation also put limits on upload file size. Edit php.ini and set the following directives:

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