Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 11 of 11

This is a discussion on Installing MMcache on VPS in the VPS & Dedicated forum
Ok, based on the question you can probably see I'm a n00b when it comes to this. How do I go about installing MMcache ? ...

  1. #1
    JPC Member
    Join Date
    May 2006
    Posts
    12

    Installing MMcache on VPS

    Ok, based on the question you can probably see I'm a n00b when it comes to this. How do I go about installing MMcache ? Any detailed answers would be GREATLY appreicated to help me off in the right direction.

    http://turck-mmcache.sourceforge.net....html#download

    like how do I "compile" on my new VPS ?

    Thanks much for any advice/help !

  2. #2
    the Windlord Gwaihir's Avatar
    Join Date
    Jun 2002
    Posts
    2,562
    You don't. Turck MMCache is history. Its development stopped years ago. While I think some sites still run it, I wouldn't recommend it for new deployment.

    There are three more current ones to pick from:
    - eAccelerator, which is directly based on MMCache.
    - APC: http://nl2.php.net/apc , http://pecl.php.net/package/APC , the most current and most open one of the lot. Will likely be bundled with PHP in the near future.
    - Zend's PHP Accellerator, a paid solution from Zend (the company behind PHP) itself
    Regards,

    Wim Heemskerk
    ---
    Visit MeCCG.net - Cardgaming in J.R.R. Tolkien's Middle-earth
    And Gwaihir.net - The Middle-earth CCG store

  3. #3
    JPC Member
    Join Date
    May 2006
    Posts
    12
    Thanks for updating me. I've had a look at http://nl2.php.net/apc and downloaded APC from the other link, I just didn't find any instructions on how to go about installing it. (http://nl2.php.net/manual/en/install.pecl.php let to alot of my confusion)

    Thanks again for reading/replying.

  4. #4
    the Windlord Gwaihir's Avatar
    Join Date
    Jun 2002
    Posts
    2,562
    It's easiest to use the PECL installer (which will download the files itself). If you have installed PHP recently, you most likely have the recent (1.4+) PEAR and PECL command line installers too. If that's the case, all you need is:

    PECL install APC

    from the command line.


    BTW: I agree 100% that the documentation on APC sucks. It is basically absent and info must be gathered from tutorials spread across the net.
    Regards,

    Wim Heemskerk
    ---
    Visit MeCCG.net - Cardgaming in J.R.R. Tolkien's Middle-earth
    And Gwaihir.net - The Middle-earth CCG store

  5. #5
    JPC Member
    Join Date
    May 2006
    Posts
    12
    Following this tread which seems to be farily detailed : http://www.vbulletin.com/forum/showthread.php?t=165367

    I got all the way to the end and everything seemd fine on the install untill I tried to reboot apache(httpd) and it failed. I used the /usr/local/lib/php.ini to add the extension, and apache just didnt seem to like it. I commented it out and then apache restarted fine. All I got was a generic "restart failed. please contact sysadmin"


    Anyone have any thoughts ?

  6. #6
    JPC Member
    Join Date
    May 2006
    Posts
    12
    I appears moving the directory of the extnsion to the extension_dir variable and then leaving just the exntesion=apc.so

    and then also commenting out the "apc.shm_size = 32" makes it work for me... any idea where else I can set the shared memory var at to keep this working ?

  7. #7
    the Windlord Gwaihir's Avatar
    Join Date
    Jun 2002
    Posts
    2,562
    That looks fine to me. The one PECL command should have taken care of step 1-8 for you though.

    I've not ran into this particular problem before. Then again, never tried this on VPS either.

    That 32 is the default though, so not setting it explicitly shouldn't matter one bit. You've got APC showing up ok in phpinfo? Then I think you're done for now (till you just might have very specific reason to tweak it to your site(s) in future)
    Regards,

    Wim Heemskerk
    ---
    Visit MeCCG.net - Cardgaming in J.R.R. Tolkien's Middle-earth
    And Gwaihir.net - The Middle-earth CCG store

  8. #8
    Voltron wannabe tank's Avatar
    Join Date
    Apr 2004
    Location
    Houston
    Posts
    306
    I can't get it to run on CentOS to save my life. I now run the latest beta 2 eAccelerator on my VPS and it works ok. I've installed APC just fine on my dedicated box with Fedora Core 2.

  9. #9
    JPC Member
    Join Date
    May 2006
    Posts
    12
    Quote Originally Posted by Gwaihir
    That looks fine to me. The one PECL command should have taken care of step 1-8 for you though.

    I've not ran into this particular problem before. Then again, never tried this on VPS either.

    That 32 is the default though, so not setting it explicitly shouldn't matter one bit. You've got APC showing up ok in phpinfo? Then I think you're done for now (till you just might have very specific reason to tweak it to your site(s) in future)
    That PELC command wouldn't work.. I'm guessing its just the way the VPS's are setup.

    Yeah, I have APC showing just fine in phpinfo and acp.php. The default shown in those though is 30 (for refernce).


    Quote Originally Posted by tank
    I can't get it to run on CentOS to save my life. I now run the latest beta 2 eAccelerator on my VPS and it works ok. I've installed APC just fine on my dedicated box with Fedora Core 2.
    My VPS is running CentOS, and honestly I've been very happy with the way its performed and taken mods.

  10. #10
    the Windlord Gwaihir's Avatar
    Join Date
    Jun 2002
    Posts
    2,562
    Quote Originally Posted by AWD_ENVY
    That PELC command wouldn't work.. I'm guessing its just the way the VPS's are setup.
    Wouldn't work at all or failed on phpize? I don't know about the VPS / CentOS but on a number of distributions phpize is part of some php-dev package rather than bundled with php itself. Anyway; good to hear it's working for you.
    Regards,

    Wim Heemskerk
    ---
    Visit MeCCG.net - Cardgaming in J.R.R. Tolkien's Middle-earth
    And Gwaihir.net - The Middle-earth CCG store

  11. #11
    JPC Member
    Join Date
    Apr 2006
    Posts
    40
    Yea. On CentOS you have to install php-devel in order to get it. Then use pecl to install it. In fact it was the only way I could get it to install. But if you run Gallery2 then be warned that the they don't play nice at all. Be ready for ERROR_LOCK_REQUIRED to show its face once APC is running.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •