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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Build Matching PHP Binary - Help required please.

Reply
 
Thread Tools Display Modes
  #1  
Old 03-26-2009, 10:52 AM
BBUK BBUK is offline
Member
 
Join Date: Feb 2009
Posts: 10
Default Build Matching PHP Binary - Help required please.

Hi all,

New to the forum & Litespeed.

I have very little knowledge with litespeed and servers so I'm hoping you lot can advise me, I managed to install and get it working so that's a good start.

I'd like to use the same PHP setup that we had with using Apache.

I've tried going to WHM panel > LiteSpeed Web Server Plugin for WHM > Build Matching PHP Binary.

------------------
Found Apache php binary at /usr/local/bin/php. Version is 5.2.8
Found LiteSpeed php binary at /opt/lsws/fcgi-bin/lsphp5. Version is 4.4.9

PHP binary has different version!
------------------

------------------

==============================================
Start building PHP 5.2.8 with LSAPI
==============================================
Wed Mar 25 02:24:09 GMT 2009

Changing to build directory /home/cpeasyapache/ls.src
Detected php build directory for cPanel /home/cpeasyapache/src/php-5.2.8
Same source code will be copied over

Query lastest LSAPI version: 4.9
php-litespeed-4.9.tgz already downloaded, use the saved copy
Extracting LSAPI archive: tar -xzf php-litespeed-4.9.tgz
tar: gzip: Cannot exec: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
**ERROR** Could not extract LSAPI archive

-----


Please help


Thanks, Tom
Reply With Quote
  #2  
Old 03-26-2009, 03:30 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Quote:
tar: gzip: Cannot exec: No such file or directory
gzip is not available on this server?
Reply With Quote
  #3  
Old 03-26-2009, 04:31 PM
BBUK BBUK is offline
Member
 
Join Date: Feb 2009
Posts: 10
Hi,

Thanks for reply, I'm not too sure if server has Gzip or not? it's an unmanaged VPS, I can ask the providers support and find out.
Reply With Quote
  #4  
Old 03-26-2009, 06:37 PM
BBUK BBUK is offline
Member
 
Join Date: Feb 2009
Posts: 10
Hi, they say Gzip would be a standard part of our CentOS installation.
Reply With Quote
  #5  
Old 03-27-2009, 09:49 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Maybe your VPS is out of memory when try to build it. So, you may need to stop Apache or other memory hungry processes before start building it.
Reply With Quote
  #6  
Old 03-28-2009, 06:14 AM
BBUK BBUK is offline
Member
 
Join Date: Feb 2009
Posts: 10
Hi, thanks for the reply.

I've tried doing the rebuild php while Litespeed is switched on, and also have tried switching back to Apache but still gives the same message.

There's a few hundred MB memory spare while trying.. is this enough?
Reply With Quote
  #7  
Old 03-28-2009, 06:41 AM
IrPr IrPr is offline
Senior Member
 
Join Date: Jul 2008
Posts: 147
Quote:
Originally Posted by BBUK View Post
Hi, they say Gzip would be a standard part of our CentOS installation.
try gzip -V, if command not found returned try yum -y install gzip
Reply With Quote
  #8  
Old 03-28-2009, 07:10 AM
BBUK BBUK is offline
Member
 
Join Date: Feb 2009
Posts: 10
Quote:
Originally Posted by IrPr View Post
try gzip -V, if command not found returned try yum -y install gzip
root@vps-167 [~]# gzip -V
-bash: gzip: command not found
root@vps-167 [~]# yum -y install gzip
Loading "fastestmirror" plugin
Loading mirror speeds from cached hostfile
* base: mirror.bytemark.co.uk
* updates: mirror.bytemark.co.uk
* addons: mirror.bytemark.co.uk
* extras: mirror.bytemark.co.uk
base 100% |=========================| 1.1 kB 00:00
updates 100% |=========================| 951 B 00:00
addons 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
Excluding Packages in global exclude list
Finished
Setting up Install Process
Parsing package install arguments
Package gzip - 1.3.5-10.el5.centos.i386 is already installed.
Nothing to do
Reply With Quote
  #9  
Old 03-28-2009, 07:20 AM
IrPr IrPr is offline
Senior Member
 
Join Date: Jul 2008
Posts: 147
Quote:
Originally Posted by BBUK View Post
root@vps-167 [~]# gzip -V
-bash: gzip: command not found
root@vps-167 [~]# yum -y install gzip
Loading "fastestmirror" plugin
Loading mirror speeds from cached hostfile
* base: mirror.bytemark.co.uk
* updates: mirror.bytemark.co.uk
* addons: mirror.bytemark.co.uk
* extras: mirror.bytemark.co.uk
base 100% |=========================| 1.1 kB 00:00
updates 100% |=========================| 951 B 00:00
addons 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
Excluding Packages in global exclude list
Finished
Setting up Install Process
Parsing package install arguments
Package gzip - 1.3.5-10.el5.centos.i386 is already installed.
Nothing to do
WTF? no gzip on your VPS?

to find your current path and gzip binary location try:
Code:
echo $PATH

whereis gzip

locate gzip
then post result here

you may force re-install gzip RPM:
Code:
rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/gzip-1.3.5-10.el5.centos.i386.rpm

Last edited by IrPr; 03-28-2009 at 07:31 AM..
Reply With Quote
  #10  
Old 03-28-2009, 07:50 AM
BBUK BBUK is offline
Member
 
Join Date: Feb 2009
Posts: 10
Quote:
Originally Posted by IrPr View Post
WTF? no gzip on your VPS?

to find your current path and gzip binary location try:
Code:
echo $PATH

whereis gzip

locate gzip
then post result here

you may force re-install gzip RPM:
Code:
rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/gzip-1.3.5-10.el5.centos.i386.rpm
root@vps-167 [~]# echo $PATH whereis gzip
/usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/courier-imap/sbin:/usr/lib/courier-imap/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin whereis gzip

root@vps-167 [~]# echo $PATH locate gzip
/usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/courier-imap/sbin:/usr/lib/courier-imap/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin locate gzip


should I force install?

thanks for the help.
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:55 PM.



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