How To Install DenyHost on CentOS 6

denyhosts-logo

For those of you who didn’t know, DenyHosts is a log-based intrusion prevention security tool for SSH servers written in Python. It is intended to prevent brute-force attacks on SSH servers by monitoring invalid login attempts in the authentication log and blocking the originating IP addresses. Due to the simplicity of DenyHost and the ability to manually configure your rules it is widely used as an alternative to Fail2ban which is a bit more complicated to use and configure.

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 DenyHost on CentOS  6 server.

Install DenyHost on CentOS 6

Step 1. First, you need to enable EPEL repository on your system  and make sure that all packages are up to date.

Step 2. Install DenyHost.

Install DenyHosts from EPEL repository by using following command:

Step 3. Configure DenyHosts.

Once the Denyhosts installed, make sure to whitelist your own IP address, so you will never get locked out. To do this, open a file /etc/hosts.allow:

Below the description, add the each IP address one-by-one on a separate line, that you never want to block. The format should be as follows:

You can further configure any settings in the DenyHosts.conf file by going to the following and updating according to your preference:

Save your work and restart DenyHosts with the following command:

View DenyHosts logs:

Congratulation’s! You have successfully installed DenyHost. Thanks for using this tutorial for installing DenyHost on CentOS 6 system. For additional help or useful information, we recommend you to check the official DenyHost 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 LEMP on CentOS 6

Install LEMP on CentOS 6

For those of you who didn’t know, A LEMP software stack is a group of open source software that is typically installed together to enable a server to host dynamic websites and web apps. This term is actually an acronym which represents the Linux operating system, with the Nginx web server (which replaces the Apache component of a LAMP stack). The site data is stored in a MySQL database (using MariaDB), and dynamic content is processed by PHP.

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 LEMP (Linux Nginx, MariaDB and PHP) on CentOS  6 server.

Install LEMP on CentOS 6

Step 1. First, you need to enable EPEL repository on your system  and make sure that all packages are up to date.

Step 2. Installing Nginx.

We will be installing Nginx with yum, with the following command:

Start Nginx and add it to automatically start on your system start-up using:

You can verify that Nginx is really running by opening your favorite web browser and entering the URL http://your-server’s-address and you need to open port 80 to make your web server accessible:

Nginx Default Page
Nginx Default Page

Step 3. Configuring Nginx and Default Virtual Host.

Finally we need to configure our nginx virtual hosts. This is much simpler to configure than Apache. Take a look at the config below, it is slightly different to our default config, but I’ll explain the changes below:

Step 4. Installing MySQL.

Install MySQL with the following command to begin the install:

After that add it to your system startup and start the MySQL server using the following commands:

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:

To log into MySQL, use the following command (note that it’s the same command you would use to log into a MySQL database):

Step 5. Installing PHP.

Finally, run the commands below to install PHP along with other good-to-have modules:

You may want to install some other PHP extensions required by your applications. The following is a list of the available PHP modules:

Configure PHP-FPM:

Replace the values of user and group with nginx like below:

Restart Nginx so all the changes take effect:

To test PHP, create a test file named info.php with he content below. Save the file, then browse to it to see if PHP is working:

Congratulation’s! You have successfully installed LEMP stack. Thanks for using this tutorial for installing LAMP (Linux Nginx, MariaDB and PHP) on CentOS 6 system. For additional help or useful information, we recommend you to check the official Nginx, MySQL and PHP 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 LEMP on CentOS 7

LEMP-linux

For those of you who didn’t know, A LEMP software stack is a group of open source software that is typically installed together to enable a server to host dynamic websites and web apps. This term is actually an acronym which represents the Linux operating system, with the Nginx web server (which replaces the Apache component of a LAMP stack). The site data is stored in a MySQL database (using MariaDB), and dynamic content is processed by PHP.

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 LEMP (Linux, Nginx, MariaDB and PHP) on CentOS 7 server.

Install LEMP on CentOS 7

Step 1. First of all make sure that all packages are up to date.

Step 2. Installing and Configuring NGINX in CentOS 7.

