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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Upgrading PHP LSAPI

Reply
 
Thread Tools Display Modes
  #1  
Old 04-18-2008, 08:10 PM
kuts kuts is offline
Member
 
Join Date: Oct 2007
Posts: 49
Default Upgrading PHP LSAPI

So there's a new version of PHP LSAPI and LiteSpeed 3.3.10

I already upgraded to 3.3.10. Will recompiling PHP via LS admin panel upgrade to the latest version of PHP LSAPI?
Reply With Quote
  #2  
Old 04-18-2008, 08:29 PM
anewday anewday is offline
Senior Member
 
Join Date: Nov 2007
Location: New York
Posts: 723
Yeah it should.
Reply With Quote
  #3  
Old 04-18-2008, 08:33 PM
kuts kuts is offline
Member
 
Join Date: Oct 2007
Posts: 49
how do you determine the PHP LSAPI version you're currently using anyway?
Reply With Quote
  #4  
Old 04-18-2008, 08:44 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Not possible now, will add a version number in the phpinfo page.
Anyway, the web console will always use the latest version.
Reply With Quote
  #5  
Old 04-18-2008, 08:47 PM
kuts kuts is offline
Member
 
Join Date: Oct 2007
Posts: 49
@mistwang

just to confirm, recompiling the php will update the lsapi to the latest version?
Reply With Quote
  #6  
Old 04-18-2008, 09:44 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Yes, that's correct.
Reply With Quote
  #7  
Old 04-24-2008, 10:25 PM
brrr brrr is offline
Senior Member
 
Join Date: Aug 2007
Posts: 94
Cool.

Can I suggest that this info (ie 'recompiling PHP will update the LSAPI to the latest version') was in the FAQ or in the LSWS/LSAPI readme.

I was puzzling over this myself.
Reply With Quote
  #8  
Old 04-25-2008, 01:27 AM
brrr brrr is offline
Senior Member
 
Join Date: Aug 2007
Posts: 94
I just tried compiling PHP 4.4.8 on LSWS Std 3.3.10, running on CentOS 4.6 on a OpenVZ VPS.

It failed at step 1 and I got the following error message:

Quote:
ERROR: Unable to detect download method (install curl, fetch, or wget)
Both wget and curl are however available on the server and LSWS has never had any problems downloading updates etc before.

I tried the PHP 4.4.8 upgrade using the standard configure switches and I also ticked the Suhosin box and the eAccelerator box.

Suggestions?
Reply With Quote
  #9  
Old 04-25-2008, 04:15 AM
brrr brrr is offline
Senior Member
 
Join Date: Aug 2007
Posts: 94
OK, I reset the permissions on wget and gcc to 0755 as suggested elsewhere in the forum.

Now wget works and the php sources etc successfully download.

Now however buildconf gets some sort of permission errors on /dev/null or something and the upgrade aborts.

Here is the last part of the relevant install log:
Quote:
04:04:31 (6.37 MB/s) - `php-4.4.8.tar.gz' saved [5629900/5629900]

--04:04:31-- http://www.litespeedtech.com/package...espeed-4.7.tgz
=> `php-litespeed-4.7.tgz'
Resolving www.litespeedtech.com... 209.151.227.121
Connecting to www.litespeedtech.com|209.151.227.121|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 24,953 (24K) [application/x-gtar]

0K .......... .......... .... 100% 256.40 KB/s

04:04:31 (256.40 KB/s) - `php-litespeed-4.7.tgz' saved [24953/24953]

Forcing buildconf
./buildconf: line 37: /dev/null: Permission denied
using default Zend directory
buildconf: checking installation...
build/buildcheck.sh: line 32: /dev/null: Permission denied
buildconf: autoconf not found.
You need autoconf version 2.13 or newer installed
to build PHP from CVS.
make: *** [buildmk.stamp] Error 1
Buildconf however already has permissions set as 0755.

Any suggestions?
Reply With Quote
  #10  
Old 04-25-2008, 10:49 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
/dev/null has permission problem not buildconf script.
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 08:27 AM.



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