php-config(1)

πŸŽ€ php-config β€” hey bestie, let's talk about your PHP setup πŸŽ€

So this is a page from the Scripting Language manual section β€” it's php-config(1), and it's literally your backstage pass to everything your PHP install is keeping secret. πŸ’…


✨ NAME ✨

php-config β€” get the tea on your PHP configuration and compile options πŸ«–


✨ SYNOPSIS ✨

php-config [options]

✨ DESCRIPTION ✨

okay so, php-config is a simple shell script 🐚 and its whole job β€” its entire main character purpose β€” is handing you information about your installed PHP configuration. That's it. That's the gig. No cap. πŸ’–


✨ OPTIONS ✨

Pick your fighter, bestie. Every one of these is a flag you pass and it spills a specific lil fact about your PHP:

  • --prefix β€” the directory prefix where PHP is installed, like for example /usr/local πŸ“
  • --includes β€” gives you the list of -I options with all the include files πŸ—‚οΈ
  • --ldflags β€” the LD Flags that PHP was compiled with πŸ”§
  • --libs β€” the extra libraries PHP was compiled with πŸ“š
  • --man-dir β€” the directory prefix where the manpages are installed πŸ“–
  • --extension-dir β€” the directory where extensions get searched by default πŸ”
  • --include-dir β€” the directory prefix where header files are installed by default πŸ“Œ
  • --lib-dir β€” the directory where libraries are installed by default 🧺
  • --lib-embed β€” the PHP embed library name πŸ«‚
  • --php-binary β€” the full path to the php CLI or CGI binary πŸ›£οΈ
  • --php-sapis β€” shows you all the SAPI modules available ✨
  • --configure-options β€” the configure options to recreate the configuration of your current PHP installation πŸ› οΈ
  • --ini-path β€” the directory from which PHP reads its INI configuration file (php.ini) πŸ“„
  • --ini-dir β€” the directory from which PHP scans for additional INI configuration files πŸ“‚
  • --version β€” the PHP version 🏷️
  • --vernum β€” the PHP version, but as an integer πŸ”’

✨ SEE ALSO ✨

  • php(1) β€” yeah go read that one too, it's giving sibling energy πŸ’•

✨ VERSION INFORMATION ✨

This manpage describes php, version 8.5.12. πŸ‘‘


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. πŸ“¬


fr fr, that's the whole page. go check your config, bestie, you got this πŸ’–βœ¨

The PHP Group Β· 2024 Β· php-config(1) β€” mwah, thanks for reading, ily, bye πŸ‘‹πŸ’…πŸ¦‹

πŸ“¦ where this page comes from