Nginx is not yet available in CentOS 7 official repositories, so we have to add / install Nginx yum repository by issuing command below:

Start Nginx and add it to automatically start on your system start-up using:

You can verify that Nginx is really running by opening your favorite web browser and entering the URL http://your-server’s-address, if it is installed, then you will see this:

Nginx Default Page
Nginx Default Page

Step 3 Configure Nginx web server.

Let’s say you have a domain mydomain.com and you like to use it to host a PHP based web application in /var/www/mydomain.com like WordPress, Joomla. To set-up Nginx serve requests for mydomain.com, and serve the PHP scripts in /var/www/mydomain.com you would have to create a server block in /etc/nginx/conf.d/mydomain.com.conf which would look something like:

Test and re-start Nginx using:

Step 4. Installing and Configuring PHP on CentOS 7.

Install PHP on the CentOS 7 with the following command to begin the install:

You may want to install some other PHP extensions required by your applications. The following is a list of the available PHP modules:

Restart Nginx so all the changes take effect:

To test PHP, create a test file named info.php with he content below. Save the file, then browse to it to see if PHP is working:

Step 5. Installing and Configuring MariaDB on CentOS 7.

Install MariaDB with the following command to begin the install:

After that add it to your system startup and start the MariaDB server using the following commands:

By default, MariaDB is not hardened. You can secure MariaDB 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:

To log into MariaDB, use the following command (note that it’s the same command you would use to log into a MySQL database):

Step 6. Configure IPTables or Firewall.

Congratulation’s! You have successfully installed LEMP stack. Thanks for using this tutorial for installing LEMP (Linux Nginx, MariaDB and PHP) in CentOS 7 system. For additional help or useful information, we recommend you to check the official Nginx, MariaDB and PHP 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 Sentora on Ubuntu 14.04

Install Sentora on Ubuntu 14.04

In this tutorial we will show you how to install and configuration of Sentora on your Ubuntu 14.04 server.  For those of you who didn’t know, Sentora is an open-source web hosting control panel built specifically to work on a variety of Linux distributions. Sentora is a fully featured, free hosting control panel that can help you easily manage your server through its user friendly interface. It is easy to install and includes all the software you will need to manage multiple websites and clients on a single 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 Sentora web hosting panel in Ubuntu 14.04 server.

Install Sentora on Ubuntu 14.04

Step 1. First of all make sure that all packages are up to date.

Step 2. Download installation script Sentora.

Sentora is not in the repository, available for install, so we will need to download the installation script from the web:

Run the installation script use the command:

Step 3. Accessing Sentora.

Sentora will be available on HTTP port 80 by default. Open your favorite browser and navigate to http://yourdomain.com or http://server-ip. Use username / password generated by the installation script to login. Once you logged in you can start creating new domains, web hostings, and email hostings. If you are using a firewall, please open port 80 to enable access to the control panel.

Install Sentora on Ubuntu 14.04

Install Sentora on Ubuntu 14.04

Congratulation’s! You have successfully installed Sentora. Thanks for using this tutorial for installing Sentora web hosting panel in Ubuntu 14.04 system. For additional help or useful information, we recommend you to check the official Sentora 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 Install LAMP on Ubuntu 15.04

lamp-logo

This tutorial will show you how to install LAMP on Ubuntu 15.04. For those of you who didn’t know, LAMP represents a full featured stack containing the most popular web server known as Apache, the most popular database server MySQL and the most popular open-source web programming language known as PHP. All components are free and open-source software, and the combination is suitable for building dynamic web pages.

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 LAMP (Linux Apache, MySQL and PHP) on Ubuntu 15.04 server.

Install LAMP on Ubuntu 15.04

Step 1. First of all make sure that all packages are up to date.

Step 2. Installing Apache on Ubuntu 15.04.

We will be installing Apache with apt-get, which is the default package manager for ubuntu:

You can verify that Apache is really running by opening your favorite web browser and entering the URL http://your-server’s-address, if it is installed, then you will see this:

Apache Default Page
Apache Default Page

Step 3. Installing MySQL.

To install MySQL in Ubuntu 15.04 run the following command:

