Mcache: Install and configure mcache (msession) to be used for session caching in PHP.

Installing mcache, previously known as msession, on CentOS 32 bit system.

If you are on 64 bit system, you will get errors, lots of them.  I went through and fixed “some” errors by modifying code but it was just taking too much time so I decided not to go 64 bit route.  But below are the efforts I made.  Maybe somebody can help with rest of the steps.   Following instructions work fine with 32 bit systems. For more help look at the MCache Handbook.
Thank you Mohawk Software for all your efforts developing this!

Web site:
PHP reference:

yum install ncurses-devel #otherwise you might see errors about no such file curses.h

tar zxf mcache*.gz
tar zxf phoenix*.gz
cd phoenix
ln -s Linux.mak config/config.mak
make dirs
make links
make butils
export PATH=$PATH:/opt/mohawk/bin
make libs
vi sqldrv/Makefile # about line 24, comment out POSTGRES=1 and ODBC=1
cd ../mcac*
make server
vi tools/Makefile # after line which says: CARGS+=-DBINDIR=\"$(BINDIR)\"
                  # add:  CARGS+=-DSBINDIR=\"$(SBINDIR)\"
make utils
ln -s /opt/mohawk/lib/ /lib/
/opt/mohawk/sbin/mcache &

In your php.ini, add:   
; Use mcache as the save handler
session.save_handler = mcache
; Set the host which runs the mcache daemon
session.save_path = localhost

Let us test if mcache server is running:

You should see:
Usage: /opt/mohawk/bin/mping host
Pings a session daemon
Using localhost
localhost:8086 is alive

Great! You mcache server is now up and running and listening for connections.

You can add above command to your start up scripts so server will run next time you reboot.  Easiest way to achieve this is to add that command to end of /etc/rc.local

32 bit installation is now complete! 


I could not get 64 bit install to go but here are my notes for whoever wants to try it.  If you get it working, please come back and comment on how you got it installed.

64 bit install notes:First error:  CPU you selected does not support x86-64 instruction set
to fix this, edit config/unixgcc.mak and remove all instances of -mtune=pentium3

Following are code changes to fix some other errors:

line 83 in phmalloc.h
virtual void *memdup(void *mem, unsigned int cb);
virtual void *memdup(void *mem, size_t cb);

line 446 in mexpat.cpp
static void *xmlalloc(void *context, unsigned int cb)
static void *xmlalloc(void *context, size_t cb)

static void *xmlrealloc(void *context, void *p, unsigned int cb)
static void *xmlrealloc(void *context, void *p, size_t cb)

116 thoughts on “Mcache: Install and configure mcache (msession) to be used for session caching in PHP.

  1. situs porn

    Remarkable things here. I am very glad to peer your article.
    Thanks a lot and I’m having a look ahead to contact you. Will you please drop me a mail?

  2. estops

    Howdy very nice website!! Man .. Excellent .. Amazing ..
    I’ll bookmark your website and take the
    feeds also? I am satisfied to seek out a lot of helpful information right here within the put
    up, we’d like work out extra strategies in this regard, thanks for sharing.
    . . . . .

  3. agen gacor

    Great post however I was wanting to know if you could write a litte
    more on this topic? I’d be very grateful if you could elaborate a little
    bit more. Thank you!

  4. slot online datuk138 Dengan adanya agen datuk138 situs slot online terpercaya telah hadir di Indonesia,
    anda dapat ikut merasakan keseruan dari permainan slot gacor yang kami
    sediakan. Permainan slot online sangatlah terkemuka di seluruh dunia,
    banyak juga orang orang kaya yang rela pergi ke
    luar negeri hanya untuk bermain di slot online. Bayangkan seberapa banyak uang yang mereka habiskan untuk ongkos pergi ke luar negeri saja agar dapat bermain slot.

    Tiket pesawat yang mahal dan visa yang harus memiliki deposito yang jumlahnya juga
    bukan sedikit. Sangat buang buang uang anda semua bila anda ingin ikut
    merasakan permainan slot di luar negri.

    Namun sekarang anda dapat ikut merasakan keseruan dari memainkan semua permainan yang ada di
    slot secara live dan online. Jadi anda tidak perlu mengeluarkan uang yang banyak untuk sebagai ongkos anda pergi keluar negeri saja.
    Anda dapat memainkan permainan slot online hanya menggunakan handphone yang anda miliki
    saja. Sehingga anda dapat memainkan permainan slot di mana saja yang anda inginkan dan sesuka hati
    anda degan login slot datuk 138.

    Lebih baik uang yang anda simpan untuk bertaruh dari pada membeli tiket dan untuk mengurus visa ke
    luar negri. Untuk menjadi modal bermain anda pada daftar datuk138
    slot online terpercaya yang sudah kami siapkan pada website ini.
    Anda akan dimanjakan dengan seluruh permainan slot online yang
    sudah kami siapkan tersebut. Karena permainan slot yang sudah kami siapkan dapat anda mainkan secara
    live dan online saja. Seluruh permainan slot yang
    ada di luar negri kami sudah siapkan pada website
    kami ini yang dapat anda saksikan secara

    Jadi seluruh permainan slot datuk138 terbaru disiapkan untuk anda akan sangat adil dan tidak ada
    settingan sedikitpun. Karena anda dapat menyaksikan langsung bandar yang membagikan kartu dan membukanya pas di depan anda semua.
    Jadi tidak ada kecurang sedikitpun pada permainan slot yang
    sudah kami persiapkan untuk anda.

  5. Crypto News

    Thanks for every other excellent post. The place else may just anyone get that type of info in such an ideal
    method of writing? I have a presentation subsequent week, and
    I’m on the search for such information.

  6. ?? ????

    What’s up friends, how is all, and what you want to say concerning this piece of writing, in my
    view its actually remarkable for me.

  7. bandarqq

    Aw, this was an incredibly good post. Finding the time and actual effort to create a good article… but what can I say…
    I put things off a lot and never manage to get nearly anything done.

  8. Games

    My relatives always say that I am killing my time here at web,
    however I know I am getting familiarity every day by reading such pleasant articles
    or reviews.

  9. ??????

    Thank you for the auspicious writeup. It actually was a entertainment account
    it. Look complicated to more delivered agreeable from you!
    By the way, how could we keep up a correspondence?

Leave a Reply

Your email address will not be published. Required fields are marked *