Php lsapi 5.0

sux0r

Well-Known Member
#2
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)
 

anewday

Well-Known Member
#7
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
#######################
 

anewday

Well-Known Member
#8
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:

anewday

Well-Known Member
#10
4.0.12 lsws/admin/html/utility/build_php/buildconf.inc.php is pointing to lsapi 4.1. :eek: 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');
 

anewday

Well-Known Member
#19
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.
George, thought I'll remind you to add a check for the lsadm permissions in compile php. :)

chown -R lsadm:lsadm /path/to/phpbuild/php-..../
 
Top