public_html showing twice

magicalwonders

Verified User
Joined
Aug 25, 2020
Messages
10
I've recently switched from cPanel to DirectAdmin and notice that I now have two folders for public_html in each account.

When I connect to an account via sftp I see the public_html folder. However, there is also another folder called "Domains" which contains a folder for the domain name, and inside this is another public_html folder!

I'm not sure which public_html I should use when editing files? Does it even matter?

I hope someone can advise.
 
The public_html in your home directory (e.g. /home/myuser/public_html) is usually a symlink to the actual public_html (DocumentRoot) directory located at /home/myuser/domains/mydomain.com/public_html. If it is *not* a symlink, then it has no special meaning, it will just cause confusion.
 
Thanks, Kristian,

When I click on the public_html in the home directory it takes me into the /home/myuser/domains/mydomain.com/public_html. I hadn't noticed that before! So definitely a symlink.

Things are a bit different to cPanel, but I'm getting used to it! :)
 
DirectAdmin is a little more logical with each domain having its own directory instead of all extra domains being inside of a primary domain which you may not want to keep but have to.
 
Yes, I agree, it is a better way to structure it. The only thing I'm not so keen on is that DirectAdmin is not so easy to access WebMail or PHPmyAdmin as cPanel.

Having to input credentials for each database and email account is a bit of a pain. It's not the end of the world though and it probably adds a layer of security. :)
 
Having to input credentials for each database and email account is a bit of a pain.
DA -has- the same easy access to Webmail or phpmyadmin. There are settings you can change so you will be able to access webmail and phpmyadmin without entering a password.
Search the forums for it. ;)
 
Back
Top