Skip to main content
Version: 7.x

directadmin

Source

Installing

Add to your deploy.php

require 'contrib/directadmin.php';

Configuration

  • directadmin โ€“ array with configuration for DirectAdmin
    • host โ€“ DirectAdmin host
    • port โ€“ DirectAdmin port (default: 2222, not required)
    • scheme โ€“ DirectAdmin scheme (default: http, not required)
    • username โ€“ DirectAdmin username
    • password โ€“ 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

Source

Creates a database on DirectAdmin.

directadmin:deletedb

Source

Deletes a database on DirectAdmin.

directadmin:createdomain

Source

Creates a domain on DirectAdmin.

directadmin:deletedomain

Source

Deletes a domain on DirectAdmin.

Source

Symlink your private_html to public_html.

directadmin:php-version

Source

Changes the PHP version from a domain.



Support Deployer โค๏ธ

Hello, my name is Anton Medvedev (@antonmedv). I'm the creator of the Deployer. I maintain this open source project in my spare time. Supporters on GitHub give me extra motivation to work on the project.

Consider supporting Deployer via GitHub Sponsors.

Also, please, nominate me for GitHub Stars award. Thanks!