Directadmin Recipe
require 'contrib/directadmin.php';
Configuration
directadmin
– array with configuration for DirectAdminhost
– DirectAdmin hostport
– DirectAdmin port (default: 2222, not required)scheme
– DirectAdmin scheme (default: http, not required)username
– DirectAdmin usernamepassword
– DirectAdmin password (it is recommended to use login keys!)db_user
– Database username (required when using directadmin:createdb or directadmin:deletedb)db_name
– Database namse (required when using directadmin:createdb)db_password
– Database password (required when using directadmin:createdb)domain_name
– Domain to create, delete or edit (required when using directadmin:createdomain, directadmin:deletedomain, directadmin:symlink-private-html or directadmin:php-version)domain_ssl
– Enable SSL, options: ON/OFF, default: ON (optional when using directadmin:createdb)domain_cgi
– Enable CGI, options: ON/OFF, default: ON (optional when using directadmin:createdb)domain_php
– Enable PHP, options: ON/OFF, default: ON (optional when using directadmin:createdb)domain_php_version
– Domain PHP Version, default: 1 (required when using directadmin:php-version)
Tasks
directadmin:createdb
Creates a database on DirectAdmin.
directadmin:deletedb
Deletes a database on DirectAdmin.
directadmin:createdomain
Creates a domain on DirectAdmin.
directadmin:deletedomain
Deletes a domain on DirectAdmin.
directadmin:symlink-private-html
Symlink your private_html to public_html.
directadmin:php-version
Changes the PHP version from a domain.