This short article is to give an idea on how you can install latest version of wordpress on your hosting account.

You need to have,

Filezilla click here to get it ( or any other FTP client )
A cPanel hosting account. Get it here

Step 1

Download latest wordpress version. Click here to get it.

Step2

Uncompress latest.zip file.

Step3

Use Filezilla to upload the uncompressed files to the desired hosting account location. You can upload to public_html or any other location inside.

Uploading with filezilla

Uploading with filezilla


 

 

 

 

 

 

 

Step 4

Create database and users with your cPanel, Please see this article,

Step 5

Access the url were wordpress files are uploaded. You will get a screen as below . Click on create a configuration file.

Wordpress Installation

 

 

 

 

Step 6

Give the database and user details you have created with cPanel on the below stepWordPress Installation 2. Click on submit button.

 

 

 

 

 

 

On next screen click on run the install

 

Wordpress Installation 3

 

 

 

Step 7

Give site name, user name password and your email address on the next screen and click Install

Wordpress Installation 4

 

 

 

 

 

 

 

All set login and go !!!

The main purpose of Google APPS is ability to host mail service outside of your main domain and get full functionality of gmail services. To set up google MX as your mail server.

1. Log in to your cPanel account with the provided login credentials.

2. Under the Mail header click MX Entry in your cpanel.

google-cPanel-MXentry

3. Choose the domain for which you wish to use external email.

4. Three new sections will show up and under the Email Routing section you will want to select Remote Mail Exchanger.

5. Under the Add New Record section you will want to add your external mail server records.

For Google Apps you can see a list of servers at http://www.google.com/support/a/bin/answer.py?answer=174125

6. Once you have added your external MX Entries, you will want to make sure to remove any other entries.

Congratulations! You have successfully pointed MX records to your external mail provider. Keep in mind that changes to MX records may take up to 48 hours to take effect.

SSH is often used to login from one system to another without requiring passwords.

The syntax of the ssh-keygen file is as follows:

ssh-keygen -b bits – Specifies the number of bits in the key to create. The minimum bit length is 512 bits and the default length is 2048 bits.
ssh-keygen -p – Requests changing the passphrase of a private key file instead of creating a new private key.
ssh-keygen -t – Specifies the type of key to create.
ssh-keygen -q – Quiets ssh-keygen. It is used by the /etc/rc file while creating a new key.
ssh-keygen -N – Provides a new Passphrase.

The SSH-keygen tool generate a secret key.

Step :

1) Login into a local machine.

2) Take a Terminal (Application/Accessories/Terminal)

3)  # ssh-keygen

When we enter “ssh-keygen” in terminal of local machine we get the options like below

The default path of generating the keygen is in /home/user/.ssh/id_rsa.Then press “Enter”.

4)Enter a alphanumeric passphrase you will enter will be used for encrypting your private key, if not press “Enter”.
If you want to create a passphrase type your passphrase once again to confirm it.

After the completion of this the private key is generated.The private key will be saved in .ssh/id_rsa. This file is read-only and only for you. No one else must see the content of that file, as it is used to decrypt all correspondence encrypted with the public key. The public key is save in .ssh/id_rsa.pub.

5)Then public key content of local machine is then copied in file .ssh/authorized_keys of the system you wish to SSH to without being prompted for a password.

scp .ssh/id_rsa.pub user@remote:~/.ssh/authorized_keys

Kloxo panel setup after installation

Kloxo is a light weight control panel that is ideal for a VPS. Here we can see how to do initial setup of Kloxo after installation.

Login to Kloxo

Access Kloxo with https://my_server_ip:7777

You can use the below as login details when logging for the first time.

Username : admin
Password : admin

Change the admin password

On Old Password box use   : admin
Generate a secure password by clicking on Generate Password.

Click on Update button to set the new password.

Configure Lxgaurd

On the warning message shown click on, Click here to configure Lxgaurd . You can also go to Lxgaurd settings by, Clicking on admin on left panel > Under Security section > Lxgaurd

Under the “Lxgaurd” tab you can set the number of wrong login attempts that should disable and block access to Kloxo.

You can also whitelist a specific IP with “White List” tab

Configure Mail settings

Configure basic mail settings of the server. Clicking on admin on left panel > Under Web -Mail – Database section > Server Mail Settings.

On My Name field – add the hostname of your server, please make sure that the hostname is resolving properly.
Click Update button to save the settings.

Create a DNS template.

create a dns tempalate to create clients and domains, you can use this template settings as the DNS settings for the domains you add.

On

DNS Template Name : give a desired name for your template without spaces
Web IPaddress : select the IP address from the list to which you want to point the website.
Mail IPaddress : select the IP address from the list on which mail server is listening
Primary DNS : specify the first main nameserver
Secondary DNS : specify the second main nameserver

Click on Add to create DNS template.

Kloxo has been setup for use, you can now proceed and create plans and clients as mention on this post,

WordPress is one of the best CMS and blog engines available today, and you can used it to power anything from your personal site. But the great thing about WordPress is that you can either get a free hosted blog or you can download the software and run it on your own server for free.  Many webhosts today offer scripts that make installing WordPress as easy as possible, so here we’re going to look at how you can install WordPress in only a few steps in cPanel with Softaculous. Installing WordPress manually isn’t too hard, but with Softaculous, it’s so easy anyone could do it.

