vBulletin SEO Forums

SEO

vBulletin Search Engine Optimization

Buy vBSEO Now! HACKER SAFE certified sites prevent over 99.9% of hacker crime.
ne nw
vBSEO Team: Hot or Not? Ready for Traffic Explosion? vBSEO 3.2.0 GOLD Has Landed Success with vBSEO = 600ore Web Visitors + $1400 in a Day! vBSEO Helps Forum Earn $100/day from Google AdSense Discover the Power of "Long Tail Search" Crawlability Inc. Files for SEO Technology Patent
se sw

Installing Xcache on your server

This is a discussion on Installing Xcache on your server within the Member Articles forums, part of the Focus on Members category; Not meant to be comprehensive but I did want to provide the instructions for installing xCache on your server to ...

Go Back   vBulletin SEO Forums > Focus on Members > Member Articles

Enhancing 80 million pages.

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

 

LinkBack Thread Tools
  #1  
Old 11-21-2007, 11:03 PM
Junior Member
 
Real Name: Rich
Join Date: Sep 2007
Location: Okinawa, Japan
Posts: 15
Installing Xcache on your server

Not meant to be comprehensive but I did want to provide the instructions for installing xCache on your server to take advantage of vBSEO's features to use this cache system. After trying a couple of the other cache systems, I found that this one worked without causing httpd to regularly crash (something eAccelerator kept causing).

My server is an x686 with CentOS linux running on it. Some of your file locations might be different (or settings in php.ini) but these locations were exactly were mine were located.

Log into root and create a directory called src and browse to it
Code:
~/src $
get the latest version of xcache (in this case 1.2.1 and untar/gunzip it:
Code:
~/src $ wget http://xcache.lighttpd.net/pub/Releases/1.2.1/xcache-1.2.1.tar.gz
~/src $ tar -zxf xcache-1.2.1.tar.gz
Browse to the xcache directory and follow these steps to install:
Code:
~/src $ cd xcache
~/src/xcache $ phpize
~/src/xcache $ ./configure --enable-xcache
~/src/xcache $ make
~/src/xcache $ su
~/src/xcache $ make install
Now you need to edit your php.ini file. If you have Zend installed then it's in the Zend subdirectory (/usr/local/Zend/etc for me) but there are also shortcuts to the php.ini file usually located in /usr/local that you can edit.

Now, you'll see a number of different Xcache settings to add to your php.ini file. This is what works for me. Note that I have a pretty large forum (about 500K posts). The "trick" is to get your xcache size sufficiently large to avoid OOM's. Play around with the size until you don't get any OOM's. Also, in the documentation, it won't mention that you need to have a var size but this is required or you'll get some strange errors with vBSEO if you don't have a var.size established. My var.size is much smaller than the xcache size but both are optimum for my site.

Here is my config (I place this *above* my calling of the Zend optimizer in my php.ini file):
Code:
[xcache-common]
zend_extension = /usr/local/lib/php/extensions/no-debug-non-zts-20020429/xcache.so
; required for >=php5.1 if you turn XCache on
auto_globals_jit = Off
[xcache.admin]
xcache.admin.user = "admin"
; paste the output of md5("password") below
xcache.admin.pass = "******"
[xcache]
xcache.shm_scheme = "mmap"
xcache.size = 140M
xcache.count = 2
xcache.slots = 1K
xcache.readonly_protection = Off
xcache.mmap_path = "/dev/zero"
xcache.stat = On
xcache.cacher = On
xcache.ttl = 3600
xcache.gc_interval = 300
; same as aboves but for variable cache
xcache.var_size = 2M
xcache.var_count = 2
xcache.var_slots = 1K
 
; default ttl
xcache.var_ttl = 3600
xcache.var_maxttl = 7200
xcache.var_gc_interval = 300
A few admin notes:

You don't have to specify an admin password but I recommend it. Pick a password and then use an MD5 generator to fill in this field (here is a free one: MD5 generator - Calculate MD5 for the typed string.)

Browsing to your xcache status is then as simple as uploading your files from the downloaded file above into a web addressable space. Download that tar.gz file above (xcache-1.2.1.tar.gz) to a place on your computer where you can extract it and upload the directory with the admin tools to a subdirectory on your forum's page for instance. Alternatively, you can use some linux commands to move the directory in the ~/src/xcache directory to a space where your web space is. I have mine at: http://www.forumurl.com/xcache so it's easy to get to)

