How to create a user for default domain?

TrafalgarLaw999

Verified User
Joined
Dec 21, 2016
Messages
7
Hi.

I'm an admin of a (CentOS 7.0 64-Bit) server that runs directadmin version 1.50.0. I have a problem that the default domain (mydomain.com) in the server is binding to user "admin", and the public web path is located on "/var/www/html/".

I would like to create a new user that can manage this domain only at the "user level", and having the public web path located at "/home/mydomain/domains/mydomain.com/public_html/" instead.

I've tried to create a new user "mydomain" with the "mydomain.com", but apache still points to the old "/var/www/html/". I could manually edit the httpd.conf to point to the right directory, but I'm not sure if that has problems with directadmin.

How to do this the right way? Thanks!
 
Hi,

Try delete that domain in user admin, then create new user. (make sure your data backed up)
 
Did you change something during setup or after setup? Because Directadmin normally never points to /var/www/html as public web path of a domain after normal installation.
If you as admin have domain mydomain.com the public directory would be /home/admin/domains/mydomain.com/public_html and nothing else.
The only "public" apache thing in /var/www/html is the page "apache is functioning normally" which you see when you visit your server by ip address.

You can't have one domain on different users so if you want to change this, you have to do what Hosting Kernel says. However, you have to create another domain for admin then, because that has also to contain your servers hostname.

Also remember to wait until your DNS changes are synched in the DNS systems, which can take 4-24 hours.
 
Back
Top