How To Install CentOS Web Panel on CentOS 6

Install CentOS Web Panel

CentOS Web Panel is a free alternative to cPanel and provides plenty of features and designed for newbie who want to build a working hosting server easily and to take control or manage his/her server all in an intuitive web interface without having to open any SSH console. CentOS Web Panel provides Apache, Varnish, suPHP & suExec, Mod Security, PHP version switcher, Postfix and Dovecot, MySQL Database Managment, PhpMyAdmin, CSF Firewall, CageFS, SSL Certificates, FreeDNS (DNS server) and many more.

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 CentOS Web Panel on CentOS 6.

Install CentOS Web Panel on CentOS 6

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

 yum update -y

Step 2. Setup Hostname.

You can use the following command for hostname setup:

 hostname srv1.wpcademy.com

Step 2. Downloading and install CentOS Web Panel script.

cd /usr/local/src
wget http://centos-webpanel.com/cwp-latest

Once you download the installer on your server, you are ready to start with the installation process. Installation will take approximately 5-15 minutes depends on your server speed and power. To do so, use the command below:

 sh cwp-latest

Step 3. Accessing CentOS Web Panel.

CentOS Web Panel will be available on HTTPS port 2031 by default. Open your favorite browser and navigate to https://yourdomain.com:2031 or http://server-ip:2030. To log in, you can use ‘root’ as user and your root password. If you are using a firewall, please open port 2030 to enable access to the control panel.

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

How To Install Virtualmin on Ubuntu 14.04

install virtualmin on ubuntu

Virtualmin is an advanced web server management panel, and a very good alternative to cPanel, with the same administration structure based on root users, resellers, and clients. Once installed, you will be able to manage Apache, Nginx, PHP, DNS, MySQL, PostgreSQL, mailboxes, FTP, SSH, SSL, Subversion/Git repositories and many more.

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

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

 apt-get update

Step 2. Downloading and install Virtualmin script.

 wget http://software.virtualmin.com/gpl/scripts/install.sh

Once downloaded, do a chmod +x to make the script executable:

 chmod +x install.sh

Now it is time to running virtualmin install script. Installation will take approximately 5-15 minutes depends on your server speed and power. To do so, use the command below:

./install.sh
### During the installation it will ask you for the host name make sure you enter this correctly ###

Step 3. Accessing Virtualmin.

Virtualmin web based monitoring will be available on HTTPS port 10000 by default. Open your favorite browser and navigate to http://yourdomain.com:10000 or http://server-ip:10000. If you are using a firewall, please open port 10000 to enable access to the control panel.

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

You Might Also Like: How To Install Virtualmin on CentOS 6

How To Install Virtualmin on CentOS 6

install virtualmin on centos

Virtualmin is an advanced web server management panel, and a very good alternative to cPanel, with the same administration structure based on root users, resellers, and clients. Once installed, you will be able to manage Apache, Nginx, PHP, DNS, MySQL, PostgreSQL, mailboxes, FTP, SSH, SSL, Subversion/Git repositories and many more.

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

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

 yum update

Step 2. Install Virtualmin.

Virtualmin can be installed in a number of ways an automated install script or manual Installation. Now you can enter this command to get the installer:

 wget http://software.virtualmin.com/gpl/scripts/install.sh

Once downloaded, do a chmod +x to make the script executable:

 chmod +x install.sh

Now it is time to install VirtualMin. To do so, use the command below:

./install.sh
### During the installation it will ask you for the host name make sure you enter this correctly ###

Step 3. Accessing Virtualmin.

Virtualmin web based monitoring will be available on HTTPS port 10000 by default. Open your favorite browser and navigate to http://yourdomain.com:10000 or http://server-ip:10000. If you are using a firewall, please open port 10000 to enable access to the control panel.

Congratulation’s! You have successfully installed virtualmin. Thanks for using this tutorial for installing virtualmin web server management on CentOS 6 system. For additional help or useful information, we recommend you to check the official virtualmin web site.

You Might Also Like: How To Install Virtualmin on Ubuntu 14.04

How To Install Linux Dash on Ubuntu 14.04

Install Linux Dash on Ubuntu

Linux-dash is a web-based lightweight monitoring dashboard for Linux machines, which can display, in real-time, various system properties, such as CPU load, RAM usage, disk usage, Internet speed, network connections, installed software’s, running processes and many more. The web statistics page allows you to drag and drop the various widgets and rearrange the display as you desire.

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 linux-dash on Ubuntu 14.04.