I then use the results (particularly the OOM to see how it's going). If you have a small forum you can probably get away with much smaller than 140M. Also, keep in mind that my xcache.count=2 and xcache.var.count=2 settings refer to the number of CPU's I have so set that accordingly for your site.

I hope this was not too obscure. I'm trying to save you from some addtional time this took me.

One last thing - after you've gotten all of this set up, I recommend installing this additional mod: datastore cache to XCache - boost your vBulletin - vBulletin.org Forum

I found that it only affected the xcache.var.size by about 1MB on my site (changed from 1MB to 2MB after installing it) but the performance benefit was really good. Putting this mod together with the vBSEO mod has really increased performance.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 11-24-2007, 09:23 PM
mykkal's Avatar
Member
 
Real Name: Michael McKoy
Join Date: Jul 2007
Posts: 31
Question What exactly is Xcache

I mean...what does Xcache do? How will my site benefit?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 11-25-2007, 03:27 AM
briansol's Avatar
Senior Member
vBSEO Pre-Release TeamDesign for SEOBig Board Administrator
 
Real Name: Brian
Join Date: Apr 2006
Location: Central CT, USA
Posts: 5,082
it's a php caching solution. saves your server from compling the php all the time.

I've found it to be buggy, and crashy. i've removed it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 11-25-2007, 03:59 AM
mykkal's Avatar
Member
 
Real Name: Michael McKoy
Join Date: Jul 2007
Posts: 31
I understand what a cache is. So does it increase performance or cuase problems?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 11-25-2007, 05:06 AM
Junior Member
 
Real Name: Nneel
Join Date: Jun 2006
Posts: 28
Quote:
Originally Posted by mykkal View Post
I mean...what does Xcache do? How will my site benefit?
it will help u to save bandwidth,reduce page loading time,reduce server load,boost ur php site performance..

using vbdatastore- it will reduce ur sql query
Quote:
Originally Posted by mykkal View Post
I understand what a cache is. So does it increase performance or cuase problems?
using it been 1yrs..never had any problem...it works farmore better than eAcc.It really helping me out.......helped out many satisfied user
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 11-26-2007, 03:38 AM
Danny Bembibre's Avatar
vBSEO.com SysAdmin
vBSEO Total Customer SupportvBSEO Pre-Release TeamBig Board Administrator
 
Real Name: Daniel Bembibre Gude
Join Date: Mar 2007
Location: Madrid (Spain)
Posts: 471
Blog Entries: 19
Send a message via MSN to Danny Bembibre Send a message via Skype™ to Danny Bembibre
Never compile as root or configure as root, only make install need be maked as root user.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 12-01-2007, 09:28 PM
Junior Member
 
Real Name: Possum
Join Date: Oct 2007
Location: CT
Posts: 19
I've got it installed along with vbdatastore and it works quite well. Took some tweaking with vBSEO and using the var cache, but I got it, and I am very happy with the differential (even though my traffic is nominal compared to many others, but give me time)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8  
Old 12-09-2007, 08:09 PM
Junior Member
 
Real Name: Serkan
Join Date: Jan 2007
Posts: 27
I have been searching for several hours and could't decide xcache.var_size until I read this thread. You helped me so much. Thank you.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9  
Old 12-23-2007, 04:42 PM
Junior Member
 
Join Date: Nov 2005
Posts: 24
yep exactly... was getting the xcache.var_size = 0 error and it got me here. just wondering y lighty people never mentioned abt the size values in their manual..

installed the datastore mod( vb.org) as well.
thanks mate.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10  
Old 12-28-2007, 10:55 PM
f4vn's Avatar
Junior Member
 
Real Name: Mr AJ
Join Date: Nov 2007
Posts: 28
hi SemperFideles,
Do you install XCache using an src.rpm How-To: Installing XCache on your RHEL or CentOS 4 Server - vBulletin Community Forum
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #11  
Old 01-02-2008, 12:29 PM
Senior Member
vBSEO Pre-Release Team
 
Real Name: chance
Join Date: Aug 2006
Posts: 216
Send a message via AIM to rocket468
I just build it from the source on the XCache website. Everything works but i can't get links in the by colum to my users profiles on my forum home page to rewrite correctly when xcache is enabled in vbseo. turning a blind eye to the urls not being writen i do say the site feels more snappy. Anyone else with this problem?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12  
Old 03-02-2008, 06:50 PM
amenadiel's Avatar
Senior Member
Big Board Administrator
 
Real Name: Felipe CHW
Join Date: Feb 2007
Location: Santiago, Chile
Posts: 161
where are the caché files stored? I was thinking in mounting xcache on a tmpfs, but I can't find them!

Perhaps they are already loaded in RAM?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13  
Old 03-03-2008, 01:33 AM
briansol's Avatar
Senior Member
vBSEO Pre-Release TeamDesign for SEOBig Board Administrator
 
Real Name: Brian
Join Date: Apr 2006
Location: Central CT, USA
Posts: 5,082
it is a ram engine.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14  
Old 03-03-2008, 07:36 AM
amenadiel's Avatar
Senior Member
Big Board Administrator
 
Real Name: Felipe CHW
Join Date: Feb 2007
Location: Santiago, Chile
Posts: 161
Ok that makes sense :blush
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15  
Old 05-29-2008, 10:27 PM
EGS's Avatar
EGS EGS is offline
Member
 
Real Name: Justice McCay
Join Date: May 2008
Location: New Jersey
Posts: 89
Not to crash a thread, but I've heard that eAccelerator is better and faster than XCache.

Can anyone confirm? I've read a few reviews and comparisons between the two..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Server Crash: Restored Forum & vbSEO fernandose Troubleshooting 3 08-23-2007 11:41 AM
$$ Full vBulletin 3.6.7 installing help on new server $$ Vibu Off-Topic & Chit Chat 3 06-01-2007 10:28 PM
New class of semi-dedicated server Doug Nelson Off-Topic & Chit Chat 2 05-09-2007 08:40 PM
Suggestion for a server problem Mert Gökçeimam Off-Topic & Chit Chat 1 05-03-2006 11:23 AM


All times are GMT -4. The time now is 01:06 PM.


Powered by vBulletin Version 3.8.0 Beta 1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.5 ©2008, Crawlability, Inc.