This article will give you a step by step guide on how to install WordPress from your cPanel using Softaculous.

Step 1 : Login to your website’s admin panel to get started installing WordPress on your site. Usually, you can locate it at yourwebsite.com/cpanel or yourwebsite.com:2082.

cpanel_login

Step 2 : Scroll down to the Software/Services section, and click the Softaculous link.

software_services

Step 3 : To install WordPress, click the WordPress link on the left-hand sidebar in Softaculous.

WordPress_link_in_softaculous

Step 4 : This page will give you some information about WordPress, including ratings and reviews from other users.  Click the Install link above the header to start the installation.

WordPress_info

Step 5 : Now you’ll need to enter some information about your site.  Softaculous will automatically fill in default settings, but you may want to customize them.

WP_set-up_page

At the top of the page, you will have to select the domain where you wish to install WordPress. Select the directory to install WordPress on. By default, it will install to yourdomain.com/wp, but if you want yourdomain.com to go directly to WordPress, then leave this field blank.

Step 6 : Now enter a name and description for your site, as well as an administrative username, password, and email.  If you’d like a more secure password, click the key logo and a random generated password will be entered in the field.

wordpress_database

If you’d like a record of your site’s settings, enter your email in the bottom field under the Install button.  Finally, when you’re finished, click Install.

Step 7 : You will then get a confirmation page of your installation.

WordPress_installation_confirmation_page

Step 8 : Click the link to go to the WordPress admin page, or simply browse to yourdomain.com/wp-login.php. You must now use the login name (username) and password that you had set during the installation.

wordpress_login_page

Step 9 : The first time you login, WordPress may prompt you to change your password.  Since you just choose the password for your site, this step is unnecessary. Click No Thanks, Do not remind me again to chose this notification.

change_password_WordPress

Step 10 : Now you can add posts and pictures, change the theme, and customize the settings of your WordPress site directly from the WordPress Dashboard:

wordpress_dashboard

Step 11 : Here is new WordPress site after installing with Softaculous and submitting first post:

wordpress_blog

Parked Domains are often used by certain companies that want to have more than one web address for their official uses purposes.They will display the same website as your primary domain.

For example, if your primary domain is nixwind.com and it is the primary domain , you can able to set up windnix.com as a parked domain and it will load the content of nixwind.com. Hence the content of nixwind.com is loading in the browser, the address bar will display as http://windnix.com/.

 

Parked Domains allow you to “point” or “park” additional domain names to your existing hosting account main domain. Park domain will show the same content of your main domain.

1) Click on the “Parked Domains” button on the home page under Domains.


2) Enter the domain you wish to park in the available text field.

Click Add Domain“, to add the Parked Domain.

3) Existed Parked Domain are listed under the “Remove Parked Domains”.


a) Click the link under ” Domain Root” that corresponds to the  Parked domain, for viewing the file manager.

b) To Enable or Disable redirection of a parked domain , click on the  link Redirects to“.


Enter the url to which you would like to redirect the parked domain  in the text box.  

To disable the redirect, click the buttonDisable Redirection.

c) For deleting a parked domain , click the “Remove” link corresponding to the parked domain .

Install and configure CSF/LFD

CSF is one of the popular firewall which is based on iptables.  CSF can be used and managed with UI of control panels like cPanel, DirectAdmin and Webmin. Here we can see how we can install and do basic configuration of CSF ( ConfigServer Security & Firewall ) & LFD ( Login Failure Daemon )  on a linux server.

How to install ?

For downloading all the csf package.

# cd /usr/local/src/
# wget http://www.configserver.com/free/csf.tgz

Uncompress the packages.

# tar -xvzf csf.tgz

Running the installation script

# cd csf
# sh install.sh

Configuration

a) Main part of configuration is opening up the needed ports

below command will give you an idea of  current listening ports and processes in the server

# netstat -pln
# ps aux

find out the ports of services that you want to open and specific them on file /etc/csf/csf.conf with directives

TCP_IN  —> incoming TCP ports
TCP_OUT —> outgoing TCP ports
UDP_IN —> incoming UDP ports
UDP_OUT —> outgoing UDP ports

b) Read through the configuration, if you feel everything is okay you can disable testing by setting the first directive on configuration /etc/csf/csf.conf as below

TESTING = 0

restart csf with

# csf -r

Control Panels
CSF currently has UI for cPanel, DirectAdmin and Webmin. No specific installation changes required for cPanel and DirectAdmin, once CSF is installed you can view and manage it with cPanel/DA. You can find webmin CSF module installation instructions here.

Uninstallation

On cPanel servers:
cd /etc/csf
sh uninstall.sh

On DirectAdmin servers:
cd /etc/csf
sh uninstall.directadmin.sh

On generic linux servers:
cd /etc/csf
sh uninstall.generic.sh

Awstats Installation

Awstats is an advanced graphical statistics software that can be used to analyze the webserver logs. Here we can see how we can install awstats on a linux server with Apache.

