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

Go Back   LiteSpeed Support Forums > External Applications > PHP > Php lsapi 5.0

Reply
 
Thread Tools Display Modes
  #1  
Old 01-13-2010, 10:25 PM
anewday anewday is offline
Senior Member
 
Join Date: Nov 2007
Location: New York
Posts: 723
Default Php lsapi 5.0

Does 4.0.12 include the newest version? How do I upgrade my existing 4.0.11 to this?
Reply With Quote
  #2  
Old 01-16-2010, 11:00 PM
sux0r sux0r is offline
Senior Member
 
Join Date: Dec 2009
Posts: 56
I think the easiest way to upgrade is from the Litespeed Web Admin Control Panel.

From Actions --> Version Manager

After upgrade if you compile the php again it'll be with the newest released LSAPI i think (v5.0)
Reply With Quote
  #3  
Old 01-16-2010, 11:01 PM
anewday anewday is offline
Senior Member
 
Join Date: Nov 2007
Location: New York
Posts: 723
I can't upgrade because the license expired.
Reply With Quote
  #4  
Old 01-17-2010, 05:59 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
change buildconf.inc.php:

Quote:
define ('LSAPI_VERSION', '5.1');
to use the latest LSAPI code.
Reply With Quote
  #5  
Old 01-17-2010, 09:08 PM
anewday anewday is offline
Senior Member
 
Join Date: Nov 2007
Location: New York
Posts: 723
Where is the buildconf.inc.php file? I can only find buildconf and the above code is not there.
Reply With Quote
  #6  
Old 01-17-2010, 09:39 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,218
/path/to/lsws/admin/html/utility/build_php/buildconf.inc.php
Reply With Quote
  #7  
Old 01-17-2010, 10:16 PM
anewday anewday is offline
Senior Member
 
Join Date: Nov 2007
Location: New York
Posts: 723
Thanks.

Saw this in the log when trying to build php.

#######################
Stopped due to error. Please manually fix it.

Main Status:

**MAIN_STATUS** retrieved from /usr/local/lsws/phpbuild/buildphp_1263795187.8.progress
Preparing all source code for building PHP 4.4.9 with LSAPI
**ERROR** Could not delete old php directory /usr/local/lsws/phpbuild/php-4.4.9

Detailed Log:

**LOG_DETAIL** retrieved from /usr/local/lsws/phpbuild/buildphp_1263795187.8.log
================================================== ===========
Preparing all source code for building PHP 4.4.9 with LSAPI
================================================== ===========
Mon Jan 18 00:13:07 CST 2010

Changing to build directory /usr/local/lsws/phpbuild
rm: cannot remove `php-4.4.9/php.ini-dist': Permission denied
rm: cannot remove `php-4.4.9/include/php_sab_info.h': Permission denied
rm: cannot remove `php-4.4.9/autom4te.cache/output.0': Permission denied
rm: cannot remove `php-4.4.9/autom4te.cache/requests': Permission denied
rm: cannot remove `php-4.4.9/autom4te.cache/traces.0': Permission denied
rm: cannot remove `php-4.4.9/README.EXT_SKEL': Permission denied
rm: cannot remove `php-4.4.9/libtool': Permission denied
rm: cannot remove `php-4.4.9/footer': Permission denied
rm: cannot remove `php-4.4.9/generated_lists': Permission denied
rm: cannot remove `php-4.4.9/server-tests.php': Permission denied
rm: cannot remove `php-4.4.9/cvsclean': Permission denied
rm: cannot remove `php-4.4.9/ls_install_result.txt': Permission denied
rm: cannot remove `php-4.4.9/README.CVS-RULES': Permission denied
rm: cannot remove `php-4.4.9/acconfig.h': Permission denied
rm: cannot remove `php-4.4.9/stub.c': Permission denied

**ERROR** Could not delete old php directory /usr/local/lsws/phpbuild/php-4.4.9
#######################
Reply With Quote
  #8  
Old 01-17-2010, 10:37 PM
anewday anewday is offline
Senior Member
 
Join Date: Nov 2007
Location: New York
Posts: 723
I renamed the directory /usr/local/lsws/phpbuild/php-4.4.9 and ran the build again. Now, it is working.

George, maybe add a check for permissions to the buildphp script and change the directory if necessary?

# chown -R lsadm:lsadm /usr/local/lsws/phpbuild/php-4.4.9

I saw that on ssh after php was done compiling.

Last edited by anewday; 01-17-2010 at 11:03 PM..
Reply With Quote
  #9  
Old 01-17-2010, 11:03 PM
anewday anewday is offline
Senior Member
 
Join Date: Nov 2007
Location: New York
Posts: 723
In http://www.litespeedtech.com/latest/...-released.html

http://www.litespeedtech.com/products/lsapi/download

404 error

It should be http://www.litespeedtech.com/products/lsapi/download/

Reply With Quote
  #10  
Old 01-25-2010, 07:13 PM
anewday anewday is offline
Senior Member
 
Join Date: Nov 2007
Location: New York
Posts: 723
4.0.12 lsws/admin/html/utility/build_php/buildconf.inc.php is pointing to lsapi 4.1. Will you update it to 5.2 and the others to the newest versions?

define ('LSAPI_VERSION', '4.10');
define ('SUHOSIN_VERSION', '0.9.29');
define ('APC_VERSION', '3.1.3p1');
define ('XCACHE_VERSION', '1.3.0');
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 02:14 AM.



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