|
|

05-23-2009, 08:19 AM
|
|
Member
|
|
Join Date: May 2009
Posts: 13
|
|
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.
|

05-23-2009, 08:50 AM
|
|
Member
|
|
Join Date: May 2009
Posts: 13
|
|
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..
|

05-23-2009, 10:32 AM
|
|
Senior Member
|
|
Join Date: Mar 2009
Posts: 119
|
|
Quote:
Originally Posted by priceline
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..
|

05-23-2009, 11:14 AM
|
|
Member
|
|
Join Date: May 2009
Posts: 13
|
|
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?
|

05-23-2009, 11:30 AM
|
|
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.
|

05-23-2009, 11:34 AM
|
|
Member
|
|
Join Date: May 2009
Posts: 13
|
|
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
|

05-23-2009, 11:36 AM
|
|
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
|

05-23-2009, 11:47 AM
|
|
Senior Member
|
|
Join Date: Mar 2009
Posts: 119
|
|
Quote:
Originally Posted by priceline
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
|

05-23-2009, 11:59 AM
|
|
Member
|
|
Join Date: May 2009
Posts: 13
|
|
Quote:
Originally Posted by auser
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..
|

05-23-2009, 03:22 PM
|
|
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.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 05:48 AM.
|
|