Updates Losing Configuration

#1
I have Debian Linux 9 and the last 2 times I updated Open Litespeed with Webmin, I lost my configuration and admin login. Should I be doing something different?
 

Pong

Administrator
#4
What do you mean "Webmin does APT"? I don't think there is any option within OLS Web Admin Console to upgrade your OLS installation.

You should simply run the following from the command line. It should just upgrade your server and won't override your configuration.
sudo apt-get install openlitespeed
If you means Webmin (http://www.webmin.com/, you should check with Webmin since it is not developed by LiteSpeed. You can also try CyberPanel for OLS if you like.
 

lskagan

Administrator
#5
Hi @TexasGreg,

I am unsure how Webmin does upgrades for packages installed by APT but when you run `sudo apt-get upgrade openlitespeed` it will prompt you if you want to overwrite your `httpd_config.xml` and `.htpasswd` file.

Like the following:
Code:
root@deb9-rpm:~# apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  openlitespeed
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/5,432 kB of archives.
After this operation, 676 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Reading changelogs... Done
(Reading database ... 31723 files and directories currently installed.)
Preparing to unpack .../openlitespeed_1.4.35-1+stretch_amd64.deb ...
Unpacking openlitespeed (1.4.35-1+stretch) over (1.4.34-1+stretch) ...
Setting up openlitespeed (1.4.35-1+stretch) ...

Configuration file '/usr/local/lsws/conf/httpd_config.conf'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** httpd_config.conf (Y/I/N/O/D/Z) [default=N] ? N

Configuration file '/usr/local/lsws/admin/conf/htpasswd'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** htpasswd (Y/I/N/O/D/Z) [default=N] ? N
May want to see if there is an option to have it select N or contact Webmin to see if there is a way.
 

simba

New Member
#6
The default is N so it should not be overwriting the configuration but it does anyway. This happens whether you perform the upgrade from webmin or apt-get on the commandline.

Also the symlink 'fcgi-bin/lsphp' is replaced with a link to lsphp5, regardless of whether you created a new link to lsphp72.

This makes it impossible to maintain OLS in any sort of sizeable quantity.

I also posted a thread about this problem, as I didn't notice this thread.
 

simba

New Member
#7
While it's true that this can be blamed partially on Webmin, as it seems to disregard the default settings of apt, the issue of the fcgi-bin/lsphp symlink being overwritten remains.
 

Pong

Administrator
#9
Thank you for your feedback. We have been working on a new package to make sure it is all accounted that the files won't be overwritten no matter what. Thank you again.
 
Top