Updates Losing Configuration

Discussion in 'OpenLiteSpeed Suggestions and Requests' started by TexasGreg, Jul 28, 2018.

  1. TexasGreg

    TexasGreg New Member

    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?
     
  2. lsqtwrk

    lsqtwrk New Member

    Hi,

    How do you update it ? like apt it or compile it ?
     
  3. TexasGreg

    TexasGreg New Member

    Webmin does APT.
     
  4. Pong

    Pong Administrator

    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.
    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.
     
  5. lskagan

    lskagan Administrator

    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.
     

Share This Page