The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

xCache cPanel/WHM Installation Guide

Discussion in 'General Discussion' started by saamxvr, Nov 7, 2010.

  1. saamxvr

    saamxvr Well-Known Member

    Joined:
    Oct 30, 2010
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    6
    Hello Plz gide me Stap by stap to install XCache on Cpanel/whm ? :rolleyes:

    I already installed Ngnix , So Xcache Support with Ngnix ?
     
    #1 saamxvr, Nov 7, 2010
    Last edited: Nov 7, 2010
  2. saamxvr

    saamxvr Well-Known Member

    Joined:
    Oct 30, 2010
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    6
    Dump.!!! Have any one help here ?
     
  3. kuldeep_

    kuldeep_ Well-Known Member

    Joined:
    Apr 24, 2010
    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    6
    As you are using Ngnix, you will need to manually install/compile XCache

    Refer to following steps.

    1) Download source file.
    2) Extracting file.
    3) change directory to xcache-1.2.2
    Now edit php.ini and add following extension.

    Restart Ngnix server. Now create a phpinfo and you should see Xcache in it
    That's all :)

    If you are runing apache web server, then you can simply run easyapache and select xcache from php module.
     
  4. akia

    akia Member

    Joined:
    Jun 3, 2010
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    I'm looking for help on how to install xCache and i've been looking in easyapache but can't seem to find anything on how to install it.
     
  5. bhanuprasad1981

    bhanuprasad1981 Well-Known Member

    Joined:
    Aug 5, 2008
    Messages:
    222
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    i really don't see any option in easyapache to install xcache ?
     
  6. rlshosting

    rlshosting Well-Known Member

    Joined:
    Apr 23, 2009
    Messages:
    170
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    United States
    cPanel Access Level:
    Root Administrator
    It's not in easy apache. You need to use putty.
     
  7. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    EasyApache provides EAccelerator rather than XCache or APC OPCode options.
     
  8. saamxvr

    saamxvr Well-Known Member

    Joined:
    Oct 30, 2010
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    6
    Hello i really want to install Xcach on my server plz any Cpanel stuff memener answer this post :) complete guide plz , Thanks
     
  9. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
  10. saamxvr

    saamxvr Well-Known Member

    Joined:
    Oct 30, 2010
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    6
    Thanks im gona install Xcache now

    Code:
    wget http://xcache.lighttpd.net/pub/Releases/1.3.0/xcache-1.3.0.tar.gz
    tar -zxvf xcache-1.3.0.tar.gz
    cd xcache-1.3.0
    phpize
    ./configure –enable-xcache
    make
    make install 
     
  11. saamxvr

    saamxvr Well-Known Member

    Joined:
    Oct 30, 2010
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    6
    i got error

    Code:
    root@server1 [~]# wget http://xcache.lighttpd.net/pub/Releases/1.3.0/xcache-1.3.0.tar.gz
    --2011-05-24 05:56:04--  http://xcache.lighttpd.net/pub/Releases/1.3.0/xcache-1.3.0.tar.gz
    Resolving xcache.lighttpd.net... 188.40.103.19, 2a01:4f8:100:8082::2
    Connecting to xcache.lighttpd.net|188.40.103.19|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 105881 (103K) [application/octet-stream]
    Saving to: `xcache-1.3.0.tar.gz.1'
    
    100%[======================================>] 105,881     --.-K/s   in 0.02s
    
    2011-05-24 05:56:05 (4.88 MB/s) - `xcache-1.3.0.tar.gz.1' saved [105881/105881]
    
    root@server1 [~]# tar -zxvf xcache-1.3.0.tar.gz
    xcache-1.3.0/
    xcache-1.3.0/.config
    xcache-1.3.0/.cvsignore
    xcache-1.3.0/.vimrc
    xcache-1.3.0/admin/
    xcache-1.3.0/admin/common-en.lang.php
    xcache-1.3.0/admin/common-zh-simplified-utf-8.lang.php
    xcache-1.3.0/admin/common-zh-traditional-utf-8.lang.php
    xcache-1.3.0/admin/common.php
    xcache-1.3.0/admin/config.php.example
    xcache-1.3.0/admin/edit.php
    xcache-1.3.0/admin/edit.tpl.php
    xcache-1.3.0/admin/footer.tpl.php
    xcache-1.3.0/admin/header.tpl.php
    xcache-1.3.0/admin/help-en.lang.php
    xcache-1.3.0/admin/help-zh-simplified-utf-8.lang.php
    xcache-1.3.0/admin/help-zh-traditional-utf-8.lang.php
    xcache-1.3.0/admin/help.php
    xcache-1.3.0/admin/index.php
    xcache-1.3.0/admin/mkpassword.php
    xcache-1.3.0/admin/tablesort.js
    xcache-1.3.0/admin/xcache.css
    xcache-1.3.0/admin/xcache.php
    xcache-1.3.0/admin/xcache.tpl.php
    xcache-1.3.0/align.h
    xcache-1.3.0/assembler.c
    xcache-1.3.0/AUTHORS
    xcache-1.3.0/ChangeLog
    xcache-1.3.0/config.m4
    xcache-1.3.0/config.w32
    xcache-1.3.0/const_string.c
    xcache-1.3.0/const_string.h
    xcache-1.3.0/const_string_opcodes_php4.x.h
    xcache-1.3.0/const_string_opcodes_php5.0.h
    xcache-1.3.0/const_string_opcodes_php5.1.h
    xcache-1.3.0/const_string_opcodes_php6.x.h
    xcache-1.3.0/COPYING
    xcache-1.3.0/coverager/
    xcache-1.3.0/coverager/common-en.lang.php
    xcache-1.3.0/coverager/common-zh-simplified-gb2312.lang.php
    xcache-1.3.0/coverager/common-zh-simplified-utf-8.lang.php
    xcache-1.3.0/coverager/common.php
    xcache-1.3.0/coverager/config.php.example
    xcache-1.3.0/coverager/coverager.css
    xcache-1.3.0/coverager/coverager.php
    xcache-1.3.0/coverager/coverager.tpl.php
    xcache-1.3.0/coverager/index.php
    xcache-1.3.0/coverager.c
    xcache-1.3.0/coverager.h
    xcache-1.3.0/decoder.c
    xcache-1.3.0/Decompiler.class.php
    xcache-1.3.0/disassembler.c
    xcache-1.3.0/disassembler.h
    xcache-1.3.0/encoder.c
    xcache-1.3.0/foreachcoresig.h
    xcache-1.3.0/includes.c
    xcache-1.3.0/INSTALL
    xcache-1.3.0/lock.c
    xcache-1.3.0/lock.h
    xcache-1.3.0/Makefile.frag
    xcache-1.3.0/mem.c
    xcache-1.3.0/mem.h
    xcache-1.3.0/mkopcode.awk
    xcache-1.3.0/mkopcode_spec.awk
    xcache-1.3.0/mkstructinfo.awk
    xcache-1.3.0/mmap.c
    xcache-1.3.0/NEWS
    xcache-1.3.0/opcode_spec.c
    xcache-1.3.0/opcode_spec.h
    xcache-1.3.0/opcode_spec_def.h
    xcache-1.3.0/optimizer.c
    xcache-1.3.0/optimizer.h
    xcache-1.3.0/phpdc.phpr
    xcache-1.3.0/phpdop.phpr
    xcache-1.3.0/prepare.devel
    xcache-1.3.0/prepare.devel.inc
    xcache-1.3.0/prepare.devel.inc.example
    xcache-1.3.0/processor/
    xcache-1.3.0/processor/dispatch.m4
    xcache-1.3.0/processor/hashtable.m4
    xcache-1.3.0/processor/head.m4
    xcache-1.3.0/processor/main.m4
    xcache-1.3.0/processor/processor.m4
    xcache-1.3.0/processor/string.m4
    xcache-1.3.0/processor/struct.m4
    xcache-1.3.0/processor.c
    xcache-1.3.0/README
    xcache-1.3.0/run-xcachetest
    xcache-1.3.0/stack.c
    xcache-1.3.0/stack.h
    xcache-1.3.0/test.mak
    xcache-1.3.0/THANKS
    xcache-1.3.0/utils.c
    xcache-1.3.0/utils.h
    xcache-1.3.0/xcache-test.ini
    xcache-1.3.0/xcache-zh-gb2312.ini
    xcache-1.3.0/xcache.c
    xcache-1.3.0/xcache.h
    xcache-1.3.0/xcache.ini
    xcache-1.3.0/xcache_globals.h
    xcache-1.3.0/xc_malloc.c
    xcache-1.3.0/xc_shm.c
    xcache-1.3.0/xc_shm.h
    root@server1 [~]# cd xcache-1.3.0
    root@server1 [~/xcache-1.3.0]# phpize
    Configuring for:
    PHP Api Version:         20090626
    Zend Module Api No:      20090626
    Zend Extension Api No:   220090626
    root@server1 [~/xcache-1.3.0]# ./configure .enable-xcache
    configure: WARNING: you should use --build, --host, --target
    checking for egrep... grep -E
    checking for a sed that does not truncate output... /bin/sed
    checking for .enable-xcache-cc... no
    checking for .enable-xcache-gcc... no
    checking for cc... cc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether cc accepts -g... yes
    checking for cc option to accept ANSI C... none needed
    checking how to run the C preprocessor... cc -E
    checking for icc... no
    checking for suncc... no
    checking whether cc understands -c and -o together... yes
    checking for system library directory... lib
    checking if compiler supports -R... no
    checking if compiler supports -Wl,-rpath,... yes
    checking build system type... Invalid configuration `.enable-xcache': machine `.enable' not recognized
    configure: error: /bin/sh ./config.sub .enable-xcache failed
    root@server1 [~/xcache-1.3.0]# make
    make: *** No targets specified and no makefile found.  Stop.
    root@server1 [~/xcache-1.3.0]# make install
    make: *** No rule to make target `install'.  Stop.
    root@server1 [~/xcache-1.3.0]#
     
  12. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    This command is incorrect:

    Code:
    ./configure .enable-xcache
    Most flags are passed using - or -- and enable-xcache is a flag being passed. Please try -enable-xcache and, if that doesn't work, please try --enable-xcache
     
  13. saamxvr

    saamxvr Well-Known Member

    Joined:
    Oct 30, 2010
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    6
    yap i installed , how i check its work or not ?
     
  14. saamxvr

    saamxvr Well-Known Member

    Joined:
    Oct 30, 2010
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    6
  15. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Which PHP handler are you using? suPHP does not work with XCache or any OPCode caching, so if you are using suPHP, you cannot make use of XCache.
     
  16. saamxvr

    saamxvr Well-Known Member

    Joined:
    Oct 30, 2010
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    6
    im use fcgi
     
  17. saamxvr

    saamxvr Well-Known Member

    Joined:
    Oct 30, 2010
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    6
    i just add this line to php.ini file

    xcache.size = 64M
    xcache.var_size = 4M

    now shown xcache work !! but i want to know 100% how install Xcache successfully :) Thanks
     
  18. kotakomputer

    kotakomputer Member

    Joined:
    Mar 21, 2010
    Messages:
    24
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Jakarta, Indonesia
    CPanel - Easy Apache now support XCache!

    Don't forget to upgrade to latest CPanel.
     
  19. cornfeedhobo

    cornfeedhobo Member

    Joined:
    Dec 2, 2011
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Every time I google this question, I get this forum link, so here is what I think is the much easier way to go about it.
    cPanel has made a ton of scripts for the command line, so always look there first....
    They have a tool called phpextensionmgr which handles this for you. you can use 'list' to learn what other extensions is handles

    First, use Easyapache to make sure the xcache support is compiled in.

    Second, SSH in to the box and use the "/scripts/phpextensionmgr install xcache" command and it will compile xcache for you.

    To uninstall, simply run "/scripts/phpextensionmgr uninstall xcache"
     
  20. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    We definitely recommend using /scripts/phpextensionmgr to install and uninstall PHP extensions. They are extensions, so installing and uninstalling them does not require rebuilding all of Apache and PHP. Not only is is much faster to use /scripts/phpextensionmgr, there is less risk of something going wrong during an unnecessary Apache and PHP build.

    /scripts/phpextensionmgr will install and uninstall the following extensions:

    Code:
    # /scripts/phpextensionmgr list
    Available Extensions:
    EAccelerator
    IonCubeLoader
    Zendopt
    Xcache
    SourceGuardian
    PHPSuHosin
    #
    Its usage is as follows:

    Code:
    # /scripts/phpextensionmgr help
    Usage:
        phpextensionmgr [options] [action] [extension]
    
            Options:
              --help       Help message
              --prefix     Installation prefix for PHP (normally /usr/local or /usr/local/php4)
    
            Actions:
              install      Install or update the extension
              uninstall    Uninstall the extension
              status       Display the installation status of the extension
              list         Show available extensions
    
    #
     
Loading...

Share This Page