Submitted by BXTra on Wed, 07/27/2011 - 19:56
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
Submitted by BXTra on Mon, 07/25/2011 - 21:43
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 :
Submitted by BXTra on Sun, 07/24/2011 - 23:58
1. Download RPMForge Package. Check your system with uname -a command to get the suitable package. Below is the current one I got :
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm
Submitted by BXTra on Thu, 03/03/2011 - 20:43
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".
Submitted by BXTra on Sun, 02/13/2011 - 23:59
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 :
Submitted by BXTra on Wed, 02/02/2011 - 23:59
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 :
Submitted by BXTra on Thu, 09/16/2010 - 01:55
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
Submitted by BXTra on Sun, 09/12/2010 - 21:00
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.
Note from MySQL :
The InnoDB Plugin is included in source and binary distributions, except RHEL3, RHEL4, SuSE 9 (x86, x86_64, ia64), and generic Linux RPM packages.
Compare files under plugin directory :
Submitted by BXTra on Thu, 09/09/2010 - 01:56
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
Pages
Recent comments