|
|

11-23-2011, 01:24 PM
|
|
LiteSpeed Staff
|
|
Join Date: Oct 2010
Posts: 2,337
|
|
|
this means xcache is enabled.
|

11-24-2011, 12:36 AM
|
|
Member
|
|
Join Date: Oct 2011
Posts: 27
|
|
hello webizen
i have little confuse
Quote:
[root@poseidon php]# /usr/local/lsws/fcgi-bin/lsphp5 -i | egrep -i 'apc|xcache|eaccelarator'
with XCache v1.3.2, Copyright (c) 2005-2011, by mOo
XCache
XCache Support => enabled
xcache.admin.enable_auth => On => On
xcache.cacher => On => On
xcache.coredump_directory => no value => no value
xcache.count => 1 => 1
xcache.gc_interval => 0 => 0
xcache.mmap_path => /dev/zero => /dev/zero
xcache.readonly_protection => 0 => 0
xcache.shm_scheme => mmap => mmap
xcache.size => 0 => 0
xcache.slots => 8K => 8K
xcache.stat => On => On
xcache.test => 0 => 0
xcache.ttl => 0 => 0
xcache.var_count => 1 => 1
xcache.var_gc_interval => 120 => 120
xcache.var_maxttl => 0 => 0
xcache.var_size => 0 => 0
xcache.var_slots => 8K => 8K
xcache.var_ttl => 0 => 0
|
xcached enable
but when i check
[root@poseidon lsws]# fcgi-bin/lsphp5 -v
PHP 5.2.17 (litespeed) (built: Nov 23 2011 17:33:56)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
[root@poseidon lsws]#
|

11-25-2011, 06:06 PM
|
|
LiteSpeed Staff
|
|
Join Date: Oct 2010
Posts: 2,337
|
|
I have to take it back.
you need to be in /usr/local/lsws/fcgi-bin/ to check lsphp5.
for below, it is likely you are in a different directory (.../php) that has a copy of php.ini with "extension=xcache.so" in it.
Quote:
[root@poseidon php]# /usr/local/lsws/fcgi-bin/lsphp5 -i | egrep -i 'apc|xcache|eaccelarator'
with XCache v1.3.2, Copyright (c) 2005-2011, by mOo
...
|
However, your fcgi-bin/lsphp5 uses a copy of php.ini with *NO* "extension=xcache.so" (xcache not enabled). that's why 'fcgi-bin/lsphp5 -v' shows no xcache. To find out which php.ini your lsphp5 uses, do following.
Quote:
|
/usr/local/lsws/fcgi-bin/lsphp5 -i| grep php.ini
|
So in your case, lsphp5 doesn't not have xcache enabled.
|

11-25-2011, 10:36 PM
|
|
Member
|
|
Join Date: Oct 2011
Posts: 27
|
|
yes i have copy it to /opt/
thanks webizen
my problem solved now 
|

11-27-2011, 03:16 AM
|
|
Member
|
|
Join Date: Oct 2011
Posts: 27
|
|
hello
i have install it
but i still confused
PHP Code:
HTTP/1.0 200 OK
X-Powered-By: PHP/5.2.17
Cache-Control: private
Pragma: private
Content-Type: text/html; charset=ISO-8859-1
X-UA-Compatible: IE=7
Content-Encoding: gzip
Content-Length: 19414 Date: Sun, 27 Nov 2011 10:15:05 GMT
Server: LiteSpeed
X-Cache: MISS from wire.clearos.lan
X-Cache-Lookup: MISS from wire.clearos.lan:3128
Via: 1.0 wire.clearos.lan:3128 (squid/2.6.STABLE21)
Connection: keep-alive
how to know xcache work ?
|

11-28-2011, 11:33 AM
|
|
Member
|
|
Join Date: Oct 2011
Posts: 27
|
|
wow work like charm 
thanks webizen
|

12-21-2011, 09:18 PM
|
|
Member
|
|
Join Date: Jan 2008
Posts: 48
|
|
I'm having problems. I used the build php with xcache and memcached check in the lsws admin page. I noted down the install directory for xcache.so
When I check php -v it says xcache is installed. But when I view a phpinfo on a web page no xcache is installed.
Quote:
zend_extension = "/usr/local/lsws/lsphp5/lib/php/extensions/no-debug-non-zts-20060613/xcache.so"
[xcache.admin]
xcache.admin.auth = off
xcache.admin.enable_auth = off
xcache.admin.user = "test"
xcache.admin.pass = "098f6bcd4621d373cade4e832627b4f6"
;xcache.admin.pass = "53f018f2ee1fc4fb7ad2be1cc7b9ed43"
[xcache]
xcache.shm_scheme = "mmap"
xcache.size = 256M
xcache.cacher="On"
xcache.coredump_directory=""
xcache.count="8"
;xcache.coveragedump_directory="/tmp/pcov/"
xcache.optimizer="Off"
xcache.readonly_protection="Off"
xcache.test="Off"
xcache.slots="8K"
xcache.readonly_protection = Off
xcache.ttl="3600"
xcache.gc_interval = 300
xcache.var_size = 4M
xcache.var_count = 8
xcache.var_slots = 1K
; default ttl
xcache.var_ttl = 3600
xcache.var_maxttl = 7200
xcache.var_gc_interval = 300
|
|

12-21-2011, 10:28 PM
|
|
LiteSpeed Staff
|
|
Join Date: Sep 2009
Posts: 2,216
|
|
Quote:
|
But when I view a phpinfo on a web page no xcache is installed.
|
does this file exist?
/usr/local/lsws/lsphp5/lib/php/extensions/no-debug-non-zts-20060613/xcache.so
|

12-22-2011, 01:08 PM
|
|
Member
|
|
Join Date: Oct 2011
Posts: 27
|
|
Quote:
Originally Posted by azn_romeo_4u
When I check php -v it says xcache is installed. But when I view a phpinfo on a web page no xcache is installed.
|
if you check from php -v i think it's wrong
try fcgi-bin/lsphp5 -v
if you check with php -v alsi it just chect your server
and not your litespeed CMIIW
example :
Quote:
[root@xxxx lsws]# fcgi-bin/lsphp5 -v
PHP 5.2.17 (litespeed) (built: Nov 23 2011 17:33:56)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
with XCache v1.3.2, Copyright (c) 2005-2011, by mOo
with the ionCube PHP Loader v4.0.11, Copyright (c) 2002-2011, by ionCube Ltd., and
with Zend Extension Manager v1.2.0, Copyright (c) 2003-2007, by Zend Technologies
with Zend Optimizer v3.2.8, Copyright (c) 1998-2007, by Zend Technologies
[root@xxxx lsws]#
|
Last edited by prandah; 12-22-2011 at 01:12 PM..
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 07:17 PM.
|
|