9 Steps to Setup Dedicated Server for your Website

dedicated serverThere are different types of hosting services are used in the computer technology such as shared hosting, VPS (Virtual Private Server) and Dedicated Server hosting. For new websites with low numbers of visitors, I would highly recommend getting a shared hosting. If you need more control of the server, then you should moving from shared hosting to a VPS. There are plenty of hosting companies offering Virtual Private Servers, and VPS hosting is getting cheaper. This blog hosted at RamNode VPS.

At some point, your site will get super slow server performance impact on limited resources when running VPS hosting. More server resources required is due to the increased number of visitors to the tens of thousands or hundreds of thousands per day.

At the situation when you are hitting super slow website performance due to huge numbers of traffic, I would recommend you to getting dedicated servers. Cheaper way is to setup VPS additional to balance the load. If cost is not an issue, I always recommend you to purchase a dedicated server as this will give you excellent processing performance. In a dedicated server environment , resources such as memory , hard drive storage capacity, processing power, and network access are all 100% to dedicated servers instead of shared with multiple VPS or dozens of shared hosting customers. Popular websites on the Internet certainly have excellent servers behind them. Without such an excellent server, web sites with high concurrency of visitors will not be able to survive.

If you are an experienced system administrator, the following articles may not attract you, but for web developers and those new to the web hosting, the following article can be a useful guide on their first steps. I believe the popular website on the internet has been setup by a consultant who specializes in servers or installed by an experienced system administrator. In this article, I would like to share 9 steps to setup Dedicated Server for your Website.

Once you have purchased a dedicated server, you can log in to your server to complete the setup of your server from start to finish. Below is a guide and checklist for you who are new to server administration.

9 Steps to Setup Dedicated Server

1. Choose and Install Linux operating system :

Choosing the right platform on which to host your dedicated server. Please make sure that you are familiar with the preferred operating system (OS) either CentOS or Fedora or Ubuntu or maybe Windows OS. If you choose linux OS, I would recommend you to do a clean minimal installed of the OS.

2. Update operating system :

Make sure that the OS has been applied the latest patches.
How to Update CentOS 6.4 System using ‘yum update’

3. Install Apache or Nginx Web server :

Apache httpd is one of the most popular web servers and has a lot of features that make it very extensible and useful for many different types of websites. As an alternative to Apache http server, you also can install NGINX. Nginx or “engine x” is a free, open-source HTTP server that provide high-performance edge web server with the lowest memory footprint and the key features to build modern and efficient web infrastructure. I used Nginx to run this blog.

How to Setup Nginx With PHP-FastCGI on CentOS 6.2/CentOS 6.3 VPS Server

4. Install MySQL Database server :

MySQL server is a database server that can stores and retrieves data for the blog, websites and applications. It is one of the most popular most used in the internet especially for content management and blogging site.

5. Install PHP :

PHP: Hypertext Preprocessor is a widely used, free and open-source server-side scripting language that was especially designed for web development to produce dynamic web pages and can be embedded into HTML.

6. Install Bind DNS server :

BIND (the Berkeley Internet Name Domain) also known as NAMED is the most widely used DNS server in the internet. Bind DNS helps to resolve domain name to ip address and ip address to domain name.

7. Install FTP server :

File Transfer Protocol (FTP) is a network protocol used transfer file in the network. one of the most popular FTP server for Unix/Linux is vsftpd. Vsftpd stand for Very Secure FTP Daemon. Vsftpd not only just another popular FTP server for Unix/Linux systems, but vsftpd delivers excellent performance by consuming less memory.

8. Harden and Secure the dedicated server :

There are a few steps to harden the OS of dedicated server.
a) Install a host based firewall to protect your dedicated server from unauthorized access:
Once you have your web server running, you have to install host based firewall and open only certain port in your firewall. I would recommend you tosetting up iptables on your linux dedicated server.

b) Use Strong passwords :
Password complexity requirements should be in place to enforce strong password. A strong password should have mixed case, special characters, numbers, and be longer than 8 characters. Additional security, the passwords should be changed regularly.

c) Disable Unnecessary Processes, Services and Daemons :
I would recommend you to disable unneeded processes,services and daemon such as bluetooth, hidd, cups, yum-updatesd, ypbind, nfs, snmpd, saslauthd, netfs, gpm, pcmcia and sendmail. SELinux also should be set to “Disabled”. This is still very experimental so I would leave this disabled unless you really know what you are doing.

9. Install or migrate over the content of your website or blog :

You can start to migrate over the content of your website or blog to your new dedicated server. For dynamic content blog, i would recommend you to use WordPress as a platform. WordPress is an open-source blogging platform. It’s a free blogging tool and content management system (CMS) based on PHP and MySQL.

I hope that this 9 steps to setup dedicated server can be a useful guide on your first steps to have your own dedicated server to run a websites.

How to Setup WordPress Blog on CentOS 6.3

