Machine Backup

Discussion in 'Tips/Tricks/Mods' started by Marcio Urakawa, May 3, 2022.

  1. As admin. I discovered the problem by debugging.
    There were lines about mod_security in the Apache configuration.
    When I synced Ispconfig left it only to work with port 80.
    I installed Apache's mod_secutiry on the new server and was able to create the configuration again with 443
    But let's certificates, I'm having to create one by one through the interface again.
     
  2. A question:
    When I installed ispconfig on the new server, I took backup of /etc/passwd and /etc/group

    Code:
    tail /etc/passwd
    web501:x:5204:5188::/var/www/clients/client368/web501:/bin/false
    web502:x:5205:5189::/var/www/clients/client369/web502:/bin/false
    web503:x:5206:5190::/var/www/clients/client370/web503:/bin/false
    web505:x:5207:5182::/var/www/clients/client331/web505:/bin/false
    web506:x:5208:5191::/var/www/clients/client372/web506:/bin/false
    web507:x:5209:5192::/var/www/clients/client373/web507:/bin/false
    web508:x:5210:5193::/var/www/clients/client374/web508:/bin/false
    web496:x:5211:5185::/var/www/clients/client363/web496:/bin/false
    web497:x:5212:5186::/var/www/clients/client258/web497:/bin/false
    
    
    client366:x:5172:www-data
    client369:x:5173:www-data
    client370:x:5174:www-data
    client331:x:5175:www-data
    client372:x:5176:www-data
    client373:x:5013:www-data
    client374:x:5014:www-data
    client368:x:5012:www-data
    client363:x:5185:www-data
    client258:x:5186:www-data
    This made sure that the web directories were created the way I wanted. I have restored the sites and it is already up and running.

    My question is when I create a new site it wouldn't give a conflict at some point, since the site I created as a test got the permission
    web497:client258

    And if so, how can I adjust.
    Thanks.
     
  3. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Did you create users with those same ID:s in ISPConfig panel on that new host? If you did that, there should not be conflicts when you create furhter users.
    those are not permission, they are user and group, and in ISPConfig client is group and website is user.
     
    Marcio Urakawa likes this.
  4. Yes, I did.

    My fear would be when creating the next ones create new user id for sites and when I get to 500, 501... a problem occurs
     
  5. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    I think I do not understand what it is your are concerned about. If ISPConfig could create new user or website with the same ID as a previous item, it would surely have been found by now after 20 years of using ISPConfig on thousands of sites.
     
    Marcio Urakawa likes this.
  6. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    There should not be a problem, the "web##" and "client##" names are generated based on values in the database so would not conflict when adding new ones, and the actual numeric id of the system user and group that is generated is assigned by the system utilities (adduser or similar) which will check to ensure conflicting id's aren't generated.
     
    Marcio Urakawa likes this.
  7. I verified that the /etc/passwd file was showing more webxx than what was shown by ispconfig.
    The reason was that the backup database was 1 day out of date.
    I was creating new sites until I went through the last web id that existed in /etc/passwd to avoid problems.

    Now everything is correct. Thank you always for your patience
     
  8. I managed to fix the problem.
    I think I just need to adjust the communication with the Slave.
    I don't know if when I installed ispconfig on the new server, the passwords that the Slave had were changed or something.
     

Share This Page