php-config(1)
π php-config β get information about PHP configuration and compile options π
okay so bestie, real talk: this is the php-config(1) manual page, and it's honestly one of the most lowkey useful little scripts in the whole PHP ecosystem. it's giving "quiet luxury" β no drama, just answers.
β¨ SYNOPSIS β¨
php-config [options]
like, you just run it, optionally with one of the flags below, and it tells you things. that's the whole vibe. π
πΈ DESCRIPTION πΈ
so php-config is a simple shell script β yes, a shell script, not some big compiled binary, not a whole daemon, just a lil script β for obtaining information about installed PHP configuration. basically it's the friend who actually knows where everything is and will tell you without making it weird. π«Ά
π OPTIONS π
here's the full menu, no cap, every single one:
--prefixβ Directory prefix where PHP is installed, e.g./usr/local--includesβ List of-Ioptions with all include files--ldflagsβ LD Flags which PHP was compiled with--libsβ Extra libraries which PHP was compiled with--man-dirβ The directory prefix where the manpages is installed--extension-dirβ Directory where extensions are searched by default--include-dirβ Directory prefix where header files are installed by default--lib-dirβ Directory where libraries are installed by default--lib-embedβ PHP embed library name--php-binaryβ Full path to php CLI or CGI binary--php-sapisβ Show all SAPI modules available--configure-optionsβ Configure options to recreate configuration of current PHP installation--ini-pathβ Directory from which PHP reads its INI configuration file (php.ini)--ini-dirβ Directory from which PHP scans for additional INI configuration files--versionβ PHP version--vernumβ PHP version as integer
ngl the --configure-options one is the main character here β it literally hands you the configure options to recreate the configuration of your current PHP installation. iconic for debugging builds. π
π¦ SEE ALSO π¦
php(1) β the big sibling. go say hi.
π VERSION INFORMATION π
This manpage describes php, version 8.4.27. slay. β¨
π COPYRIGHT π
Copyright Β© The PHP Group
This source file is subject to version 3.01 of the PHP license, that is bundled with this package in the file LICENSE, and is available through the world-wide-web at the following url:
https://www.php.net/license/3_01.txt
If you did not receive a copy of the PHP license and are unable to obtain it through the world-wide-web, please send a note to license@php.net so we can mail you a copy immediately.
and that's the tea β β The PHP Group, 2024, php-config(1). periodt. π
π
π¦ where this page comes from
- alpine 3.24: php84-doc 8.4.27-r0 Β· PHP-3.01 BSD-3-Clause LGPL-2.0-or-later MIT Zend-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms