1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Issue Updater is resetting the SW-CP port

Discussion in 'Plesk Onyx for Linux' started by zepho, Nov 8, 2017.

  1. zepho

    zepho New Pleskian

    4
    70%
    Joined:
    Jul 25, 2016
    Messages:
    7
    Likes Received:
    0
    Cheers,
    I change the default Plesk port usually due to multiple reasons.

    For IPv6 I changed the file /etc/sw-cp-server/conf.d/ipv6_ports.inc

    But this file will be restored (possibly by the update manager) every night.
    /etc/sw-cp-server/conf.d/plesk.conf stays untouched and keeps my port modifications.

    In the end: After the update the `sw-cp-server` fails to restart and I have to fix it every day for weeks now! Being more particular: It fails because I set up a port redirection from 8443 to my custom port for localhost calls, to fetch some bad implemented plugin, which are not able to check for the Plesk port before updating themself (MagicSpam for e.g.).

    Are you aware of this? In my eyes its clearly a bug. What do you think?
     
  2. zepho

    zepho New Pleskian

    4
    70%
    Joined:
    Jul 25, 2016
    Messages:
    7
    Likes Received:
    0
    so I need to setup a sed-cronjob to get things right? fine....
     
  3. Peter Debik

    Peter Debik Golden Pleskian Plesk Guru

    37
    80%
    Joined:
    Oct 15, 2015
    Messages:
    1,986
    Likes Received:
    404
    Location:
    Berlin, Germany
    Instead of a cron job you can maybe create an event "after update" to run a script that applies custom changes to the files after each update.
     
  4. zepho

    zepho New Pleskian

    4
    70%
    Joined:
    Jul 25, 2016
    Messages:
    7
    Likes Received:
    0
    Thats even better! Thx
     
Loading...