Archive for the ‘Linux’ Category

How to install Mysql, Apache, and PHP on CentOS 5.6

May 25th, 2011 by @HKw@! | No Comments | Filed in centos, Linux

Recently, I just install my new CentOS 5.6.(CentOS is the open source equivalent to the Red Hat Linux operating system). I want to setup LAMP on my Centos 5.6 as my development environment to customize my wordpress theme. I will install the LAMP using yum command.

Here are the simple steps:-

Before start the installation, please ensure that all of your repositories and packages are up to date. (more…)

Share

Tags: , , , ,

How to change the timezone on CentOS/RHEL

May 23rd, 2011 by @HKw@! | No Comments | Filed in centos, Fedora, RedHat

I noticed that my Centos Server logs is not on the correct time. I tried to check the time from the command line and found that the timezone is pointing to the wrong timezone

root@thundercat ~]# date
Mon May 23 00:21:56 EDT 2011

How to change it? There are two ways to change the timezone on CentOS. (more…)

Share

How to limit SSH access by IP Address

May 9th, 2011 by @HKw@! | No Comments | Filed in centos, Debian, Fedora, Linux, RedHat, Ubuntu
To Secure your Linux server and prevent attacks, you can limit SSHd to certain IP addresses by modify the /etc/hosts.allow and /etc/host.deny files

Below are the few steps :-

1) Open /etc/hosts.allow

Use the following command to open the hosts.allow file:

vi /etc/hosts.allow

Once this file is open, add the following line:

SSHD : ipaddress : ALLOW

2) Open /etc/hosts.deny

Use the following command to open the hosts.deny file:

vi /etc/hosts.deny

Once it opens, add the following line to the file:

SSHD : ALL : DENY

Save and exit, and you have successfully limited SSH access by IP address.

Share
BlogCatalog