Posts Under Category: centos

The main user / administrator of a Linux server is root. Here is how you can create a new user on your CentOS server / VPS.

Login to your server as root as run following command to create a new user named ravi.

/usr/sbin/adduser ravi

Now set password for new user ravi

passwd ravi

Screenshot

add-new-user

Done!!

read more

The current stable version of CentOS Linux OS is 6.5
If you want to upgrade your VPS / dedicated server to CentOS 6.5 from 6.4/6.3, follow below steps.
read more

CentOS is the most popular and widely used Linux operating system (OS) on VPS / Dedicated server. You must keep your CentOS updated for security reasons. Below are the basic SSH commands to update CentOS on a VPS / Dedicated server.

Check for update

It will check your machine to see if any update is available.

yum check-update

Run Update

You just need to run one command to apply all updates. Below command will update your machine.

yum update

You can also run yum update command with -y option.

yum –y update

The –y option will answer yes to all prompts such as confirmation that you want to install or update a particular package.

Our Recommended VPS Hosting

I will try to explain the tutorial step by step on a fresh VPS.

I just got a fresh VPS with only operating system installed. OS installed on my VPS is centos 6 64-bits. Below is details of my new VPS.

OS: centos 6 64-bits
IP: 5.231.81.71

Login to your VPS/server as root via SSH and follow these simple steps.

Step 1: Install Apache

My first step is to install Apache on my server. Run following command to install Apache on the VPS.

yum install httpd
service httpd start

For detailed instruction, please refer to this tutorial:
How to install Apache on a Linux Server

After installing Apache, VPS IP will show default Apache page.
default-apache-page

Step 2: Upload HTML pages

Now upload your HTML pages in /var/www/html/ directory.
Your website is now running on your VPS. Address of your website is your VPS IP.
website-on-ip

Step 3: Use a domain name

Now its time to use a domain name like domain.com for your website. This can be achieved using A-record. Create a A-Record and point it to your VPS IP. A-record can be created from domain control panel.
a-record

After creating A-record, wait for few hours for DNS propagation.
Done!!

Our Recommended VPS Hosting