deployer/docs/contrib/ispmanager.md
2021-08-31 23:25:22 +02:00

242 lines
4.3 KiB
Markdown

<!-- DO NOT EDIT THIS FILE! -->
<!-- Instead edit contrib/ispmanager.php -->
<!-- Then run bin/docgen -->
# ispmanager
[Source](/contrib/ispmanager.php)
This recipe for work with ISPManager Lite panel by API.
## Configuration
### ispmanager_owner
[Source](https://github.com/deployphp/deployer/blob/master/contrib/ispmanager.php#L9)
```php title="Default value"
'www-root'
```
### ispmanager_doc_root
[Source](https://github.com/deployphp/deployer/blob/master/contrib/ispmanager.php#L10)
```php title="Default value"
'/var/www/' . get('ispmanager_owner') . '/data/'
```
### ispmanager
[Source](https://github.com/deployphp/deployer/blob/master/contrib/ispmanager.php#L13)
ISPManager default configuration
```php title="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](https://github.com/deployphp/deployer/blob/master/contrib/ispmanager.php#L29)
Vhost default configuration
```php title="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](https://github.com/deployphp/deployer/blob/master/contrib/ispmanager.php#L49)
Storage
### ispmanager_databases
[Source](https://github.com/deployphp/deployer/blob/master/contrib/ispmanager.php#L50)
```php title="Default value"
[
'servers' => [],
'hosts' => [],
'dblist' => [],
]
```
### ispmanager_domains
[Source](https://github.com/deployphp/deployer/blob/master/contrib/ispmanager.php#L56)
### ispmanager_phplist
[Source](https://github.com/deployphp/deployer/blob/master/contrib/ispmanager.php#L57)
### ispmanager_aliaslist
[Source](https://github.com/deployphp/deployer/blob/master/contrib/ispmanager.php#L58)
## Tasks
### ispmanager:init
[Source](https://github.com/deployphp/deployer/blob/master/contrib/ispmanager.php#L61)
Initialisation.
### ispmanager:db-server-list
[Source](https://github.com/deployphp/deployer/blob/master/contrib/ispmanager.php#L84)
Take database servers list.
### ispmanager:db-list
[Source](https://github.com/deployphp/deployer/blob/master/contrib/ispmanager.php#L122)
Take databases list.
### ispmanager:domain-list
[Source](https://github.com/deployphp/deployer/blob/master/contrib/ispmanager.php#L144)
Take domain list.
### ispmanager:db-create
[Source](https://github.com/deployphp/deployer/blob/master/contrib/ispmanager.php#L160)
Create new database.
### ispmanager:db-delete
[Source](https://github.com/deployphp/deployer/blob/master/contrib/ispmanager.php#L234)
Delete database.
### ispmanager:domain-create
[Source](https://github.com/deployphp/deployer/blob/master/contrib/ispmanager.php#L287)
Create new domain.
### ispmanager:get-php-list
[Source](https://github.com/deployphp/deployer/blob/master/contrib/ispmanager.php#L335)
Get allowed PHP modes and versions.
### ispmanager:print-php-list
[Source](https://github.com/deployphp/deployer/blob/master/contrib/ispmanager.php#L381)
Print allowed PHP modes and versions.
### ispmanager:domain-php-select
[Source](https://github.com/deployphp/deployer/blob/master/contrib/ispmanager.php#L423)
Switch PHP version for domain.
### ispmanager:domain-alias-create
[Source](https://github.com/deployphp/deployer/blob/master/contrib/ispmanager.php#L497)
Create new domain alias.
### ispmanager:domain-alias-delete
[Source](https://github.com/deployphp/deployer/blob/master/contrib/ispmanager.php#L568)
Delete domain alias.
### ispmanager:domain-delete
[Source](https://github.com/deployphp/deployer/blob/master/contrib/ispmanager.php#L638)
Delete domain.
### ispmanager:process
[Source](https://github.com/deployphp/deployer/blob/master/contrib/ispmanager.php#L688)
Auto task processing.