Ways to Run PHP
The Parts of PHP
PHP Command
# file /usr/bin/php /usr/bin/php: symbolic link to /etc/alternatives/php
# file /etc/alternatives/php /etc/alternatives/php: symbolic link to /usr/bin/php8.3 PHP source code (C) files
/usr/include/php/20210902# ls ext
/usr/include/php/20210902/ext# ls curl dom gd hash igbinary json mbstring mysqlnd pdo session sockets standard xml date filter gmp iconv imagick libxml mysqli pcre phar simplexml spl swoolea
include (empty)
main (C Code)
sapi (Server API)
TSRM (Threadsafe Resource Manager)
Zend (Zend Engine 4 C code)
- /usr/include/php/20210902/Zend/zend_float.h
- /usr/include/php/20210902/Zend/zend_long.h
CLI program "php --version"
Calls the PHP CLI binary executable that lives under /usr/bin/php php-fpm service that runs as a daemon. It acts as a daemon that listens for CGI requests, and when a request arrives, it spawns a PHP process to handle it.
Binary executables SAPI (e.g. PHP-FPM, CLI)
≈
How to Compile PHP
The PHP.INI Settings File
Important PHP.INI Settings
- Log in to post comments