Hi Guys,
I'm writing some scripts to automatically create and configure accounts on the server with email, database, dns, ftp, etc. This uses basically all API functions available and working quite good.
However, I can't seem to get the CMD_API_CUSTOM_HTTPD function working. This always returns the current config and never update it with the supplied value. It is also the only one without an 'action' or likewise parameter: http://www.directadmin.com/features.php?id=580
How can I get this to work? The connection and command is correct since I receive the current configuration. So it is not a login problem.
I could also just 'hack' it into the "/usr/local/directadmin/data/users/username/domains/domain.com.cust_httpd" file. But I'm unsure how to get this acknowledged by Apache after changing the file.
Thanks!
Michael
I'm writing some scripts to automatically create and configure accounts on the server with email, database, dns, ftp, etc. This uses basically all API functions available and working quite good.
However, I can't seem to get the CMD_API_CUSTOM_HTTPD function working. This always returns the current config and never update it with the supplied value. It is also the only one without an 'action' or likewise parameter: http://www.directadmin.com/features.php?id=580
PHP:
array(
config => '# test',
domain => $Domain
)
How can I get this to work? The connection and command is correct since I receive the current configuration. So it is not a login problem.
I could also just 'hack' it into the "/usr/local/directadmin/data/users/username/domains/domain.com.cust_httpd" file. But I'm unsure how to get this acknowledged by Apache after changing the file.
Thanks!
Michael