CentOS

CentOS 6.1 Released

After Red Hat Enterprise Linux (RHEL) 6.1 released in May 19, 2011. Finally, CentOS 6.1 which is an Enterprise Linux distribution based on the freely available sources from RHEL, released in December 9, 2011.

We are pleased to announce the immediate availability of CentOS-6.1 install media for i386 and x86_64 Architectures. Release Notes for 6.1 are availble at http://wiki.centos.org/Manuals/ReleaseNotes/CentOS6.1 - we recommend everyone looks through those once.

Memcached Multiple Instances Startup Script (init.d) on CentOS 5.6 - 64 bits

Category:

I just need Memcached to start automatically when reboot so that I don't have to wait to log into the server to do that every time I restart my server. The problem here is that I didn't install Memcached using YUM. I compiled Memcached it myself. So, there is no startup script for me to do it. Also, from what I have read, init.d startup script comes with YUM only support one instance of Memcached. In my case, I need to run multiple instances of Memcached. So, I searched for the script and below script is work for me

1. Create Script in /etc/init.d/memcached

Change Owner of Symlink in Linux

Category:

When you use chown to change ownership of a file or directory, it will work but with Symlink (Created by using ln command), you can't do that. When you do it, it will fail and you may not know that since there is no error message or anything to let you know. So, to change ownership for Symlink, you need to use option -h. Below is an example :

Server monitoring using Munin in CentOS 5.6 + DirectAdmin

1. Download RPMForge Package. Check your system with uname -a command to get the suitable package. Below is the current one I got :

32-bit system

wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm

64-bit system

wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm

If you want to check for the latest one, check it from -> http://packages.sw.be/

Install Apache Solr on Drupal + CentOS

Category:

1. Install Java SDK using below command :

yum install java-1.6*

2. Download Apache Solr module from Drupal server. (Do it as you normally do with Drupal)

3. Then, get "SolrPhpClient" and put it under Apache Solr module directory. The directory name must be "SolrPhpClient".

[HOW-TO] Install mod_rpaf for Apache 2.2

When you do a reverse proxy in which Nginx will be the one who listen the traffic and forward anything needs to be process through PHP to Apache. With this, Apache will always receive an IP from Nginx server (or I should say localhost / 127.0.0.1 / local IP), not the real IP that user uses. In order to let Apache knows what is real user IP, we need to install mod_rpaf.

Just copy and paste code below into SSH :

YUM - remove cache of mirror URL to be able to switch to a new one.

Category:

I just tried to install CentOS on local machine and found that when I ran 'yum install', it will always go to specific mirror url that is so slow. I know there is some cache to tell yum to use it but I don't know where on it. Try to search in google but many problem comes up that didn't relate to what I want to fix. Until I found a link below tell me where is yum cache file located. Just run command below :

Replace normal " Build-in InnoDB" with "InnoDB Plugin" under DirectAdmin + CentOS 64 bits + MySQL 5.1

For some reason, under CentOS, Custombuild in DirectAdmin use "MySQL - Generic Linux (glibc 2.3) (x86, 64-bit) RPM file" instead of MySQL RPM files for Redhat. The different for these 2 packages are that, RPM for Redhat contain "ha_innodb_plugin.so" but not in Generic RPM package.

Compare files in Plugin folder on two different RPM.


MySQL Linux Generic RPM


MySQL Linux Redhat RPM

Apache Error : [emerg] (28)No space left on device: mod_fcgid: Can't create global fcgid-proctbl mutex

My server run DirectAdmin with mod_fcgid installed. After I tuned MySQL. I, then, restarted both httpd and MySQL service. Both services started without any problem but I can't access my website at all. After I checked my Apache Error log, I found an error which said :

[emerg] (28)No space left on device: mod_fcgid: Can't create global fcgid-proctbl mutex
After search around how to fix this problem, I believe it's something about IPCS. Try run
# ipcs -a

PECL Install Error: /bin/sh: bad interpreter: Permission denied

When I tried to use PECL to install APC. I got error below : # pecl install apc downloading APC-3.0.19.tgz ... Starting to download APC-3.0.19.tgz (115,735 bytes) .........................done: 115,735 bytes 47 source files, building WARNING: php_bin /usr/local/php5/bin/php appears to have a suffix 5/bin/php, but config variable php_suffix does not match running: phpize Configuring for: PHP Api Version: 20041225 Zend Module Api No: 20060613 Zend Extension Api No: 220060519

Pages

Subscribe to RSS - CentOS