Skip to main content
Version: 8.x

Ispmanager Recipe

require 'contrib/ispmanager.php';

Source

This recipe for work with ISPManager Lite panel by API.

Configuration

ispmanager_owner

Source

Default value
'www-root'

ispmanager_doc_root

Source

Default value
'/var/www/' . get('ispmanager_owner') . '/data/'

ispmanager

Source

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

Source

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

Source

Storage

ispmanager_databases

Source

Default value
[
'servers' => [],
'hosts' => [],
'dblist' => [],
]

ispmanager_domains

Source

ispmanager_phplist

Source

ispmanager_aliaslist

Source

Tasks

ispmanager:init

Source

Installs ispmanager.

ispmanager:db-server-list

Source

Takes database servers list.

ispmanager:db-list

Source

Takes databases list.

ispmanager:domain-list

Source

Takes domain list.

ispmanager:db-create

Source

Creates new database.

ispmanager:db-delete

Source

Deletes database.

ispmanager:domain-create

Source

Creates new domain.

ispmanager:get-php-list

Source

Gets allowed PHP modes and versions.

ispmanager:print-php-list

Source

Prints allowed PHP modes and versions.

ispmanager:domain-php-select

Source

Switches PHP version for domain.

ispmanager:domain-alias-create

Source

Creates new domain alias.

ispmanager:domain-alias-delete

Source

Deletes domain alias.

ispmanager:domain-delete

Source

Deletes domain.

ispmanager:process

Source

Auto task processing.