#1  
Old 23rd December 2008, 06:15
Chad Chad is offline
Member
 
Join Date: Apr 2007
Posts: 75
Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation xcache issue

I'd like to use this mod but confused one the caching part.

If I select eaccelerator for the vB Optimise: Cache Method it tells me this:

However,

I'm using Cpanel / Centos / PHP 5. I do have memcache compiled in apache.

My vb config file shows this:

Code:
     // ****** DATASTORE CACHE CONFIGURATION *****
    // Here you can configure different methods for caching datastore items.
    // vB_Datastore_Filecache  - to use includes/datastore/datastore_cache.php
    // vB_Datastore_APC - to use APC
    // vB_Datastore_XCache - to use XCache
    // vB_Datastore_Memcached - to use a Memcache server, more configuration below
// $config['Datastore']['class'] = 'vB_Datastore_Filecache';

    // ******** DATASTORE PREFIX ******
    // If you are using a PHP Caching system (APC, XCache, eAccelerator) with more
    // than one set of forums installed on your host, you *may* need to use a prefix
    // so that they do not try to use the same variable within the cache.
    // This works in a similar manner to the database table prefix.
// $config['Datastore']['prefix'] = '';

    // It is also necessary to specify the hostname or IP address and the port the server is listening on
/*
$config['Datastore']['class'] = 'vB_Datastore_Memcached';
$i = 0;
// First Server
$i++;
$config['Misc']['memcacheserver'][$i]        = '127.0.0.1';
$config['Misc']['memcacheport'][$i]            = 11211;
$config['Misc']['memcachepersistent'][$i]    = true;
$config['Misc']['memcacheweight'][$i]        = 1;
$config['Misc']['memcachetimeout'][$i]        = 1;
$config['Misc']['memcacheretry_interval'][$i] = 15;
*/
Code:
root@server [~]# php -m
[PHP Modules]
bcmath
calendar
ctype
curl
date
dom
eAccelerator
exif
filter
ftp
gd
hash
iconv
imap
ionCube Loader
json
libxml
mbstring
mcrypt
mysql
mysqli
pcre
PDO
pdo_mysql
pdo_sqlite
posix
Reflection
session
SimpleXML
sockets
SPL
SQLite
standard
tokenizer
xml
xmlreader
xmlrpc
xmlwriter
xsl
Zend Optimizer
zip
zlib
I just followed this guideline

http://www.vbulletin.com/forum/showthread.php?t=273929

Did not work. First, I have this in /usr/local/lib/php.ini

Code:
[xcache-common]
zend_extension = /usr/local/lib/php/extensions/no-debug-non-zts-20060613/

[xcache.admin]
xcache.admin.auth = On
xcache.admin.user = "***"
xcache.admin.pass = "***"

[xcache]
xcache.shm_scheme               = "mmap"
xcache.size                     = 128M
xcache.count                    = 4
xcache.slots                    = 8K
xcache.ttl                      = 7200
xcache.gc_interval              = 300

xcache.var_size                 = 128M
xcache.var_count                = 1
xcache.var_slots                = 8K
xcache.var_ttl                  = 7200
xcache.var_maxttl               = 14400
xcache.var_gc_interval          = 300

xcache.test                     = Off
xcache.readonly_protection      = Off
xcache.mmap_path                = "/dev/zero"
xcache.coredump_directory       = ""

xcache.cacher                   = On
xcache.stat                     = On
xcache.optimizer                = On

[xcache.coverager]
xcache.coverager                = Off
xcache.coveragedump_directory   = ""

[eAccelerator]


[Zend]

zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3
zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3
zend_optimizer.version=3.3.3

extension=pdo.so
extension=pdo_sqlite.so
extension=sqlite.so
extension=pdo_mysql.so

zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so
allow_url_include = On
That caused httpd to fail.

The .so file is there