Step 1. First, install Nginx web server with php-fpm.

apt-get update
apt-get install git nginx php5-json php5-fpm php5-curl

Step 2. Configure Nginx web server.

Create Nginx virtual host for linux-dash.

 ##nano /etc/nginx/conf.d/your-domain.com
server {
   listen  80;
   server_name  your-domain.com www.your-domain.com;
 
   access_log  /var/www/your-domain.com/logs/access.log ;
   error_log    /var/www/your-domain.com/logs/error.log ;
 
   location / {
       root   /var/www/your-domain.com/public_html;
       index  index.php index.html index.htm;
 
   }
 
   error_page   500 502 503 504  /50x.html;
   location = /50x.html {
       root   /var/www/your-domain.com/public_html;
   }
 
  # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  location ~ .php$ {
  fastcgi_pass   127.0.0.1:9000;
  fastcgi_index  index.php;
  root    /var/www/your-domain.com/public_html;
  fastcgi_param  SCRIPT_FILENAME  /var/www/your-domain/public_html$fastcgi_script_name;
  include fastcgi_params;
  }
 
   location ~ /.ht {
       deny  all;
   }
}

Add virtual host on nginx.conf:

# nano /etc/nginx/nginx.conf
### add line like this on http section:
include /etc/nginx/conf.d/*.conf;

Configure php-fpm:

##nano /etc/php5/fpm/pool.d/www.conf 
. . .
listen = 127.0.0.1:9000
user = nginx
group = nginx
. . .

Step 3. Installing Linux Dash.

git clone https://github.com/afaqurk/linux-dash.git
cp -r linux-dash/ /var/www/your-domain.com/public_html
chown -R nginx:nginx /var/www/your-domain.com/public_htm


Step 4. Restart Nginx web server as well as php-fpm.

service php5-fpm restart
service nginx restart


Step 5. Access Linux Dash.

The linux-dash web based monitoring will be available on HTTP port 80 by default. Open your favorite browser and navigate to http://yourdomain.com or http://server-ip. Main page gives you all the information about system, memory, CPU and IO details. If you are using a firewall, please open port 80 to enable access to the control panel.

Linux-dash-web-interface

Congratulation’s! You have successfully installed Linux Dash. Thanks for using this tutorial for installing linux-dash web based monitoring on Ubuntu 14.04 system.

How To Install PowerDNS on Ubuntu 14.04

install powerdns on ubuntu

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.

apt-get update
apt-get upgrade

Step 2. Install MySQL.

 apt-get install mysql-server mysql-client

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.

 mysql_secure_installation

Step 3. Configuring MySQL.

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

 nano /etc/mysql/my.cnf
[...]
#bind-address           = 127.0.0.1
[...]

Restart MySQL service:

 service mysql restart

Step 4. Install the PowerDNS server and MySql backend.

 apt-get install pdns-server pdns-backend-mysql

Step 5. Create PowerDNS Database and User in MySQL.

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

 mysql -u root -p
create database powerdns;
GRANT ALL PRIVILEGES ON powerdns.* TO 'powerdns'@'localhost' IDENTIFIED BY 'powerdnsPassword';
use powerdns;

CREATE TABLE domains (
id INT auto_increment,
name VARCHAR(255) NOT NULL,
master VARCHAR(128) DEFAULT NULL,
last_check INT DEFAULT NULL,
type VARCHAR(6) NOT NULL,
notified_serial INT DEFAULT NULL,
account VARCHAR(40) DEFAULT NULL,
primary key (id)
);
CREATE UNIQUE INDEX name_index ON domains(name);

CREATE TABLE records (
id INT auto_increment,
domain_id INT DEFAULT NULL,
name VARCHAR(255) DEFAULT NULL,
type VARCHAR(6) DEFAULT NULL,
content VARCHAR(255) DEFAULT NULL,
ttl INT DEFAULT NULL,
prio INT DEFAULT NULL,
change_date INT DEFAULT NULL,
primary key(id)
);
CREATE INDEX rec_name_index ON records(name);
CREATE INDEX nametype_index ON records(name,type);
CREATE INDEX domain_id ON records(domain_id);

CREATE TABLE supermasters (
ip VARCHAR(25) NOT NULL,
nameserver VARCHAR(255) NOT NULL,
account VARCHAR(40) DEFAULT NULL
);
exit;

Step 6. Configure PowerDNS.

Remove the existing PowerDNS configuration files:

 sudo rm /etc/powerdns/pdns.d/*.*

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

 nano /etc/powerdns/pdns.d/pdns.local.gmysql.conf

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

launch=gmysql
gmysql-host=localhost
gmysql-user=powerdns
gmysql-password=powerdnsPassword
gmysql-dbname=powerdns

Finally, restart the PowerDNS service:

 service pdns restart

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

You Might Also Like: How To Install PowerDNS on CentOS 6

How To Install PowerDNS on CentOS 6

install powerdns on centos

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.

## RHEL/CentOS 6 64-Bit ##
# wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
# rpm -ivh epel-release-6-8.noarch.rpm
## RHEL/CentOS 6 32-Bit ##
# wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
# rpm -ivh epel-release-6-8.noarch.rpm

Step 2. Install MySQL.

 yum -y install mysql mysql-server

Enable MySQL on boot and start MySQL server:

service mysqld start
chkconfig mysqld on

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.

 mysql_secure_installation


Step 4. Create PowerDNS Database and User in MySQL.

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

 mysql -uroot -p
create database powerdns;
GRANT ALL PRIVILEGES ON powerdns.* TO 'powerdns'@'localhost' IDENTIFIED BY 'powerdnsPassword';
use powerdns;

CREATE TABLE domains (
id INT auto_increment,
name VARCHAR(255) NOT NULL,
master VARCHAR(128) DEFAULT NULL,
last_check INT DEFAULT NULL,
type VARCHAR(6) NOT NULL,
notified_serial INT DEFAULT NULL,
account VARCHAR(40) DEFAULT NULL,
primary key (id)
);
CREATE UNIQUE INDEX name_index ON domains(name);

CREATE TABLE records (
id INT auto_increment,
domain_id INT DEFAULT NULL,
name VARCHAR(255) DEFAULT NULL,
type VARCHAR(6) DEFAULT NULL,
content VARCHAR(255) DEFAULT NULL,
ttl INT DEFAULT NULL,
prio INT DEFAULT NULL,
change_date INT DEFAULT NULL,
primary key(id)
);
CREATE INDEX rec_name_index ON records(name);
CREATE INDEX nametype_index ON records(name,type);
CREATE INDEX domain_id ON records(domain_id);

CREATE TABLE supermasters (
ip VARCHAR(25) NOT NULL,
nameserver VARCHAR(255) NOT NULL,
account VARCHAR(40) DEFAULT NULL
);
exit;

Step 5. Install PowerDNS.

 yum install pdns-backend-mysql pdns bind-utils

Enable PowerDNS on boot and start PowerDNS server:

service pdns start
chkconfig pdns on

Step 6. Configure PowerDNS.

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

launch=gmysql
gmysql-host=localhost
gmysql-user=powerdns
gmysql-password=powerdnsPassword
gmysql-dbname=powerdns

Finally, restart the Power DNS service:

 service pdns restart

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

You Might Also Like: How To Install PowerDNS on Ubuntu 14.04

How To Install VNC Server on CentOS 6

Install VNC Server on CentOS 6

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.

 yum update

Step 2. Install required packages.

yum groupinstall Desktop
yum install tigervnc-server
yum install xorg-x11-fonts-Type1
yum install vnc

Step 3. Enabling VNC Server service.

service vncserver start
chkconfig vncserver on

Step 4. Create VNC password for user.

 vncpasswd

Step 5. Configure VNC server.

 nano /etc/sysconfig/vncservers

Add the following to the end of the file:

VNCSERVERS="1:wpcademy"
VNCSERVERARGS[1]="-geometry 1024x600"

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

iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 5801  -j ACCEPT
iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 5901  -j ACCEPT
iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 6001  -j ACCEPT
service iptables save
service iptables restart

Step 7. Setting Gnome session VNC.

Restart VNC service.

 service vncserver restart

Now kill the VNC Server:

 vncserver -kill :1

Edit the xstartup file in .vnc directory:

 nano .vnc/xstartup

Comment the last line and run the Gnome:

#twm & 
exec gnome-session &

Restart the service:

 service vncserver restart

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.

You Might Also Like: How To Install VNC Server on CentOS 7