Merging users -> Question regarding file structure

zakazak

Verified User
Joined
Dec 20, 2018
Messages
52
Hi everyone,

I am currently in the process of merging several users into one user.

Currently I have:
  • user1
  • user2
  • user3
  • user4
Afterwards I want "user1" to include everything.

So far every user has one individual domain.
Files for those domains/websites are stored in "/home/username/public_html/".
This folder actually points to "/home/username/domains/userdomain.com/public_html/".

I have now started to merge the first user the following way:
  1. Create user backup from "user2"
  2. Copy "user2" backup into /home/user1/backups/
  3. Delete "user2" from DA
  4. Logged in as "user1" in DA, restore the backup from "user2"
  5. Logged in as "user1" in DA, in "Domain Setup", go to the domain from "user2" and redirect it to "user2"
Everything seems to work (I can access the website of user1 and user2).
But I now noticed that the file structure is different from how I worked so far.

Files in "/home/user1/public_html" still include the same files as before from "user1". Nothing from "user2" is in there.
All files from "user2" are now stored under "/home/user1/domains/user2domain.com/public_html/".

Is this correct and how it should be?
I am just confused as the "/home/user1/public_html/" is basically pointing directly & only to "user1".
But I guess this is just intended to point to whatever the first domain of a user is?
 
Okay I found a weird problem, it seems like the ftp logins are altered and do not work anymore.
I re-created the password for the "user1" ftp account which points to the user directory and is factory created/enabled.
Now I can login with this account again.

Update: Issue below seems to have been a problem with the cached login details from my client.
I was also able to create an ftp account which would point only to domain1 of user1.
However creating an ftp account on user1 which would point to the domain directory of domain2 doesn't work (can't connect).
 
Last edited:
Another quirk:
As admin -> Show all users -> user1
He (user1) now has the domains of "user1" and "user2".

I initially gave "user2" no PHP access and this is also correctly listed in the domains overview.
How ever, when I click to "modify" user1, I can not enable/disable PHP for e.g. the domain of user1 or user2 separately.

So it seems like I now enable or disable PHP for "user1" and then log in as "user1" and enable/disable it for each domain.
 
Back
Top