phpquery
queries PHP configuration on Debian-based systems
TLDR
List available PHP versions
SYNOPSIS
phpquery [-v version] [-s sapi] [-V|-S|-M|-m module]
DESCRIPTION
phpquery queries PHP configuration on Debian-based systems. It reports installed PHP versions, available SAPIs (Server API), and enabled extensions. This is useful for scripts and automation that need to detect PHP configuration.
The tool reads configuration from /etc/php/ directory structure and reports the state of symbolic links that control module activation.
PARAMETERS
-v _version_
PHP version to query-s _sapi_
SAPI to query-V
List available PHP versions-S
List available SAPIs-M
List enabled modules-m _module_
Check if specific module is enabled-q
Quiet mode, exit status only
CAVEATS
Debian/Ubuntu specific tool. May require root for some queries. Only reports extensions managed through phpenmod/phpdismod system.
HISTORY
phpquery is part of the php-defaults package maintained by the Debian PHP team. It complements phpenmod and phpdismod by providing query capabilities for PHP configuration management.
