nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Help with xcache or eaccelerator.

This is a discussion on Help with xcache or eaccelerator. within the Web servers forums, part of the Mastering Servers category; Hello, I have installed xcache as well as eaccelerator but my vbseo doesnt show support for any of them. Please ...

Register free or login to your existing account and remove all advertisements.


Go Back   nixCraft Linux Forum > Mastering Servers > Web servers

Linux answers from nixCraft.


Web servers Discussion on Apache, Nginx and Lighttpd HTTP/web server and configuration issues.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-22-2009, 10:58 PM
Junior Member
User
 
Join Date: May 2009
OS: Cent OS
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
peeyooshk is on a distinguished road
Default Help with xcache or eaccelerator.

Hello,
I have installed xcache as well as eaccelerator but my vbseo doesnt show support for any of them. Please guide.

phpinfo: phpinfo()

Please help.

Thanks & Regards
Peeyoosh Kumar
Reply With Quote
  #2 (permalink)  
Old 06-23-2009, 05:22 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Posts: 2,635
Thanks: 11
Thanked 232 Times in 172 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

First, you need to only use one of them and not both. Use xcache. Did you created xcache.ini file? Can you tell us more about your Linux distro?
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #3 (permalink)  
Old 06-23-2009, 02:10 PM
Junior Member
User
 
Join Date: May 2009
OS: Cent OS
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
peeyooshk is on a distinguished road
Default

Yes, i have a xcache.ini in place according to this post: Redhat / CentOS / Fedora Linux Install XCache for PHP 5

I am using Cent Os 5.3 32 bit.

Thanks
Reply With Quote
  #4 (permalink)  
Old 06-23-2009, 07:57 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Posts: 2,635
Thanks: 11
Thanked 232 Times in 172 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Did you restarted web server after installing xcache? What is output of the following?
Code:
php -v
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #5 (permalink)  
Old 06-23-2009, 08:07 PM
Junior Member
User
 
Join Date: May 2009
OS: Cent OS
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
peeyooshk is on a distinguished road
Default

Yes i did restart apache. The output comes as : -


PHP 5.2.9 (cli) (built: Jun 18 2009 21:41:54)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
Reply With Quote
  #6 (permalink)  
Old 06-23-2009, 08:33 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Posts: 2,635
Thanks: 11
Thanked 232 Times in 172 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Look like zend extension is not loading. Can you paste your xcache.ini? On 32 bit path for zend_extension is different. The default config file set path to 64bit system. You must set to 32bit in xcache.ini file:
Code:
zend_extension = /usr/lib/php/modules/xcache.so
Restart apache once done and run php -v again.
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #7 (permalink)  
Old 06-23-2009, 08:54 PM
Junior Member
User
 
Join Date: May 2009
OS: Cent OS
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
peeyooshk is on a distinguished road
Default

Please find the xcache.ini below:
[xcache-common]
; change me - 64 bit php => /usr/lib64/php/modules/xcache.so
; 32 bit php => /usr/lib/php/modules/xcache.so
zend_extension = /usr/lib/php/modules/xcache.so

[xcache.admin]
xcache.admin.auth = On
xcache.admin.user = "mOo"
; xcache.admin.pass = md5($your_password)
xcache.admin.pass = ""

[xcache]
xcache.shm_scheme = "mmap"
xcache.size = 32M
xcache.count = 1
xcache.slots = 8K
xcache.ttl = 3600
xcache.gc_interval = 300

; Same as aboves but for variable cache
; If you don't know for sure that you need this, you probably don't
xcache.var_size = 0M
xcache.var_count = 1
xcache.var_slots = 8K
xcache.var_ttl = 0
xcache.var_maxttl = 0
xcache.var_gc_interval = 300

; N/A for /dev/zero
xcache.readonly_protection = Off

xcache.mmap_path = "/dev/zero"

xcache.cacher = On
xcache.stat = On

I guess i have not edited the username and password field hence it is the giving problems. Shall i use root account details there?

Please guide.

Thanks
Reply With Quote
  #8 (permalink)  
Old 06-24-2009, 05:33 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Posts: 2,635
Thanks: 11
Thanked 232 Times in 172 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

No password or username needed. I'm now out of ideas.
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #9 (permalink)  
Old 06-24-2009, 05:43 PM
Junior Member
User
 
Join Date: May 2009
OS: Cent OS
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
peeyooshk is on a distinguished road
Default

Is there anything needed to be done in php.ini??? i took the admin folder from xcache folder and put it under my webfolder. when accessed from browser it gives:
XCache is not loaded

Please check /etc/php.ini

Does this help in getting some ideas?


Also under directory /usr/lib/php/modules/ i do not find any xcache.so file??
Thanks

Last edited by peeyooshk; 06-24-2009 at 05:52 PM.
Reply With Quote
  #10 (permalink)  
Old 06-24-2009, 05:58 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Posts: 2,635
Thanks: 11
Thanked 232 Times in 172 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Quote:
Originally Posted by peeyooshk View Post
Also under directory /usr/lib/php/modules/ i do not find any xcache.so file??
Thanks
It means it is not installed or location is different. Run following to find exact location:
Code:
find / -iname "xcache.so"
If you do not see file try to reinstall it again and pay attention to screen, it does put files in one of those lib dir.
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
Reply

Tags
apache xcache , lighttpd xcache , linux xcache , nginx xcache , vbseo , vbseo xcache


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
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
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT +5.5. The time now is 10:49 AM.


Powered by vBulletin® Version 3.8.4 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2009 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38