Installing memcached on CentOS 5.3

Memcached is a generic purpose distributed high performance memory object caching system to use in speeding up dynamic database driven websites by caching data and objects in memory to reduce the amount the database needs to be read.

Memcached was originally developed by Danga Interactive for LiveJournal but is now used by many popular and large community driven websites like Slashdot, Wikipedia, SourceForge, GameFAQs, Facebook, Digg, Fotolog, Kayak and like. It is being distributed under a permissive free software licence. Know more about who all are using memcached

Things to consider before Installing memcached.

  1. First, decide how much memory you want to give memcached to use for caching.
  2. Then decide if you want to run memcached on the default port (11211) or not.
  3. Next decide if you want memcached to listen to a specific IP address if you have multiple IP addresses on your server
  4. Finally decide, what user you want to run memcached as; typically, you want to run it using Apache user so that Apache processes can access memcache data

Installation Process

1. If you don’t have rpmforge installed, follow this step.

wget http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
rpm –install rpmforge-release-0.3.6-1.el5.rf.i386.rpm
yum install –enablerepo=rpmforge memcached

2. Start memcached.

memcached -d -m 512 -l 127.0.0.1 -p 11211 -u nobody

The “-m SIZE” is the flag for setting the memory requirements in MBs. Once this cache is filled memcache will just start to overwrite with newer content. Please experiment with this setting to find what works best for you.

3. Install PHP extension.

wget http://pecl.php.net/get/memcache-2.2.5.tgz

4. Extract tar file.

tar -xvf memcache-2.2.5.tgz

5. Open the directory.

cd memcache-2.2.5

6. Install the memchaced PHP extension.

phpize && ./configure –enable-memcache && make

7.  Copy the extension.

cp modules/memcache.so {PHP extension directory}

8. Edit your php.ini and add the following line.

extension=memcache.so

9. Last is restart your webserver.

10. If you check your server using a phpinfo page you should now see a MemCache section on the page. You can now fully use the MemCache functionality in your PHP.

memcached pre-requissites

yum -y install libevent libevent-devel

How to make memcached run automatically when you restart your server?. Add this line to rc.local

#!/bin/sh
echo “# Start memcached” >> /etc/rc.local
echo “/usr/local/bin/memcached -d -m 1024 -u httpd -l 127.0.0.1″ >> /etc/rc.local

How to have a multiple memcached server.

Create LocalSettings.php file and this line.

$wgMainCacheType = CACHE_MEMCACHED;
$wgParserCacheType = CACHE_MEMCACHED; # optional
$wgMessageCacheType = CACHE_MEMCACHED; # optional
$wgMemCachedServers = array( “127.0.0.1:11211″ );

$wgSessionsInMemcached = true; # optional

To use multiple servers (physically separate boxes or multiple caches on one machine on a large-memory x86 box), just add more items to the array. To increase the weight of a server (say, because it has twice the memory of the others and you want to spread usage evenly), make its entry a subarray:

$wgMemCachedServers = array(“127.0.0.1:11211″, # one gig on this box
array(“127.0.0.1:11211″, 2 ) # two gigs on the other box
);

Security Note:

Memcached has no security or authentication. Please ensure that your server is appropriately firewalled,
and that the port(s) used for memcached servers are not publicly accessible. Otherwise, anyone on the internet can put data into and read data from your cache.

Permalink 0 Comments Posted in Linux Tips & Tricks
Taking a break

My head keeps on popping ideas, I couldn’t sleep thinking the iCafe 2.2 final version. Ok after 2.2 beta I’ll be taking break for about 2 days then continue on delopment, iCafe final version will have new features and bug fixes which I have seen during my phase 3  testing this weekend. iCafe 2.2 client we’ll have new GUI finishing what I have in mind before which I try to ignore during development. I’ll be focusing on Server and Client on this development.

2.2 Final version

Check on Time left transfer
Time transfer
Group Payout
Organize some menu
Standard icons
Print Monitoring
Online registration for copy of iCafe timer
Double check functionality of Promo’s
Set expiration date for Promo’s
Client Security and Policies will be set to server no more config to client
Auto detect plugin and plugout of usb
Restrict copying of files to USB (Prevent lanshop games to be copied)
More features to be post…

So if you ideas for comments please don’t hesitate to post it to our forum.

Permalink 0 Comments Posted in CrossNodes News
iCafe phase 2 testing

I spend my weekend testing and fixing bugs I found on iCafe timer, so releasing beta will not cause so much problem on setup and using it on production. all functionality seems working fine with no error except what I left I didn’t focus on that for a moment.

So tomorrow I’ll write guide and procedure how to setup and used iCafe timer, before I’ll release beta version.

Hope you like this version as I put so much effort on it.

Permalink 0 Comments Posted in CrossNodes News
iCafe beta release

As promised, iCafe timer v2.2 is will be available for preview this month, however I will have one more testing this weekend before preview release will be available.

This is a beta release intended for final testing before release, although this is beta release you may used it for production all features working except that features which I left behind that I have posted on forum.

If all goes well, the final v2.2 (Beta) will be released within the week.

I must apologise for the delay in putting this up — as usual, life has been busy.

There are two new features in particular I would like feedback on: To all promo system and remote file browsing, offline server mode.

To see changes please click here

Permalink 0 Comments Posted in CrossNodes News
iCafe 2.2 Beta

iCafe Timer 2.2 Beta version

I have put all of my time to make sure all  functionality of iCafe Management software you can see in this software, although this version still in beta it can be used for production I have done almost 80% of testing with this version it seems not issue except features that I haven’t finish.

With 2.2 version I have modified a lot of code and added new features which very much usuable. FREE version is limited only for 10 workstation all features is enabled.

If you wish to buy unlimited workstation please don’t hesitate to contact me.

Paid version include FREE update and upgrade with 999 workstation support via YM.
iCafe timer cost 5, 000 in PHP.

iCafe timer client is tested running under Deepfreeze 6.0 with no issue.

Features of iCafe timer:

  • Move and switch workstation
  • Prepaid/Postpay time
  • Prepaid Ticket
  • Members ship
  • Remote file browsing
  • -Browse
  • -Copy
  • -Delete
  • -Up folder
  • -rename
  • -execute application
  • View client process
  • Time swithcing prepaid time to postpay
  • flexible rate switching
  • timer for phone/mobile phone charging
  • system logs filtering
  • Workstation status reporting management center
  • detail sales report
  • POS system
  • Payroll system with time in and timeout
  • Promo System
  • iCafe timer DB repair
  • Enable/disable remote USB
  • Client Security
  • remotely control volume
  • remotely shutdown/restart/locked/unlocked
  • time pause/resume
  • Quick link to eload sites
  • Quick link to forums

Timer sucessfully tested on this games:

LAN GAMES
=========
Counter Strike 1.3
Counter Strike 1.6
Battle Realms
Starcraft
Warcraft 3
Bid for Power
GTA IV
GTA III
Need for speed undercover
Red Alert 2
Red Alert 3

ONLINE GAMES:
=============
abs-cbn games
e-games games
mobius games
Level up games
line age III
Xteel
Gunz

List of features and bugs left for 2.2 Final Release:
Remote Screenshot
Download and upload from remote client
workstation status
Icons on pop up menu and pull down menu
Print monitoring
for the time consume add bonus time
crash or power shutdown time auto pause

Please register to download free icafe timer.

Permalink 1 Comments Posted in CrossNodes News


Fatal error: Call to undefined function get_pagination() in /home/.seurat/h_ronald/crossnodes.net/wp-content/themes/crossnodes/index.php on line 99