Code:
root@server [/usr/local/lib/php/extensions/no-debug-non-zts-20060613]# ls -lh
total 3.7M
drwxr-xr-x  2 root root 4.0K Dec 22 22:43 ./
drwxr-xr-x  5 root root 4.0K Sep 17  2007 ../
-rwxr-xr-x  1 root root 495K Dec 12 22:29 eaccelerator.so*
-rw-r--r--  1 root root 2.0K Feb 28  2008 error_log
-rwxr-xr-x  1 root root 142K Sep 17  2007 mailparse.so*
-rwxr-xr-x  1 root root 124K Dec 12 22:18 pdo_mysql.so*
-rwxr-xr-x  1 root root 265K Dec 12 22:18 pdo.so*
-rwxr-xr-x  1 root root 1.4M Dec 12 22:18 pdo_sqlite.so*
-rwxr-xr-x  1 root root 989K Dec 12 22:18 sqlite.so*
-rwxr-xr-x  1 root root 323K Dec 22 22:43 xcache.so*
I even moved the xcache portion before this portion in php.ini

; Directory in which the loadable extensions (modules) reside.
extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20060613"
zend_extension="/usr/local/IonCube/ioncube_loader_lin_5.2.so"
zend_extension_ts="/usr/local/IonCube/ioncube_loader_lin_5.2_ts.so"

When I restarted httpd, I got this:

root@server [~]# php -v
Segmentation fault (core dumped)
__________________
Talk Jesus Forums & Live Chat www.talkjesus.com
[ Awesome Facts of Jesus Christ: click here ]
Reply With Quote
Sponsored Links
  #2  
Old 24th December 2008, 16:42
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,713 Times in 2,556 Posts
Default

If you want to use memcached, you must install the PHP memcache module.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 27th December 2008, 03:04
Chad Chad is offline
Member
 
Join Date: Apr 2007
Posts: 75
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko View Post
If you want to use memcached, you must install the PHP memcache module.
Did you read the subject of this thread ?
__________________
Talk Jesus Forums & Live Chat www.talkjesus.com
[ Awesome Facts of Jesus Christ: click here ]
Reply With Quote
  #4  
Old 27th December 2008, 13:26
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,713 Times in 2,556 Posts
Default

It's not clear to me from your previous post what exactly your problem is. You're using memcached in your vBulletin configuration, so I'm not sure why you are talking about xcache...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 30th December 2008, 15:56
marpada marpada is offline
Senior Member
 
Join Date: Sep 2008
Posts: 139
Thanks: 2
Thanked 14 Times in 14 Posts
Default

Quote:
Originally Posted by Chad View Post
Did you read the subject of this thread ?
I don't think Jesus were so rude
________
Alaska dispensary
________
butt Cam

Last edited by marpada; 13th May 2011 at 02:00.
Reply With Quote
  #6  
Old 2nd January 2009, 04:55
Chad Chad is offline
Member
 
Join Date: Apr 2007
Posts: 75
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by marpada View Post
I don't think Jesus were so rude
Please spare the judgmental typical religious comments. You did not add anything to this thread and it does not concern you. So do something else with your time instead of sticking your nose here to make a childish religious remark. Jesus was not rude, neither was my simple question. You just misread it, or perhaps just eager to make stupid religious remarks. Seriously, find a new hobby instead.

falko, I'm not using memcache by default as you can see this line is not activated (by vb default)

// $config['Datastore']['class'] = 'vB_Datastore_Filecache';

The rest of the lines clearly have $ in front of them as well.

On a side note, found out that xache and zend accelerator are not compatible. Disabling zend is not an option for me, but on a side note
perhaps we can try memcache.

Thanks *falko*
__________________
Talk Jesus Forums & Live Chat www.talkjesus.com
[ Awesome Facts of Jesus Christ: click here ]

Last edited by Chad; 2nd January 2009 at 05:11.
Reply With Quote
  #7  
Old 3rd January 2009, 15:34
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,713 Times in 2,556 Posts
 
Default

Quote:
Originally Posted by Chad View Post
falko, I'm not using memcache by default as you can see this line is not activated (by vb default)
Oops, I've overlooked that the memcached part is commented out...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The dreaded OpenSuse/Postfix issue pinky Installation/Configuration 2 11th April 2008 22:35
charset issue. lifeisboost Installation/Configuration 8 20th February 2008 15:47
DNS MX Issue jmead Installation/Configuration 3 29th November 2007 10:06
SSL Issue - Unable to connect to any site Menzor Installation/Configuration 4 27th May 2007 04:03
iptables issue with xen perfect setup - debian alexnz HOWTO-Related Questions 3 25th November 2006 13:49


All times are GMT +2. The time now is 11:45.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.