I created subdomain in DirectAdmin using his admin panel. But I want to do the same from PHP.
I have to add section to the httpd.conf
and create folder in public_html
folder. And then add to DNS. But I have to do using PHP or using DirectAdmin API? Because I don't know if there are any other places where I have to add information about my new subdomain.
For example in this folder:
/usr/local/directadmin/data/users/admin/domains/mydomain.subdomains