Once complete, you can verify MySQL is installed by running the below command:

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:

To log into MySQL, use the following command (note that it’s the same command you would use to log into a MySQL database):

Step 4. Installing PHP.

To install PHP in Ubuntu 15.04 simply run the following command:

Your server should restart Apache automatically after the installation of both MySQL and PHP. If it doesn’t, execute this command:

To test PHP, create a test file named info.php with he content below. Save the file, then browse to it to see if PHP is working:

Try to access it at http://your_server_ip/info.php . If the PHP info page is rendered in your browser then everything looks good and you are ready to proceed further.

PHP version and Information
PHP version and Information

Congratulation’s! You have successfully installed LAMP stack. Thanks for using this tutorial for installing LAMP (Linux Apache, MySQL and PHP) in Ubuntu 15.10 system. For additional help or useful information, we recommend you to check the official Apache, MySQL and PHP 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 Java JDK 9 on Ubuntu 15.04

java-logo

Here are many programs and scripts that require java to run it, but usually Java is not installed by default on VPS or Dedicated 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 Java JDK 9 on Ubuntu 15.04.

Note: Java 9 is not a stable release, so I recommend you to use java stable release 8 for productions servers.

Install Java JDK 9 on Ubuntu 15.04

Step 1. Remove the OpenJDK from the system, if you have it already installed.

Step 2. Add the webupd8team Java PPA repository in your system.

Step 3. Install Java JDK 9.

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

Once the script successfully installs Java 9 on your system, you may run command to set ava 9 environment variables:

Step 4. Verify Installed Java Version.

Result:

Congratulation’s! You have successfully installed Java. Thanks for using this tutorial for installing Oracle Java (JDK) 9 on Ubuntu 15.04 system. For additional help or useful information, we recommend you to check the official Java 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 OwnCloud 8 on Ubuntu 15.04

OwnCloud-logo

For those of you who didn’t know, OwnCloud is a free and open-source software which enables you to create a private “file-hosting” cloud. OwnCloud is similar to DropBox service with the diference of being free to download and install on your private server. Owncloud made by PHP and backend database MySQL (MariaDB), SQLLite or PostgreSQL. OwnCloud also enables you to easily view and sync address book, calendar events, tasks and bookmarks. You can access it via the good looking and easy to use web interface or install OwnCloud client on your Desktop or Laptop machine (supports Linux, Windows and Mac OSX).

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 OwnCloud 8 on Ubuntu 15.04.

Step 1. First of all log in to your server as root and make sure that all packages are up to date.

Step 2. Instal Apache web server on your Ubuntu 15.04 VPS if it is not already installed.

Step 3. Next, install PHP on your server.

Once the installation is done add the following PHP modules required by OwnCloud:

Step 4. Install MySQL database server.

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.

Next we will need to log in to the MySQL console and create a database for the OwnCloud. Run the following command:

This will prompt you for a password, so enter your MySQL root password and hit Enter. Once you are logged in to your database server you need to create a database for OwnCloud installation:

Step 6. Installing Owncloud 8.

First we will need to download the latest stable release of OwnCloud on your server (at the time version 8.1.0).

Set the directory permissions:

Step 7. Configuring Apache for OwnCloud.

While configuring Apache web server, it is recommended that you to enable .htaccess to get a enhanced security features, by default .htaccess is disabled in Apache server. To enable it, open your virtual host file and make AllowOverride is set to All.For example, here i used external config file instead of modifying main file.

Remember to restart all services related to Apache server.

Step 8. Access OwnCloud application.

Navigate to http://your-domain.com/ and follow the easy instructions. Enter username and password for the administrator user account, click on the ‘Advanced options’ hyperlink and enter the data directory (or leave the default setting), then enter database username, database password, database name, host (localhost) and click ‘Finish setup’.

install-OwnCloud

Congratulation’s! You have successfully installed OwnCloud. Thanks for using this tutorial for installing OwnCloud 8 on Ubuntu 15.04 system. For additional help or useful information, we recommend you to check the official OwnCloud 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 Change SSH Port in Ubuntu

Change SSH Port in Ubuntu