WordPress is an open-source blogging platform. It’s a free blogging tool and content management system (CMS) based on PHP and MySQL. This steps covers how to install the WordPress on linux CentOS 6.3. This post assumed that PHP, apache and MySQL server has been setup properly.

1. Login as a root, go to document’ root folder and download latest wordpress file :

[root@centos63 ~]# cd /var/www/html/
[root@centos63 html]# wget http://wordpress.org/latest.tar.gz

2. Extract the lates.tar.gz files to current directory :

[root@centos63 html]# tar xvzf latest.tar.gz

3. Now create wordpress database. Login to your mySQL database :

[root@centos63 ~]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.1.61 Source distribution

Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

4. Create Database name “wordpressdb” :

mysql> CREATE DATABASE wordpressdb;
Query OK, 1 row affected (0.08 sec)

5. Create user “wordpressuser” with password “wordpresspassword” :

mysql> CREATE USER 'wordpressuser'@'localhost' IDENTIFIED BY 'wordpresspassword';
Query OK, 0 rows affected (0.06 sec)

6. Grant all privileges to “wordpressdb” to user ” wordpressuser” from localhost access :

mysql> GRANT ALL PRIVILEGES ON wordpressdb.* to wordpressuser@localhost;
Query OK, 0 rows affected (0.04 sec)

7. Check and verify the granted access for user “wordpressuser” :

mysql> SHOW GRANTS FOR 'wordpressuser'@'localhost';
+----------------------------------------------------------------------------------------------------------------------+
| Grants for wordpressuser@localhost                                                                                   |
+----------------------------------------------------------------------------------------------------------------------+
| GRANT USAGE ON *.* TO 'wordpressuser'@'localhost' IDENTIFIED BY PASSWORD '*E62D3F829F44A91CC231C76347712772B3B9DABC' |
| GRANT ALL PRIVILEGES ON `wordpressdb`.* TO 'wordpressuser'@'localhost'                                               |
+----------------------------------------------------------------------------------------------------------------------+
2 rows in set (0.08 sec)

mysql>

8. For higher security, make wordpress folder readable only from browser :

[root@centos63 ~]# chmod 755 /var/www/html/wordpress

9. Go to your web server terminal or ssh to web server. Copy and rename wp-config-sample.php to wp-config.php:

[root@centos63 ~]# cp /var/www/html/wordpress/wp-config-sample.php /var/www/html/wordpress/wp-config.php

10. Modify the wp-config.php :

[root@centos63 ~]# vi /var/www/html/blog/wp-config.php

Change below database details such as database’ name, database’ username, database’ password nand database’ hostname.

// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'wordpressdb');

/** MySQL database username */
define('DB_USER', 'wordpressuser');

/** MySQL database password */
define('DB_PASSWORD', 'wordpresspassword');

/** MySQL hostname */
define('DB_HOST', 'localhost');

11. To configure wordpress, navigate the browser to http://servername/wordpress/. Please complete the form Click “Install WordPress”

Site Title : Blog Title
Username : Prefered username
Password, twice : Your password
Your E-mail : Your Email

wordpress

12. To login, navigate the browser to http://servername/wordpress/wp-login.php :
wordpress

How to Install Disqus on WordPress

Disqus is a world favorite comment system and discussion platform that improves discussion on websites or blogs and connects conversations across the web. It is free to register and you can install more that one websites in one account. In this post, i will share on how to install Disqus on WordPress blog.

1. Before you install disqus, your wordpress comment platform will look like below :
disqus

2.Go to disqus.com. Please register if you don’t have free account. You can proceed to login if you have an account on disqus.com.
disqus

3. Click Dashboard then press “+Add” :
disqus

4. Register your blog to use Disqus. Click continue to proceed :
disqus

5. Click Continue if you select default setting :
disqus

6. Select ” WordPress” :
disqus

7. Now it’s time to install the disqus plugin into your wordpress blog :
disqus

8. Login to your wordpress blog dashboard. Download the plugin name “Disqus comment system”. Activate the plugin :
disqus

9. After you have activated the disqus plugin, you may proceed to configure it :
disqus

10. continue to configure disqus :
disqus

11. Select a website that you want to configure disqus comment system :
disqus

12. Now you blog has been installed and configured with disqus.
disqus

13. Start to export your comments :
disqus

14. Please wait while it’s processing.. :
disqus

15. Your wordpress comments has been exported to disqus platform :
disqus

16. Your new blog comment will be more advance and interesting by using disqus comments system :
disqus

How to Get the Best VPS Hosting Deals and Informations

Virtual Private Server (VPS) is a term used by internet hosting services which offers a good balance between total control (root access privilege) and a tight budget. Having a VPS account is just like operating a dedicated server. VPS is cost effective way to manage multiple sites and ideal for mission critical applications and websites. This because each VPS can run its own preferred operating system and can be independently rebooted anytime when required. Before you buy any Linux VPS which is unmanaged server, it is better to have basic knowledge of linux system administrations. You will be manage your own web service and database service that you will be installed.

