Typo in command changed ownership of files in /var. Can I-mscp fix this?

  • Hello guys,

    unfortunately in between a server migration a typo in a command changed the ownership of all files in /var to root:root, so of course we got some problems now and the main problem is, that i-mscp stopped working completely. Is i-mscp able to fix file permissions with this packages (e.g. mysql/mariadb apache etc.), or do I need to reinstall the whole server because of this?

    It's really a bad thing, because we nearly finished the migration and then an unfortunately typo crashed nearly everything connected with /var. Any ideas how I could fix that?

    OS: Debian 9.8 Stretch

    I-MSCP Version: 1.5.3 (2018120800)

    Kind regards,


  • Hello

    You can rerun the installer or do something like this:

    cd /var/www/imscp/engine/setup/

    perl imscp-reconfigure –fix-permissions

    Support Infos: I-MSCP Version: 1.5.x / Distro: Debian Stretch / PHP: 7.1.27 - FPM / I-MSCP Plugins: Let´s Encrypt + PHPSwitcher (latest Versions)

  • Hey,

    I fixed most of the permissions/ownership problems myself, so ssh, mariadb and some other services work again. After this I corrected more permissions and started the commands from above. Thank you very much, everything is working now again.

    Hopefully it was the last time I made that typo. :)

  • FloRet88

    Closed the thread.
  • FloRet88

    Added the Label not a bug