'PHP', 'Binary' => 'php', 'Type' => 'apt', 'Package' => 'php-cli php-mbstring', 'MinimumVersion' => '8.0', 'VersionCommand' => 'php -v', 'VersionPattern' => '/^PHP (\d+\.\d+)/', 'Required' => TRUE, 'Subsystem' => 'Core', 'Requires' => array(), 'License' => 'PHP-3.01', 'Source' => 'https://www.php.net', 'Purpose' => 'Runs the application.'), // / A PHP extension is not proved by the PHP binary being present. It is asked for by name, from PHP itself, // / & is its own entry for that reason. array('Name' => 'PHP OpenSSL', 'Binary' => '', 'Type' => 'php-extension', 'Package' => 'openssl', 'MinimumVersion' => '', 'VersionCommand' => 'php -r "exit(extension_loaded(\'openssl\') ? 0 : 1);"', 'VersionPattern' => '', 'Required' => FALSE, 'Subsystem' => 'Resource Awareness', 'Requires' => array('PHP'), 'License' => 'PHP-3.01', 'Source' => 'https://www.php.net/manual/en/book.openssl.php', 'Purpose' => 'Encrypts every message on a manager socket. Resource awareness cannot work without it & fails quietly rather than loudly.'), // / Root hands a command to the web server account by forking & dropping to it, which takes pcntl & posix. // / Without either, such a command is refused rather than run as root, so -fp & the listener commands root hands over fail. // / The command line PHP of a distribution carries both. The official PHP container image carries posix & not pcntl. array('Name' => 'PHP Pcntl', 'Binary' => '', 'Type' => 'php-extension', 'Package' => 'pcntl', 'MinimumVersion' => '', 'VersionCommand' => 'php -r "exit(extension_loaded(\'pcntl\') ? 0 : 1);"', 'VersionPattern' => '', 'Required' => FALSE, 'Subsystem' => 'Core', 'Requires' => array('PHP'), 'License' => 'PHP-3.01', 'Source' => 'https://www.php.net/manual/en/book.pcntl.php', 'Purpose' => 'Lets root run a command as the web server account. Without it that command is refused.'), array('Name' => 'PHP Posix', 'Binary' => '', 'Type' => 'php-extension', 'Package' => 'posix', 'MinimumVersion' => '', 'VersionCommand' => 'php -r "exit(extension_loaded(\'posix\') ? 0 : 1);"', 'VersionPattern' => '', 'Required' => FALSE, 'Subsystem' => 'Core', 'Requires' => array('PHP'), 'License' => 'PHP-3.01', 'Source' => 'https://www.php.net/manual/en/book.posix.php', 'Purpose' => 'Names accounts & lets root run a command as the web server account. Without it that command is refused.'), array('Name' => 'Apache', 'Binary' => 'apache2', 'Type' => 'apt', 'Package' => 'apache2 libapache2-mod-php', 'MinimumVersion' => '2.4', 'VersionCommand' => 'apache2 -v', 'VersionPattern' => '/Apache\/(\d+\.\d+)/', 'Required' => TRUE, 'Subsystem' => 'Core', 'Requires' => array('PHP'), 'License' => 'Apache-2.0', 'Source' => 'https://httpd.apache.org', 'Purpose' => 'Serves the web interface.'), array('Name' => 'Curl', 'Binary' => 'curl', 'Type' => 'apt', 'Package' => 'curl', 'MinimumVersion' => '7.0', 'VersionCommand' => 'curl --version', 'VersionPattern' => '/^curl (\d+\.\d+)/', 'Required' => TRUE, 'Subsystem' => 'Core', 'Requires' => array(), 'License' => 'curl', 'Source' => 'https://curl.se', 'Purpose' => 'Fetches update packages & remote streams.'), array('Name' => 'Git', 'Binary' => 'git', 'Type' => 'apt', 'Package' => 'git', 'MinimumVersion' => '2.0', 'VersionCommand' => 'git --version', 'VersionPattern' => '/git version (\d+\.\d+)/', 'Required' => FALSE, 'Subsystem' => 'Updates', 'Requires' => array(), 'License' => 'GPL-2.0', 'Source' => 'https://git-scm.com', 'Purpose' => 'Retrieves releases during an update.'), // / ---- Isolation. Installed before anything an application runs, because everything it runs runs inside it. ---- array('Name' => 'Bubblewrap', 'Binary' => 'bwrap', 'Type' => 'apt', 'Package' => 'bubblewrap', 'MinimumVersion' => '0.4', 'VersionCommand' => 'bwrap --version', 'VersionPattern' => '/bubblewrap (\d+\.\d+)/', 'Required' => TRUE, 'Subsystem' => 'Sandbox', 'Requires' => array(), 'License' => 'LGPL-2.0', 'Source' => 'https://github.com/containers/bubblewrap', 'Purpose' => 'Isolates every conversion from the host & the network.'), array('Name' => 'AppArmor Utils', 'Binary' => 'apparmor_parser', 'Type' => 'apt', 'Package' => 'apparmor-utils', 'MinimumVersion' => '', 'VersionCommand' => '', 'VersionPattern' => '', 'Required' => FALSE, 'Subsystem' => 'Sandbox', 'Requires' => array('Bubblewrap'), 'License' => 'GPL-2.0', 'Source' => 'https://gitlab.com/apparmor/apparmor', 'Purpose' => 'Loads the profile bubblewrap needs on a restricted kernel.')); // / ----------------------------------------------------------------------------------- ?>