In this post, i want to share two useful link to get the best VPS hosting deals and information. For VPS newbie, it’s better to try cheap VPS before you spend huge amount of money for your production VPS web hosting.

1. www.lowendbox.com
Low End Box – Cheap VPS Hosting Providers Listing & Reviews

2. www.webhostingtalk.com
Web Hosting Talk – The largest, most influential web hosting community on the internet

How to Install WordPress Blog on Linux CentOS 6 / RHEL 6

How to Install WordPress Blog on LinuxThis article will explain the steps on how to install WordPress blog on Linux CentOS 6, Redhat Enterprise Linux 6 (RHEL 6) and Oracle Linux 6. WordPress is an open-source blogging platform. It’s a free blogging tool and content management system (CMS) based on PHP and MySQL. Follow this howto guides to install the WordPress on RHEL 6. This post assumed that apache and mysql has been setup on this server. If not, proceed to the following Apache and MySQL installation howto :

How to Install Apache Httpd Server on RHEL 6
How to Install MySQL Server on RHEL 6

Steps to Install WordPress Blog on Linux

1. Make sure you are on the DocumentRoot directory where you will put the wordpress files :

[root@rhel6 html]# pwd
/var/www/html

2. Download the WordPress :

[root@rhel6 html]# wget http://wordpress.org/latest.tar.gz

3. Extract the lates.tar.gz files :

[root@rhel6 html]# tar xzvf latest.tar.gz

4. Proceed to create the database for WordPress. On your server, try to create a new (empty) MySQL database for WordPress (For example, you can call it “wpdb”. If your the newbie, you can follow this basic steps to create a new database and assign a user and it’s permission :

[root@rhel6 ~]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.1.47 Source distribution

Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> CREATE DATABASE wpdb;
Query OK, 1 row affected (0.00 sec)

mysql> CREATE USER 'wpuser'@'localhost' IDENTIFIED BY 'wppassword';
Query OK, 0 rows affected (0.00 sec)

mysql> GRANT ALL PRIVILEGES ON wpdb.* to wpuser@localhost;
Query OK, 0 rows affected (0.00 sec)

mysql> SHOW GRANTS FOR 'wpuser'@'localhost';
+---------------------------------------------------------------------------------------------------------------+
| Grants for wpuser@localhost                                                                                   |
+---------------------------------------------------------------------------------------------------------------+
| GRANT USAGE ON *.* TO 'wpuser'@'localhost' IDENTIFIED BY PASSWORD '*977FDAC11B3F74324912DA4F9D489A3E6D59B281' |
| GRANT ALL PRIVILEGES ON `wpdb`.* TO 'wpuser'@'localhost'                                                      |
+---------------------------------------------------------------------------------------------------------------+
2 rows in set (0.00 sec)

5. Make wordpress folder writable, otherwise you will not able to create config.php during the installation :

[root@rhel6 ~]# chmod o+wx /var/www/html/wordpress/

6. Run the installation script on your server. Go to the following address in your web browser :

http://serveripaddress/wordpress

7. Click “Create Configuration File” :
WordPress
8. Click “Let’s Go!” :
Wordpress
9. Enter “Database Name“, “User Name” and “Password“. Click “Submit” to proceed :
Wordpress
10. Click “Run the Install” to proceed :
Wordpress
11. Provide the blog information. You can change it later :
Wordpress
12. WordPress has been successfully installed on your RHEL 6 server :
Wordpress

13. For security reason, remove the writable access to wordpress root folder :

[root@rhel6 ~]# chmod o-wx /var/www/html/wordpress/

14. Assigned the secure permission for wordpress root folder. 755 means read and execute access for everyone and also write access for the owner of the file.

[root@rhel6 ~]# chmod 755 /var/www/html/wordpress/

15. As a blog administrator, you can login to the wordpress dashboard using this URL:
http://serveripaddress/wordpress/wp-login.php

Normal usercan access the blog using the following URL :
http://serveripaddress/wordpress/

How to Install Joomla 1.7 using cPanel

There are two methods to install Joomla 1.7 on your webhosting. First method is with the automatic installer from the webhosting’s application that’s already included in the control panel, also called cPanel. Second method is manually install from the web hosting server. In this post, i will show you on how to install the Joomla 1.7 using cPanel.

1. Make sure you have domain or subdomain configured as below :
Joomla 1.7

2. Click on the QuickInstall from the Software/Services column :
Joomla 1.7

3. Select Joomla 1.7 :
Joomla 1.7

4. Click Continue :
Joomla 1.7

5. Click Install Now! :
Joomla 1.7

6. Installation has been completed. Take note on the temporary password. Kindly reset your temporary password asap :
Joomla 1.7

7. You can log in to joomla administrator’s page using the following URL:
http://domain/administrator
CMS URL will be as below : http://domain.

In this example, my joomla subdomain is http://joomla1.7.ehowstuff.com