CentOS / Red Hat IPv6 Network Configuration
Setting up IPv6 on CentOS, and for that matter RHEL and Fedora Linux, is quite straight forward. You need to edit just two files:
1. /etc/sysconfig/network-scripts/ifcfg-
2. /etc/sysconfig/network
- Configure the IP address. For example, for interface eth0, edit /etc/sysconfig/network-scripts/ifcfg-eth0 and make the necessary changes as below.
DEVICE=eth0
HWADDR=00:22:15:17:CC:C1
BOOTPROTO=static
IPADDR=192.168.1.2
NETMASK=255.255.255.0
NETWORK=192.168.1.0
BROADCAST=192.168.1.255
IPV6INIT=yes
IPV6_AUTOCONF=no
IPV6ADDR=<ipv6 address>
ONBOOT=yes
How to install MySQL on CentOS Redhat Linux
Install MySQL with YUM
yum install mysql-server mysql php-mysql
How to configure MySQL Read more…
Installing Nginx on CentOS 5
Nginx, pronounced “Engine X”, is a high-performance Web server and reverse proxy. It was created by Igor Sysoev for rambler.ru, Russia’s second-largest Web site. Rambler has used Nginx since summer 2004, and it’s currently serving about 500 million requests per day. Like Apache, Nginx is used by some of the largest Web sites in the US, including WordPress , Hulu and MochiMedia. As of May 2010, Nginx is the third most popular Web server across all domains.
Read more…
How to check an MD5 hash on a file
MD5 is a one-way hash algorithm as defined by RFC1321 and can be used to help determine the integrity of a file by providing a 128 bit digital signature. This digital signature is like a fingerprint for a file, changing just one single byte in a file will result in a different MD5 hash.
MD5 hashes can be used to catalog files on a filesystem and then determine at a later date that the files have not been altered in any way, for example if someone broke into a system and modified system files.
They can also be used to ensure a file downloaded from a website is the same as expected. This can be especially important when downloading a file from a mirror site to ensure you are not installing a modified program which contains a trojan horse or some other nasty. By simply comparing the MD5 hash of the file you have downloaded from the mirror with that from the original website you can determine whether or not the file is exactly the same.
Read more…
Check / List Running Services
Q. How do I list all currently running services in CentOS / RHEL / Fedora Linux server ?
A. There are various ways and tools to find and list all running services under CentOS / RHEL / Fedora Linux systems.
service command – list running services
service --status-all
service --status-all | grep ntpd
service --status-all | less
Read more…
Installing Lighttpd With PHP5 Support On CentOS
Lighttpd is a secure, fast, standards-compliant web server designed for speed-critical environments. This tutorial shows how you can install Lighttpd on a CentOS 5.0 server with PHP5 support (through FastCGI) and MySQL support.
rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
Afterwards, we can install Lighttpd like this:
yum install lighttpd Read more…