Ispmanager Recipe
require 'contrib/ispmanager.php';
This recipe for work with ISPManager Lite panel by API.
Configuration
ispmanager_owner
Default value
'www-root'
ispmanager_doc_root
Default value
'/var/www/' . get('ispmanager_owner') . '/data/'
ispmanager
ISPManager default configuration
Default value
[
'api' => [
'dsn' => 'https://root:password@localhost:1500/ispmgr',
'secure' => true,
],
'createDomain' => null,
'updateDomain' => null,
'deleteDomain' => null,
'createDatabase' => null,
'deleteDatabase' => null,
'phpSelect' => null,
'createAlias' => null,
'deleteAlias' => null,
]
vhost
Vhost default configuration
Default value
[
'name' => '{{domain}}',
'php_enable' => 'on',
'aliases' => 'www.{{domain}}',
'home' => 'www/{{domain}}',
'owner' => get('ispmanager_owner'),
'email' => 'webmaster@{{domain}}',
'charset' => 'off',
'dirindex' => 'index.php uploaded.html',
'ssi' => 'on',
'php' => 'on',
'php_mode' => 'php_mode_mod',
'basedir' => 'on',
'php_apache_version' => 'native',
'cgi' => 'off',
'log_access' => 'on',
'log_error' => 'on',
]
ispmanager_session
Storage
ispmanager_databases
Default value
[
'servers' => [],
'hosts' => [],
'dblist' => [],
]
ispmanager_domains
ispmanager_phplist
ispmanager_aliaslist
Tasks
ispmanager:init
Installs ispmanager.
ispmanager:db-server-list
Takes database servers list.
ispmanager:db-list
Takes databases list.
ispmanager:domain-list
Takes domain list.
ispmanager:db-create
Creates new database.
ispmanager:db-delete
Deletes database.
ispmanager:domain-create
Creates new domain.
ispmanager:get-php-list
Gets allowed PHP modes and versions.
ispmanager:print-php-list
Prints allowed PHP modes and versions.
ispmanager:domain-php-select
Switches PHP version for domain.
ispmanager:domain-alias-create
Creates new domain alias.
ispmanager:domain-alias-delete
Deletes domain alias.
ispmanager:domain-delete
Deletes domain.
ispmanager:process
Auto task processing.