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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Can't get xcache to install

Reply
 
Thread Tools Display Modes
  #1  
Old 08-26-2009, 05:18 PM
TechGuy TechGuy is offline
New Member
 
Join Date: Aug 2009
Location: Waynesboro, PA
Posts: 6
Default Can't get xcache to install

Everything seems to compile correctly, and I added the xcache.ini to the php.ini file. Unfortately, I still get a strange error:

[root@localhost log]# php -v
Failed loading /usr/local/lsws/lsphp5/lib/php/extensions/no-debug-non-zts-20090626/xcache.so: /usr/local/lsws/lsphp5/lib/php/extensions/no-debug-non-zts-20090626/xcache.so: undefined symbol: zend_do_delayed_early_binding
PHP 5.1.6 (cli) (built: Apr 7 2009 08:00:18)

Curiously, it also says PHP 5.1.6 when I've selected 5.3.0 in during the build. Any ideas?
Reply With Quote
  #2  
Old 08-26-2009, 05:27 PM
TechGuy TechGuy is offline
New Member
 
Join Date: Aug 2009
Location: Waynesboro, PA
Posts: 6
For what it's worth, phpinfo() does show PHP 5.3.0, but no mention of xcache.
Reply With Quote
  #3  
Old 08-26-2009, 07:02 PM
robfrew robfrew is offline
Senior Member
 
Join Date: Dec 2007
Location: Salt Lake City UT
Posts: 151
It looks like you have multiple php executable files, thus the different version numbers. You also need to recompile xcache for the version of PHP you plan on keeping.
Reply With Quote
  #4  
Old 08-26-2009, 08:02 PM
TechGuy TechGuy is offline
New Member
 
Join Date: Aug 2009
Location: Waynesboro, PA
Posts: 6
I think you're quite right. I used the Admin console to recompile PHP, so I assumed it would take care of the old version. How do I get rid of the old one without hurting the new?

In other news, I looked at phpinfo() closer and discovered that it was looking for php.ini at /usr/local/lsws/lsphp5/lib -- no such file existed, but when I copied it there, xcache started working.
Reply With Quote
  #5  
Old 08-27-2009, 08:42 AM
TechGuy TechGuy is offline
New Member
 
Join Date: Aug 2009
Location: Waynesboro, PA
Posts: 6
Well, I've spent two days trying to get LiteSpeed working. I finally got MySQL running, but get only 503s if memcache or xcache are loaded. Even with neither of them, all redirects result in a 503. I'm giving up and switching back to Apache. It's just not worth it to pay $92/month for each server for the pleasure of having so many headaches.
Reply With Quote
  #6  
Old 08-27-2009, 10:30 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Are you using a control panel? For cPanel, our WHM plugin will take care of everything.
The key for a smooth migration is to use the same PHP version for Apache and LSWS, so extensions built for Apache PHP will work without problem with LSWS PHP. Only when Apache is using the thread-safe version, you have to rebuilt all extensions as LSWS PHP does not build in thread-safe mode.
Reply With Quote
  #7  
Old 08-29-2009, 08:34 AM
robfrew robfrew is offline
Senior Member
 
Join Date: Dec 2007
Location: Salt Lake City UT
Posts: 151
That's unfortunate. Most of the issues you are having are PHP issues and truly have nothing to do with LSWS. LSWS acts as a front end to PHP and if you do not configure PHP correctly, or use modules that are compiled incorrectly, or use cache optimizers like XCache and do not install them correctly, you will get 503 errors through LSWS. Basically, LSWS is passing on the error information from PHP in the form of 503 errors.

To fix them, you need to isolate what is wrong with your PHP installation.
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 01:52 AM.



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