vBulletin Search Engine Optimization
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 ...
| |||||||
Enhancing 80 million pages. | Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| 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 $ 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 Code: ~/src $ cd xcache ~/src/xcache $ phpize ~/src/xcache $ ./configure --enable-xcache ~/src/xcache $ make ~/src/xcache $ su ~/src/xcache $ make install 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
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. |
|
#2
| ||||
| ||||
|
I mean...what does Xcache do? How will my site benefit?
|
|
#3
| ||||
| ||||
|
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. |
|
#4
| ||||
| ||||
|
I understand what a cache is. So does it increase performance or cuase problems?
|
|
#5
| |||
| |||
| 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 using it been 1yrs..never had any problem...it works farmore better than eAcc.It really helping me out.......helped out many satisfied user |
|
#7
| |||
| |||
|
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)
|
|
#8
| |||
| |||
|
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. |
|
#9
| |||
| |||
|
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. |
|
#10
| ||||
| ||||
|
hi SemperFideles, Do you install XCache using an src.rpm How-To: Installing XCache on your RHEL or CentOS 4 Server - vBulletin Community Forum |
|
#11
| |||
| |||
|
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?
|
|
#12
| ||||
| ||||
|
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? |
|
#13
| ||||
| ||||
|
it is a ram engine.
|
|
#14
| ||||
| ||||
|
Ok that makes sense :blush
|
|
#15
| ||||
| ||||
|
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.. |
| Thread Tools | |
| |
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 |