For those of you who didn’t know, SSH is program and protocol for securely connecting into remote machines across a network. It allows you to run programs, and do a variety of tasks as if you were sitting at the machine. SSH is very similar to telnet except for it is with encryption to protect the transferred information and authentication.

The Secure Shell (SSH) Protocol by default uses port 22. Accepting this value does not make your system insecure, nor will changing the port provide a significant variance in security. However, changing the default SSH port will stop many automated attacks and a bit harder to guess which port SSH is accessible from

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 tutorial is quite simple. I will show you through the step by step change the default SSH port on Ubuntu.

NOTE: Before changing the port, you should make sure that the new port is free and it is not used by another service on your VPS. You should also check if the port is not closed in your server firewall.

Change SSH Port in Ubuntu

Step 1. Log into your server as the root user.

Step 2. Open our SSH configuration.

Edit the line which states ‘Port 22’. Choose an appropriate port, also making sure it not currently used on the system. Here I am using 959:

Once you have the change done, simply exit and save the sshd_conf file. Now all you need to run is the below command and it will restart the SSH server. The next time you want to connect via SSH, you will need to do so on your new port, in our case, 959:

SSH will listen on port 959. You can check this by executing the following command in the terminal:

Verify SSH is listening on the new port by connecting to it. Note how the port number now needs to be declared:

Congratulation’s! You have successfully change the default SSH port. Thanks for using this tutorial for change OpenSSH port number on Ubuntu 16.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!

Save

How To Change SSH Port in CentOS

idroot-ssh-logo

For those of you who didn’t know, SSH is program and protocol for securely connecting into remote machines across a network. It allows you to run programs, and do a variety of tasks as if you were sitting at the machine. SSH is very similar to telnet except for it is with encryption to protect the transferred information and authentication.

The Secure Shell (SSH) Protocol by default uses port 22. Accepting this value does not make your system insecure, nor will changing the port provide a significant variance in security. However, changing the default SSH port will stop many automated attacks and a bit harder to guess which port SSH is accessible from

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 tutorial is quite simple. I will show you through the step by step change the default SSH port on CentOS.

Step 1. Log into your server as the root user.

Step 2. Open our SSH configuration.

Edit the line which states ‘Port 22’. Choose an appropriate port, also making sure it not currently used on the system.

Once you have the change done, simply exit and save the sshd_conf file. Now all you need to run is the below command and it will restart the SSH server. The next time you want to connect via SSH, you will need to do so on your new port, in our case, 922:

Verify SSH is listening on the new port by connecting to it. Note how the port number now needs to be declared:

Step 3. Configure IPTables and Firewall.

After you are finished configuring SSH, you will need to add the port to iptables as well as your installed firewall:

Congratulation’s! You have successfully change the default SSH port. Thanks for using this tutorial for change OpenSSH port number 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 Sentora on CentOS 7

sentora-logo

For those of you who didn’t know, Sentora is an open-source web hosting control panel built specifically to work on a variety of Linux distributions. Sentora is a fully featured, free hosting control panel that can help you easily manage your server through its user friendly interface. It is easy to install and includes all the software you will need to manage multiple websites and clients on a single 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 Sentora web hosting panel on CentOS 7.

Step 1. First, download installation script Sentora.

Sentora is not in the repository, available for install, so we will need to download the installation script from the web. To download files from the web we can use the wget command. Wget is not installed in the minimal installation of CentOS. To install wget issue the following command:

Download the installation script file using wget and make it executable:

Run the installation script use the command:

Step 2. Accessing Sentora.

Sentora will be available on HTTP port 80 by default. Open your favorite browser and navigate to http://yourdomain.com or http://server-ip. Use username / password generated by the installation script to login. Once you logged in you can start creating new domains, web hostings, and email hostings. If you are using a firewall, please open port 80 to enable access to the control panel.

sentora-login-page

sentora-control-panel

Congratulation’s! You have successfully installed Sentora. Thanks for using this tutorial for installing Sentora web hosting panel on CentOS 7 system. For additional help or useful information, we recommend you to check the official Sentora 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!