Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 13 of 13
  1. #1
    Member
    Join Date
    Jun 2004
    Location
    Southern California
    Posts
    255

    Default EasyApache + memcache

    I've enabled memcache in the easyapache config, and memcache is never compiled into the apache/php build.

    Anybody successfully enable memcache support through easyapache??

    WHM 11.15.0 cPanel 11.18.1-C21565
    CENTOS Enterprise 4.6 i686 on standard - WHM X v3.1.0

  2. #2
    Member
    Join Date
    Jan 2004
    Location
    Mar del Plata - Argentina
    Posts
    246

    Default

    I have the same problem, there are any aditional step to enable memcache?
    Cristian

  3. #3
    Member
    Join Date
    Nov 2006
    Posts
    340

    Default

    Same here, doesn't show up

  4. #4
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    How are you determining that memcache was not compiled/built ?

    Performing a test build and selecting memcache results in the following output from httpd:

    Code:
    dtest ~ # /usr/local/apache/bin/httpd -l
    Compiled in modules:
      core.c
      mod_access.c
      mod_auth.c
      mod_cache.c
      mod_mem_cache.c
    ....

  5. #5
    Member
    Join Date
    Jun 2003
    Location
    Bharat
    Posts
    232
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    I am facing the same problem of installing memcache on a box, I tried it by

    selecting memcache in easyapache, it failed

    by using all_php5 at /var/cpanel/easy/apache/rawopts/ with the entry --enable-memcache this also failed

    None of the above installed memcache.so for PHP

    Finally downloading and building by source, following these steps:

    Code:
    cd usr/local/src/
    wget http://pecl.php.net/get/memcache-3.0.3.tgz
    tar xvfz memcache-2.1.0.tar.gz
    cd memcache-3.0.3
    phpize
    ./configure
    make
    make install
    Since it installed memcache.so at
    /usr/lib/php/extensions/no-debug-zts-20060613

    Hence edited /usr/local/lib/php.ini to contain

    Code:
    extension = /usr/lib/php/extensions/no-debug-zts-20060613/memcache.so
    memcache.allow_failover = 0
    But that is also not working.

    Output from httpd does shows:
    Code:
    root@web [/usr/local/src/memcache-3.0.3]# /usr/local/apache/bin/httpd -l
    Compiled in modules:
      core.c
      mod_authn_file.c
      mod_authn_default.c
      mod_authz_host.c
      mod_authz_groupfile.c
      mod_authz_user.c
      mod_authz_default.c
      mod_auth_basic.c
      mod_cache.c
      mod_mem_cache.c
    .
    .
    .
    Any idea where things may be going wrong.

    My OS, WHM version are:
    cPanel 11.24.4-R33609 - WHM 11.24.2 - X 3.9
    CENTOS 5.2 x86_64 on standard
    Vinayak Sharma
    Vinsar.Net - Quality WebHosting Services at Economical Price USA, UK & Italian Servers
    Book Your Domain with Confidence Reliable Domain Reseller Account

  6. #6
    Member SB-Nick's Avatar
    Join Date
    Aug 2008
    Posts
    110

    Default

    Heya,

    There are few tips to troubleshoot this,

    - Check easyapache compilation log
    - See if typing 'php -v' on the box shows any error
    - double check you have Libevent compiled and installed

    My best suggestion is to go to your last easyapache log and see wheter is an error or not about memcache module compilation for Apache nor PHP.
    :: Server Buddies ::

    Server Management & Monitoring

    .Dedicated Server Solutions At Affordable Rates.

  7. #7
    Registered User
    Join Date
    Feb 2010
    Posts
    1

    Default

    Guys EasyApache compiles only the memcached module?
    Do I have to manually compile/install the memcache deamon?

  8. #8
    Member
    Join Date
    Jun 2003
    Location
    Bharat
    Posts
    232
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Yes you have to manually compile/install the memcache deamon.
    Vinayak Sharma
    Vinsar.Net - Quality WebHosting Services at Economical Price USA, UK & Italian Servers
    Book Your Domain with Confidence Reliable Domain Reseller Account

  9. #9
    PbG
    PbG is offline
    Member PbG's Avatar
    Join Date
    Mar 2003
    Posts
    238

    Default

    Thanks Vinsar!

  10. #10
    Member
    Join Date
    Jul 2006
    Posts
    60

    Default Re: EasyApache + memcache

    I compiled with easyapache ok,
    but in httpd.conf i dont find any "if module memcache" or similar,
    i want configure the memory size available for memcache but i dont know how to do.
    Anybody know how to configure memcache?
    I have a site with lot of images and i want cache it? how to configure? thanks!

  11. #11
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: EasyApache + memcache

    There's a tutorial on how to do this at the following location:

    Install Memcache onto cPanel running CentOS | Mr PHP
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  12. #12
    Member
    Join Date
    Jul 2006
    Posts
    60

    Default Re: EasyApache + memcache

    Quote Originally Posted by cPanelTristan View Post
    There's a tutorial on how to do this at the following location:

    Install Memcache onto cPanel running CentOS | Mr PHP
    Hi, thanks for your support,
    but i dont know why i need do this steps, if i selected to install in easy apache.

    Code:
    # /usr/local/apache/bin/httpd -l
    Compiled in modules:
      core.c
      mod_mem_cache.c
    I think it's interested implement it in WHM interface.

    Thanks,

  13. #13
    Member monarobase's Avatar
    Join Date
    Jan 2010
    Location
    France
    Posts
    387
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: EasyApache + memcache

    Hello,

    I've been looking into memcached but am concerned about security issues.

    On shared hosting servers is it possible to secure memcached enough ?

    It's easy to secure memcached from an outside point of view, but what about securing from the inside ?

    Obviously you would only cache pages viewed publicly so does it matter if other sites on the same server can access this cache ? These sites would be able to access the web pages after all…

    What about resource controlling ? What is the required approach ? I presume you have to set the resource limits per server and not per user.

    Finally on suPHP and fastCGI machines, PHP is run with cpanel account user and not the "nobody" user, I presume that this is not a problem with memcached ?

    Do some hosts provide memcached on their shared hosting ? Or is it too much of a risk ?

Similar Threads & Tags
Similar threads

  1. memcache install
    By devilsreject in forum New User Questions
    Replies: 4
    Last Post: 01-12-2011, 11:16 AM
  2. Memcache and Memcached confuse
    By pamamolf in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 11-14-2010, 08:33 PM
  3. php not picking up memcache.so
    By zamrg in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 11-14-2010, 01:58 PM
  4. How to load memcache
    By DaveTomneyUK in forum New User Questions
    Replies: 0
    Last Post: 10-08-2010, 03:11 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube