Author Topic: How to change default user account path  (Read 13761 times)

0 Members and 1 Guest are viewing this topic.

How to change default user account path
« on: August 19, 2019, 05:14:12 PM »
Sorry if it's repeated, I didn't find it anywhere.

I'm migrating from a server with cPanel, hosting 4 websites. In my new centos server, there is a user account and 3 additional domains, so it's like:

- accountsite.com
- add1.com
- add2.com
- add3.com

The root folder "(home/accountsite/public_html) have 3 folders (add1, add2, add3) and it's everything fine with those sites.

I'm not sure what to do about the main site, since a new folder "accountsite" is not working (error 404) and I don't think it's right to drop the files there along with other folders.

How can I change the path to "home/accountsite/public_html/accountsite"?

Offline
*
Re: How to change default user account path
« Reply #1 on: June 16, 2021, 06:59:50 PM »
For CPanel migrations that have multiple subdomains and addon domains or parked domains I recommend (basic and automated) you migrate everything as normal and setup subdomains and dns zones for the subdomains

For me the best way is advanced way:

1. Create a New Account
2. Create necessary subdomains and add domains linked to that account (addon domains)
3. Setup dns zone for these domains and sub-domains
4. rsync all site data and mailboxes
5. Llastly I finish by Fixing Permissions.
Applications Developer | RHEL Linux Server Administrator

Reach out to me in pm to solve any application deployment such as NodeJS, Java, PHP etc


Managed 40gb Shared CWP PRO Hosting for $20 p/a offer
Managed 60gb Shared CWP PRO Hosting for $40 p/a offer
Managed 100gb Shared CWP PRO Hosting for $60 p/a offer
Managed 200gb Shared CWP PRO Hosting for $120 p/a offer


CentOS 8 died a premature death at the end of 2021 - migrate to RockyLinux Os.