RedHat/CentOS

Murmur Server on CentOS5

To build a Murmur server on CentOS 5, we need:

Compiler

Remove "gcc-c++" if you have this package installed.

CentOS 5 SRPM location

The CentOS 5 source RPM files are no longer hosted on mirror.centos.org. According to the README file http://mirror.centos.org/centos/5/updates/SRPMS/readme.txt, the new location is at

http://vault.centos.org/5.7/updates/SRPMS/

Upgrade CentOS to 5.6 with Ext4 Support

Upgrading CentOS 5 to 5.6 is as simple as "yum update", and then reboot.

CentOS 5.6 / RedHat RHEL 5.6 has now the production ready Ext4 filesystem. To get this, simply run

# yum install e4fsprogs

Then you can create filesystem using 

# mkfs -t ext4 /dev/sdc1

At the end of the above "mkfs", there is a message as below:

 

Fix NTP Configiration

I have a CentOS server that keeps changing the timezone to CDT whenever we upgrade the ntp rpm. It turned out the setting in /etc/sysconfig/clock is wrong. To have the ntp rpm upgrade stay at the desired timezone, just change the line for ZONE to the correct one.

Search for More Recent PHP RPM Packages on CentOS-5

I found this guy http://www.atoomnet.net/php/  offers the RPM and SRPM for the more recent php packages on CentOS.

Another one here: http://www.jasonlitka.com, or http://www.jasonlitka.com/media/SRPMS/ for the SRPM.

  

Install and Configure Subversion over SSH on CentOS

Server setup

  1. Install subversion
    root# yum install subversion
  2. Create a Repository. This is where all your files will be stored. You can put this anywhere, such as /var/subversion/repos/mycodes
    root# svnadmin create /var/subversion/repos/mycodes
    root# cd /var/subversion/repos/mycodes/conf
    root# vi svnserve.conf

    Now add the following into the file svnserve.conf:
    anon-access = none

CentOS: Disable Unneeded Services at Boot Time

Determine which Services are Enabled at Boot

Run the command:
# chkconfig --list | grep :on

The first column of this output is the name of a service which is currently enabled at boot. Review each listed service to determine whether it can be disabled.

If it is appropriate to disable some service srvname , do so using the command:
# chkconfig srvname off

Set up Redmine/Mongrel as Service on CentOS

The original post is here http://www.how-to-linux.com/2008/12/set-up-mongrel-as-a-service-and-star...

Below are my modified steps in order to get it to work.

Step 1. Create a file /etc/mongrel/redmine.conf:
# mkdir /etc/mongrel
# vi /etc/mongrel/redmine.conf

and put the following into the file:

Named for OpenVZ Containers

To have the containers use the named on the host, we first install the bind package on the host. For CentOS, we just need to do

# yum install bind-chroot

Then follow a post like this one http://www.wains.be/index.php/2007/12/13/centos-5-chroot-dns-with-bind/, and configure the local named.

After that, just set the nameservers for each container:

# vzctl set 101 --nameserver 192.168.1.10 --save

(Assume the local host's IP is 192.168.1.10).

Install OpenVZ on a X86_64 CentOS

In wiki.openvz.org, there is an article on Install OpenVZ on a x86 64 system Centos-Fedora.

Some problems and fixes:

 

404 file not found

I kept getting random "404 file not found" when running "vzpkgcache" to install the cache template. To fix this, I found some  "yum.conf" files