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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > PHP5, eAccelerator configuration question.

Reply
 
Thread Tools Display Modes
  #1  
Old 05-23-2009, 08:19 AM
priceline priceline is offline
Member
 
Join Date: May 2009
Posts: 13
Default PHP5, eAccelerator configuration question.

I am currently using PHP5, apache latest version.

Just installed litespeed standard edition, which is using PHP4.

Can you provide details on how I can configure?
1. Use PHP5 instead of PHP4
2. Configure my sites to use Litespeeed (disable apache)
3. Configure eAccelerator

I gone through some documentation, but all these are to download the latest php and configure. I already have one installed, so looking for instructions to use php5. Same as with eAccelerator (it is already configured for apache).

I want to see the performance differences before completely switching to litespeed. I took the performance measurements via apache's ab tool, so I will compare it to litespeed.

Thanks,

Edit: I installed WHM plugin also if it makes any difference.
Reply With Quote
  #2  
Old 05-23-2009, 08:50 AM
priceline priceline is offline
Member
 
Join Date: May 2009
Posts: 13
Default I compile PHP5, but still shows PHP4 in php.ini

I went through Actions-->Compile PHP-->Build PHP5-->Checked eAccelerator-->Build PHP5

but when i go to phpinfo.php, it still shows as php4.4.9

Edit: okay after i restarted the server, it picked up latest version.
edit2: I switched to litespeed on WHM, but the page is not displaying.. any additional settings needed?
I followed the instructions at:
http://bobcares.com/index.php/blog/?p=114 (section 3)

Last edited by priceline; 05-23-2009 at 09:10 AM..
Reply With Quote
  #3  
Old 05-23-2009, 10:32 AM
auser auser is offline
Senior Member
 
Join Date: Mar 2009
Posts: 119
Quote:
Originally Posted by priceline View Post
I went through Actions-->Compile PHP-->Build PHP5-->Checked eAccelerator-->Build PHP5

but when i go to phpinfo.php, it still shows as php4.4.9
check your "Script Handler" setting:
http://www.litespeedtech.com/docs/we...scripthandler/

to configure lsphp5 to handle .php/.php5, lsphp4 to handle .php4 etc.

Last edited by auser; 05-23-2009 at 10:35 AM..
Reply With Quote
  #4  
Old 05-23-2009, 11:14 AM
priceline priceline is offline
Member
 
Join Date: May 2009
Posts: 13
Default It doesnt give what to do

I think it is something to do with listener.. how do i specify litespeed to listen to port 80?
Reply With Quote
  #5  
Old 05-23-2009, 11:30 AM
auser auser is offline
Senior Member
 
Join Date: Mar 2009
Posts: 119
what's your settings on Server-->External App now?

Since you're in WHM/cPanel environment, the listener setting could be empty.
Reply With Quote
  #6  
Old 05-23-2009, 11:34 AM
priceline priceline is offline
Member
 
Join Date: May 2009
Posts: 13
Default I have these two

LSAPI App lsphp4 uds://tmp/lshttpd/lsphp4.sock View Edit Delete
LSAPI App lsphp5 uds://tmp/lshttpd/lsphp5.sock View Edit Delete
Reply With Quote
  #7  
Old 05-23-2009, 11:36 AM
priceline priceline is offline
Member
 
Join Date: May 2009
Posts: 13
When i click on Build matching PHP, I have this message:
Apache php configuration has more options that are not available or different in lsphp:
--disable-pdo --enable-bcmath --enable-calendar --enable-ftp --enable-gd-native-ttf --enable-libxml --enable-zip --prefix=/usr/local --with-curl=/opt/curlssl/ --with-freetype-dir=/usr --with-gettext --with-imap=/opt/php_with_imap_client/ --with-imap-ssl=/usr --with-jpeg-dir=/usr --with-kerberos --with-libxml-dir=/opt/xml2/ --with-mcrypt=/opt/libmcrypt/ --with-mysql=/usr --with-mysql-sock=/var/lib/mysql/mysql.sock --with-mysqli=/usr/bin/mysql_config --with-openssl=/usr --with-openssl-dir=/usr --with-png-dir=/usr --with-ttf --with-xpm-dir=/usr --with-zlib-dir=/usr
Reply With Quote
  #8  
Old 05-23-2009, 11:47 AM
auser auser is offline
Senior Member
 
Join Date: Mar 2009
Posts: 119
Quote:
Originally Posted by priceline View Post
LSAPI App lsphp4 uds://tmp/lshttpd/lsphp4.sock View Edit Delete
LSAPI App lsphp5 uds://tmp/lshttpd/lsphp5.sock View Edit Delete
the setting is ok. so go ahead to set "Script Handler" as mentioned before, will resolve one of the problems:"when go to phpinfo.php, it still shows as php4.4.9", it will show php 5.x.x
Reply With Quote
  #9  
Old 05-23-2009, 11:59 AM
priceline priceline is offline
Member
 
Join Date: May 2009
Posts: 13
Quote:
Originally Posted by auser View Post
the setting is ok. so go ahead to set "Script Handler" as mentioned before, will resolve one of the problems:"when go to phpinfo.php, it still shows as php4.4.9", it will show php 5.x.x
It is showing php5.x.x after i restarted the server., but the following configuration settings are suspicious:

Server API LiteSpeed
Virtual Directory Support disabled
Configuration File (php.ini) Path /usr/local/lsws/lsphp5/lib
Loaded Configuration File (none)
Scan this dir for additional .ini files (none)
additional .ini files parsed (none)

These are the settings for script handler:
php5 LiteSpeed API [Server Level]: lsphp5 Edit Delete
php4 LiteSpeed API [Server Level]: lsphp4 Edit Delete
php LiteSpeed API [Server Level]: lsphp5 Edit Delete

Or can you help in Yahoo/hotmail IM?

Last edited by priceline; 05-23-2009 at 12:02 PM..
Reply With Quote
  #10  
Old 05-23-2009, 03:22 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
You can copy your current php.ini to /usr/local/lsws/lsphp5/lib.
Or, you can rebuild PHP5 by setting "Install Path Prefix" to "/usr/local", assuming apache php uses php.ini under /usr/local/lib/ directory.
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 05:48 AM.



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