Join the community today
Register Now

Sysadmin Permission error after migration

Discussion in 'System Administration' started by Saahib, May 9, 2020.

  1. Saahib

    Saahib Member

    38
    2
    8
    Oct 8, 2017
    Ratings:
    +6
    Local Time:
    9:30 AM
    1.13
    10.2
    Hi,


    I followed this guide for CMM to CMM migration,
    Upgrade - Nginx - Insight Guide - Centmin Mod Site Data Migration Guide


    I installed new CMM, copied nginx virtual host file from old cmm, ftp passwd file mysql and mysql users. I copied files using "cp -p" to preserve permission and other stats of files.
    Restored DB, but now when I access any of the virtual host, I get "Permission Denied error".

    From domain log (at /home/nginx/domains/domain.com/log/error.log) I can see that request is coming properly. I visually compared permissions from old cmm to new cmm, looks same. Can you advice, or any script to fix permission of vhosts ?
     
  2. Saahib

    Saahib Member

    38
    2
    8
    Oct 8, 2017
    Ratings:
    +6
    Local Time:
    9:30 AM
    1.13
    10.2
    Nevermind, yet again I was looking elsewhere.
    Although permission was good for all files but top /home was messed, it was 700 , changed to 711 , working now.