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

Go Back   LiteSpeed Support Forums > External Applications > PHP > eaccelerator installation with litespeed

Reply
 
Thread Tools Display Modes
  #1  
Old 05-04-2007, 10:16 AM
aww aww is offline
Senior Member
 
Join Date: May 2007
Posts: 237
Default eaccelerator installation with litespeed

I have been happily using eaccelerator with my cpanel install via this fantastic script here:
http://www.webhostingtalk.com/showthread.php?t=549666
( http://tutorials.medialayer.com/cPanel/eaccelerator.sh )

But of course this means I have no clue how to install it manually for litespeed

Could anyone give me a general idea how to do it
or even better, possibly hack that script so it will install for litespeed?

By the way, are there any worries about running two copies of php/eaccelerator running as I want to keep my apache setup going for awhile, maybe even as a proxy to litespeed.
Reply With Quote
  #2  
Old 05-04-2007, 10:28 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
If you are using our pre-built PHP binary or PHP 4.4.6, just run
lsws/admin/enable_phpa.sh

Then select eAccelerator, it will fetch our pre-built eAccelerator binary.

If you use PHP 5, you need to build your own, just follow our wiki and eAccelerator installation instructions.
Reply With Quote
  #3  
Old 05-04-2007, 10:47 AM
aww aww is offline
Senior Member
 
Join Date: May 2007
Posts: 237
Oh that was embarrassingly easy.

It even works with their stand alone control panel for eaccelerator.

Their panel says the Caching is enabled but not the code optimizer. Is it safe to enable that?

(update, it won't even let me enable the optimizer, always comes back as disabled)
Reply With Quote
  #4  
Old 05-04-2007, 11:05 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
You probably need to enable the optimizer from lsws/php/php.ini, then do "killall lsphp".
Reply With Quote
  #5  
Old 05-04-2007, 11:16 AM
aww aww is offline
Senior Member
 
Join Date: May 2007
Posts: 237
Very nice. That did the trick.
Do you think the control panel cannot see the files in the php cache because it's using /tmp/eacellerator? I am using a directory outside tmp for the apache eacel install.

update: the control panel does not show the files because the allowed path is not set in php.ini
eaccelerator.allowed_admin_path=""

You could almost integrate their new control panel into litespeed's - they look very similar, try it sometime:
http://eaccelerator.net/browser/eacc...php?format=raw

I must say I am rather impressed with LiteSpeed and it's ease of configuration (once I got some hints, thanks!)

Last edited by aww; 05-04-2007 at 08:45 PM..
Reply With Quote
  #6  
Old 05-04-2007, 11:22 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Quote:
Do you think the control panel cannot see the files in the php cache because it's using /tmp/eacellerator? I am using a directory outside tmp for the apache eacel install.
You can do that, just change the cache location in the php.ini .
Reply With Quote
  #7  
Old 05-04-2007, 07:51 PM
aww aww is offline
Senior Member
 
Join Date: May 2007
Posts: 237
I think there is something wrong with eaccelerator's behavior under litespeed?

When I run wordpress through apache+php+eaccelerator I can see dozens of scripts stored in eaccelerator.

When I run it now, I only see 4 scripts from other things I have run, not wordpress.

UPDATE:

I found the problem - wordpress+eaccelerator does not work right when PHP suEXEC is enabled (in fact I know PHP suEXEC causes several issues for several programs I used so I have disabled it)

Now there are over a hundred files in eaccelerator cache

I used to use the basedir file block in apache as a substitute for suexec. I wonder if it will work okay on litespeed?

Last edited by aww; 05-04-2007 at 09:13 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 03:52 AM.



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