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 :
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/
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 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
Submitted by BXTra on Wed, 09/01/2010 - 21:50
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
Recent comments