Skip to main content

Permission issues in var

Comments

5 comments

  • cPanelMichael
    Two days ago I was working on a faulty Magento 2 installation through SSH and this installation is under a local user account, though I worked with root privileges.

    Hello, Could you review the .bash_history file under the account's home directory (or in the /root directory if you used root access) and let us know the specific commands you ran? Thank you.
    0
  • Bayern
    Hello, Could you review the .bash_history file under the account's home directory (or in the /root directory if you used root access) and let us know the specific commands you ran? Thank you.

    Well, I guess this will teach me to log in as local user instead of root in the future. Instead of changing permissions in Magento installation directory I messed up some root permissions with this command that I had run:
    chmod -Rf 777 /var/
    I cleared the installatron issue (was root/root instead of username/username in a few files in local user installation directory) but if there is a way to fix the var/cpanel permissions, I should have everything fixed. Thanks!
    0
  • cPanelMichael
    Hello, We typically recommend installing the OS and cPanel on a new server and migrating the accounts to the new system when this type of issue occurs. Thank you.
    0
  • Bayern
    Hello, We typically recommend installing the OS and cPanel on a new server and migrating the accounts to the new system when this type of issue occurs. Thank you.

    We are now moving to a new VPS on the same host and instead of performing live migration, I think we'll go with the fresh install and migration to be sure that any remaining permission issues are fixed at the same time. We will make a full backup and restore all WHM settings/cPanel accounts at the same time through "Restore a Full Backup/cpmove File". But just to be sure, this full backup/restore will not move any of the /var permissions to the new setup, but will move all accounts and settings?
    0
  • cPanelMichael
    But just to be sure, this full backup/restore will not move any of the /var permissions to the new setup, but will move all accounts and settings?

    Hello, Yes, that's correct, however you should consider using "WHM >> Transfer Tool" to copy the accounts and review the transfer logs after the migration completes to verify there were no errors during the transfer process. There's a document you can follow at: How to Move All cPanel Accounts from One Server to Another - cPanel Knowledge Base - cPanel Documentation Thank you.
    0

Please sign in to leave a comment.