LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > PHP > Trying to use APC but it seems to be clearing out?

Reply
 
Thread Tools Display Modes
  #41  
Old 11-23-2011, 01:24 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
this means xcache is enabled.
Reply With Quote
  #42  
Old 11-24-2011, 12:36 AM
prandah prandah is offline
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]#
Reply With Quote
  #43  
Old 11-25-2011, 06:06 PM
webizen webizen is offline
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.
Reply With Quote
  #44  
Old 11-25-2011, 10:36 PM
prandah prandah is offline
Member
 
Join Date: Oct 2011
Posts: 27
yes i have copy it to /opt/
thanks webizen
my problem solved now
Reply With Quote
  #45  
Old 11-27-2011, 03:16 AM
prandah prandah is offline
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-ByPHP/5.2.17

Cache
-Control: private

Pragma: private

Content-Typetext/htmlcharset=ISO-8859-1

X
-UA-CompatibleIE=7

Content
-Encodinggzip

Content
-Length19414
Date
Sun27 Nov 2011 10:15:05 GMT

Server
LiteSpeed

X
-CacheMISS from wire.clearos.lan

X
-Cache-LookupMISS from wire.clearos.lan:3128

Via
1.0 wire.clearos.lan:3128 (squid/2.6.STABLE21)

Connectionkeep-alive 
how to know xcache work ?
Reply With Quote
  #46  
Old 11-28-2011, 11:20 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
you may install an xcache admin page to look at details.

http://xcache.lighttpd.net/wiki/InstallAdministration
Reply With Quote
  #47  
Old 11-28-2011, 11:33 AM
prandah prandah is offline
Member
 
Join Date: Oct 2011
Posts: 27
wow work like charm
thanks webizen
Reply With Quote
  #48  
Old 12-21-2011, 09:18 PM
azn_romeo_4u azn_romeo_4u is offline
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
Reply With Quote
  #49  
Old 12-21-2011, 10:28 PM
NiteWave NiteWave is offline
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
Reply With Quote
  #50  
Old 12-22-2011, 01:08 PM
prandah prandah is offline
Member
 
Join Date: Oct 2011
Posts: 27
Quote:
Originally Posted by azn_romeo_4u View Post
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..
Reply With Quote
Reply

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


All times are GMT -7. The time now is 07:17 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.