Methods |
public
|
install_package(string $module): bool
Install PEAR package
|
#
|
public
|
list_installed_packages(): array
List PEAR packages installed for account
List PEAR packages installed for account
Keys-
is_local (bool) : package is local to account
version (double): version number
|
#
|
public
|
package_description(string $mModule): string
string get_pear_description (string)
Fetches the description for a PEAR package
string get_pear_description (string)
Fetches the description for a PEAR package
Parameters
Returns
description of the package
|
#
|
public
|
list_remote_packages(): array
array list_remote_packages (void)
Queries PEAR for all available PEAR packages, analogous to
running pear list-all from…
array list_remote_packages (void)
Queries PEAR for all available PEAR packages, analogous to
running pear list-all from the command line.
Returns
Listing of PEAR modules with the following indexes:
versions, description. :KLUDGE: versions only contains one version
number, the most current on PEAR at this time. This index is kept for
consistency with the "Package Manager" component of the control panel
|
#
|
public
|
add_pear_channel(string $xml): bool
Add PHP channel to PEAR package manager
Add PHP channel to PEAR package manager
Parameters
$xml |
URL reference to package.xml
|
|
#
|
public
|
remove_channel(string $channel): bool
Remove PEAR channel from PEAR package manager
Remove PEAR channel from PEAR package manager
Parameters
$channel |
channel previously added
|
|
#
|
public
|
list_channels(): array
List all channels configured in PHP PEAR package manager
List all channels configured in PHP PEAR package manager
Sample response-
array(2) {
[0]=>
array(5) {
["channel"]=> string(12) "pear.php.net"
["summary"]=> string(40) "PHP Extension and Application Repository"
}
[1]=>
array(5) {
["channel"]=> string(12) "pecl.php.net"
["summary"]=> string(31) "PHP Extension Community Library"
}
}
|
#
|
public
|
get_channel_info(string $channel): array
Retrieve PEAR channel information
Retrieve PEAR channel information
Basic wrapper to pear channel-info command
Sample response-
array(4) {
["server"]=>
string(12) "pear.php.net"
["alias"]=>
string(4) "pear"
["summary"]=>
string(40) "PHP Extension and Application Repository"
["version"]=>
NULL
}
|
#
|
public
|
version(): string
string get_php_version()
Returns the available PHP interpreter version on the server
string get_php_version()
Returns the available PHP interpreter version on the server
|
#
|
public
|
_housekeeping()
|
#
|
public
|
composer_exists()
|
#
|
public
|
_delete()
|
#
|
public
|
get_fallbacks()
|
#
|
public
|
fallback_enabled(string|null $mode = null): bool
Verify if fallback enabled for given personality
Verify if fallback enabled for given personality
|
#
|
public
|
disable_fallback($mode = ''): bool
Disable PHP fallback support
Disable PHP fallback support
|
#
|
public
|
_verify_conf(ConfigurationContext $ctx): bool
|
#
|
public
|
_create()
|
#
|
public
|
_edit()
|
#
|
public
|
enable_fallback(null|string $mode = null): bool
Enable fallback interpreter support
Enable fallback interpreter support
Parameters
$mode |
specific personality in multi-personality environments
|
|
#
|
public
|
jailed(): bool
PHP is jailed with PHP-FPM
PHP is jailed with PHP-FPM
|
#
|
public
|
pool_name(string|null $docroot = null): string|null
Pool name from docroot
|
#
|
public
|
pool_change_owner(string $owner, string|null $pool = null): bool
Change pool owner
|
#
|
public
|
pool_cache_status(string|null $pool = null): array
Get pool cache statistics
Get pool cache statistics
|
#
|
public
|
pool_owner(string|null $pool = null): bool|string
Username PHP-FPM pool operates as
Username PHP-FPM pool operates as
|
#
|
public
|
pool_restart(string $pool = null): bool
Restart PHP-FPM pool state
Restart PHP-FPM pool state
|
#
|
public
|
pool_set_state(string $pool = null, string $state = 'stop'): bool
Set PHP-FPM pool state
Parameters
$state |
active systemd state type (stop, start, restart)
|
|
#
|
public
|
pools(): array
Get jail pools
|
#
|
public
|
pool_status(string $pool = ''): array
Get pool status
Parameters
$pool |
named pool or default
|
|
#
|
public
|
_cron(Cronus $c)
|
#
|
public
|
pool_info(string $pool = ''): array
Get pool info
Parameters
$pool |
named pool or default
|
|
#
|
public
|
pool_get_version(string $pool = ''): string
Get PHP version
|
#
|
public
|
pool_direct_read(string $hostname, string $file): string
Send direct request to FPM worker bypassing HTTP server routing
Send direct request to FPM worker bypassing HTTP server routing
Throws
Adoy\FastCGI\ForbiddenException |
|
Adoy\FastCGI\TimedOutException |
|
|
#
|
public
|
pool_version_from_path(string $path): string
Return pool version from FS path
Return pool version from FS path
|
#
|
public
|
pool_set_version(?string $version, string $pool = ''): bool
Set PHP version on pool
Parameters
$version |
specified version or server default
|
$pool |
optional pool name
|
|
#
|
public
|
pool_get_policy(string $var, string|null $pool = null, string|null $default = null): array|ArrayAccess|mixed|null
|
#
|
public
|
pool_set_policy(string $anything, string $var, $val, string|null $pool = null): bool
Set pool policy value
Set pool policy value
Note: to set defaults applied to all pools, edit resources/apache/php/policy.blade.php
Parameters
$anything |
site, domain, or invoice
|
|
#
|
public
|
pool_versions(): array
Get available PHP pool versions
Get available PHP pool versions
|
#
|
public
|
pool_exists(string $pool): bool
PHP pool exists
|
#
|
public
|
migrate_directives(string $hostname, string $path = '', string|null $from = null): bool
Migrate PHP directives to configured engine format
Migrate PHP directives to configured engine format
Parameters
$from |
null to auto-detect (jail=1 implies "isapi", otherwise "fpm")
|
|
#
|
public
|
_create_user(string $user)
|
#
|
public
|
_delete_user(string $user)
|
#
|
public
|
_edit_user(string $userold, string $usernew, array $oldpwd)
|
#
|
public
|
_reload(string $why = '', array $args = [])
|
#
|