Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| home_server:home_server_setup:other_services:misc [2025-09-29 Mon wk40 10:04] – [php packages] baumkp | home_server:home_server_setup:other_services:misc [2025-09-29 Mon wk40 13:35] (current) – [php packages] baumkp | ||
|---|---|---|---|
| Line 32: | Line 32: | ||
| =====php packages===== | =====php packages===== | ||
| + | |||
| + | ++++Current main used php extenstions: | ||
| |<38em 28% 36% 12% 12% 12%>| | |<38em 28% 36% 12% 12% 12%>| | ||
| ^ package | ^ package | ||
| Line 37: | Line 39: | ||
| | php-apcu | | php-apcu | ||
| | php-apcu-bc | | php-apcu-bc | ||
| - | | php-bcmath | + | | php-bcmath |
| | libapache2-mod-php | | libapache2-mod-php | ||
| | php-common | | php-common | ||
| Line 50: | Line 52: | ||
| | php-mime-type | | php-mime-type | ||
| | php-mysql | | php-mysql | ||
| + | | php-mysqli | ||
| + | | php-mysqlnd | ||
| | php-pear | | php-pear | ||
| | php-redis | | php-redis | ||
| | php-xmlrpc | | php-xmlrpc | ||
| - | | php7.4-cli | + | | php7.4-cli |
| | php7.4-common | | php7.4-common | ||
| | php7.4-curl | | php7.4-curl | ||
| Line 69: | Line 73: | ||
| | php7.4-zip | | php7.4-zip | ||
| | pkg-php-tools | | pkg-php-tools | ||
| + | | pkg-session | ||
| + | ++++ | ||
| + | ++++Here’s a list of common PHP extensions used for various functionalities, | ||
| + | * It would seem that packages can vary from distribution to distribution and over time? | ||
| + | - Essential PHP Extensions | ||
| + | *These are commonly required for most web applications: | ||
| + | *php - includes php-cli and php-fpm | ||
| + | *php-cli – Command-line interface for PHP (used where only php command line interface is required, no fpm) | ||
| + | *php-fpm - serves php onto a web server (Used where only web server integration is required, no cli) | ||
| + | *php-common – Core PHP libraries | ||
| + | *php-json – JSON data handling | ||
| + | *php-opcache – Improves performance via caching | ||
| + | *php-readline – Enables command-line interaction | ||
| + | - Web-Related Extensions | ||
| + | *php-curl – Handles HTTP requests (e.g., API calls) | ||
| + | *php-mbstring – Supports multibyte strings (needed for UTF-8) | ||
| + | *php-xml – XML parsing and processing | ||
| + | *php-zip – Handles ZIP archives | ||
| + | *php-gd – Image processing | ||
| + | *php-imagick – Alternative image processing (using ImageMagick) | ||
| + | *php-bcmath – Arbitrary precision math (needed for some applications) | ||
| + | -Database Support | ||
| + | *php-mysql – MySQL/ | ||
| + | *php-pgsql – PostgreSQL support | ||
| + | *php-sqlite3 – SQLite database support | ||
| + | *php-redis – Redis caching support | ||
| + | *php-mongodb – MongoDB driver for PHP | ||
| + | -Security and Encryption | ||
| + | *php-openssl – SSL/TLS support | ||
| + | *php-mcrypt – Deprecated, but some old applications still need it | ||
| + | *php-sodium – Modern cryptography | ||
| + | *php-intl – Internationalization support | ||
| + | -Performance and Debugging | ||
| + | *php-xdebug – Debugging and profiling | ||
| + | *php-apcu – APCu caching for performance | ||
| + | *php-memcached – Memcached caching support | ||
| + | ++++ | ||
| ---- | ---- | ||
| ====php test==== | ====php test==== | ||
| Line 77: | Line 117: | ||
| ?></ | ?></ | ||
| + | From command line (cli) | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | In Alpine Linux the following php packages need to be installed for php cli to function. | ||
| + | * php | ||
| + | * php-opcache | ||
| ---- | ---- | ||