Installation

You can get the latest awstats from here. Login to server as root execute the below commands

# cd  /usr/local/
# wget http://sourceforge.net/projects/awstats/files/AWStats/7.0/awstats-7.0.tar.gz
# tar -zxvf awstats-7.0.tar.gz
# mv /usr/local/awstats-7.0 /usr/local/awstats
# cd /usr/local/awstats/tools/
# perl awstats_configure.pl

The above script will ask few questions, detect/modify your apache configuration and will generate an awstats configuration file for the site you specifies.

Configuration

Awstats site configuration file path will be :  /etc/awstats/
Name Format of configuration file : awstats.yoursite.com.conf

Open the configuration file with a desired text editor and check, verify and modify the below entries

LogFile —> Log file directive should mention the correct path of the site access log file
SiteDomain —> this directive should mention your domain name

Updating stats

You can update stats with the below command
# /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=yoursite.com

Add it as a cron to generate the statistics periodically

# crontab -e

0 0 * * * /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=yoursite.com >/dev/null 2>&1

Securing

To restrict access and to password protect the statistic information add the below lines in your apache configuration

<Files “awstats.pl”>
AuthUserFile /usr/local/awstats/.htpasswd
AuthGroupFile /path/to/.group
AuthName “Restricted Area”
AuthType Basic
require valid-user
</Files>

You need to create a user and password and copy it to the file /usr/local/awstats/.htpasswd to limit the access. Any htpasswd online generator can be used for this, You can find an example one here

restart Apache

/etc/init.d/httpd restart

Accessing

Awstats of the domain can be viewed with the url,

http://your_server_ip/awstats/awstats.pl??config=yoursite.com

Memcached Installation

Memcached is a general-purpose distributed memory caching system. It can be used to speed up dynamic database-driven websites by caching data and objects in RAM to reduce the number of times database must be read.

Please make sure that Memcached port is opened and access is allowed only to desired servers. If the memcached port is left open to all any one can connect to it and access the data objects.

1) Install libevent

libevent is required to install memcached

# yum install libevent-devel libevent

2) Install memcached

# cd /usr/local/src
# wget http://memcached.googlecode.com/files/memcached-1.4.5.tar.gz
# tar -zxvf memcached*
# cd memcached*
# ./configure
# make
# make install

3) Run memcached as a daemon and make it listen on default port

Create a user,
# useradd memcache

Use the below command to run memcached
# memcached -u memcache -p 11211 &

To use memcahe with PHP on the same server , you can install it with

# pecl install memcache

Make sure that below line is added to main php.ini
extension=memcache.so
To load the module and reflect the changes restart  apache

# /usr/local/apache/bin/apachectl restart

Minimal hosting control panel with Webmin

If you have a VPS server it is always good to have a very thin control panel which will not create resource overhead. Webmin minimal, is such an ideal thin control panel. Here we can see how we can build a hosting environment with webmin-minimal and other  softwares from source.

Initial Control panel setup and Firewall Installation.

We are using a fresh centos VPS. Login to the VPS as root user

1) Webmin Minimal Installation

We must install the minimal version of webmin, replace X.xxx with the webmin version you download.

# cd /usr/local/src/
# wget http://prdownloads.sourceforge.net/webadmin/webmin-X.xxx-minimal.tar.gz
# tar -zxvf webmin-X.xxx-minimal.tar.gz
# cd webmin-X.xxx/
# ./setup.sh

You will be prompted with the below questions, you can use default values itself . Please use a good password.

Config file directory [/etc/webmin]:
Log file directory [/var/webmin]:
Full path to perl (default /usr/bin/perl):
Web server port (default 10000):
Login name (default admin): nixwind
Login password:
Password again:
Start Webmin at boot time (y/n): y

Make sure that firwewall is disabled ( temporarily, we will be installing CSF later in this article) .


# /etc/init.d/iptables stop

You can access webmin with

http://server_ip:10000
Username and Password you have given during installation

2) Install a Theme ( Optional )

I’m going to use Vitualmin Framed theme. To Install a theme, click on Webmin Configuration


Click on Webmin Themes

On Webmin Themes menu, select From ftp or http url and specific the exact theme file there.
VirtualMin Framed Theme url :  http://download.webmin.com/download/virtualmin/virtual-server-theme-X.x.wbt.gz

Click on Install Theme

Then go to Webmin Themes again and select VirtualMin Framed Theme as current theme.

Click on Change, that’s all

 

3) Install Config Server Firewall for firewall management with Webmin.

Install CSF

Login to server as root and execute the below commands.

# cd /usr/src/
# wget http://www.configserver.com/free/csf.tgz
# tar -zxvf csf.tgz
# cd csf/
# sh install.sh

Install Webmin module of CSF

Select Webmin Configuration from left menu and click on Webmin Modules

Select Install From local file and specific path as /etc/csf/csfwebmin.tgz

Click on “Install Module”

You need to configure CSF, Find it on Webmin under System >> ConfigServer Security & Firewall

Configure firewall with, Firewall Configuration and Check Server Security . Disable  testing mode after properly configuring the firewall.