Setting Subdomain Post Migration

doumu

Verified User
Joined
Aug 13, 2019
Messages
22
Sorry, this is a bit long but trying to understand what is actually happening here.

Migrated one account from cPanel to DA which contained:
--
example.com on PHP 7.3
email.example.com on PHP 5.6
--
After restoration, DA did not recognize email.example.com in the account or Domain Setup page, but the subdomain was resolving properly.
In order to use the PHP selector to set the PHP version for these individually, followed these steps:

1. Added subdomain email.example.com in user panel "Domain Setup" under user account
2. This created the path /home/user/domains/email.example.com/public_html
3. Actual path of resolving email.example.com was /home/user/domains/example.com/public_html/email
4. Deleted the domain email.example.com in "Domain Setup"
5. This removed the /home/user/domains/example.com/public_html/email directory

Since the content was deleted, I restored the account from the cpmove file.

Upon restoration:

1. The domain email.domain.com showed for the restored account in the user area
2. The path /home/user/domains/email.example.com/public_html was preserved with standard new DA content inside
3. The email.domain.com resolved to /home/user/domains/example.com/public_html/email


Since DirectAdmin deleted the /email doc root before, I tried to move it to a new account following this procedure.

This migrated the /home/user/domains/email.example.com/public_html to the new account.

Server was provisioned and updated to latest versions before migration.

1. What is happening here where adding the subdomain doesn't recognize the docroot set from virtual hosts, but deleting the subdomain deletes the docroot?
2. What is the preferred method for getting these subdomains recognized by DA post migration?
3. What is the preferred method for setting per directory/subdomain PHP versions under PHP-FPM ?

Thanks for the help.
 
Last edited:
Back
Top