Planning our upgrade to 5.0

theRKF

Well-Known Member
#1
Currently running CentOS 6.6 with LiteSpeed 4.2.23 (installed by LiteSpeed staff) with cPanel and multiple versions of PHP.

We are eager to upgrade to 5.0, but I want to be sure our ducks are in a row.

Can someone please point me to the correct instructions for upgrading to 5.0?

Also, are there instructions available for rolling back to 4.x if we encounter problems with 5.0?

Many thanks!
 

theRKF

Well-Known Member
#5
First attempt, mixed results:

# /usr/local/lsws/admin/misc/lsup.sh -f -v 5.0
2015-04-27 21:24:16.300 [NOTICE] [AutoUpdate] Checking for new releases..., pid=854
/usr/bin/wget -nv -O /usr/local/lsws/autoupdate/lsws-5.0-ent-x86_64-linux.tar.gz http://www.litespeedtech.com/packages/5.0/lsws-5.0-ent-x86_64-linux.tar.gz
2015-04-27 21:24:32 URL:http://www.litespeedtech.com/packages/5.0/lsws-5.0-ent-x86_64-linux.tar.gz [8394577/8394577] -> "/usr/local/lsws/autoupdate/lsws-5.0-ent-x86_64-linux.tar.gz" [1]
/usr/local/lsws/admin/misc/update.sh 5.0 ent x86_64-linux
2015-04-27 21:24:33.318 [NOTICE] Memory size is: 32862936KB.
2015-04-27 21:24:33.376 [NOTICE] [OK] Updated license key has been created at /usr/local/lsws/autoupdate/lsws-5.0/license.key.
groupadd: group 'lsadm' already exists
useradd: user 'lsadm' already exists

Install LiteSpeed Web Server Plugin for WHM
==============================================

Remove old Work directory /usr/local/cpanel/whostmgr/docroot/cgi/lsws
mkdir: created directory `/usr/local/cpanel/whostmgr/docroot/cgi/lsws'

... moving files ...
... setting permission to files ...
-- LiteSpeed WHM hooks begin: REFRESH
EasyApache Hooks is enabled
LSWS is installed, refresh hook scripts
-- LiteSpeed WHM hooks end: REFRESH

LiteSpeed WHM Plugin Installed Successfully.
==============================================
/usr/local/lsws/admin/misc/lsup.sh: line 149: unexpected EOF while looking for matching `"'
/usr/local/lsws/admin/misc/lsup.sh: line 150: syntax error: unexpected end of file


# /usr/local/lsws/bin/lshttpd -v
LiteSpeed/5.0 Enterprise


Looks like the install didn't complete properly, but our hosted websites are still live and lsws is reporting 5.0 Enterprise running.

The web console is not working at all, just a blank page.

So, we're operational for the moment, but no ability to access the control console to configure anything.
 

JLHC

New Member
#8
The lsup will move me to 5.0, and the mgr_ver will allow me to roll back to 4.2.23 if needed???
Yes, that is correct.

By the way, I noticed that we need to run the upgrade command twice as it will throw up the error mentioned by @theRKF above when you run it for the first time.

@Pong @NiteWave You guys aware of this bug? We noticed it when we upgrade to 5.0 on a few test servers.
 

Pong

Administrator
Staff member
#9
The error message is a glitch due to lsup.sh script itself being upgraded, so LSWS was not restarted properly.
If you switch to 5.0 now, it should work fine.
 
Top