From 13a0cb7e145f71b1d30d589d702ae8478aab00f7 Mon Sep 17 00:00:00 2001 From: lacatoire Date: Thu, 5 Feb 2026 11:22:51 +0100 Subject: [PATCH] Add install documentation for Arch Linux (pacman) --- install/unix/index.xml | 1 + install/unix/pacman.xml | 109 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 110 insertions(+) create mode 100644 install/unix/pacman.xml diff --git a/install/unix/index.xml b/install/unix/index.xml index 6ce92ac5d93a..646d001dd396 100644 --- a/install/unix/index.xml +++ b/install/unix/index.xml @@ -27,6 +27,7 @@ &install.unix.debian; &install.unix.dnf; + &install.unix.pacman; &install.unix.openbsd; &install.unix.source; diff --git a/install/unix/pacman.xml b/install/unix/pacman.xml new file mode 100644 index 000000000000..077b72a49e8e --- /dev/null +++ b/install/unix/pacman.xml @@ -0,0 +1,109 @@ + + + + Installing from packages on Arch Linux + + While PHP can be installed from source, it is also available through + packages on Arch Linux and derivatives that use pacman. + + &warn.install.third-party-support; + + The packages can be installed using the pacman command. + + + Installing packages + + Before installing a package, it is recommended to ensure the system + is up to date. Typically, this is done by running the command + pacman -Syu. + + + Pacman Install Example + + + + + + Pacman will automatically install all dependencies for PHP. + The web server may need to be restarted in order for the changes to + take effect. For example: + + + Restarting Apache once PHP is installed + + + + + + + Better control of configuration + + In the last section, PHP was installed with only core modules. It is + very likely that additional modules will be desired, such as + + MySQL + cURL + GD + etc. + + These may also be installed via the pacman command. + + + Methods for listing additional PHP packages + + + + + + The list of packages will include a number of packages that includes + PHP extensions such as php-gd, + php-intl, php-sqlite, and others. + When extensions are installed, additional packages + will be automatically installed as necessary to satisfy the dependencies + of those packages. + + + Install PHP with MySQL, GD + + + + + + Pacman will automatically add the appropriate lines to the + different &php.ini; related files like + /etc/php/php.ini, + /etc/php/conf.d/*.ini, etc. and depending on + the extension will add entries similar to extension=foo. + However, restarting the web server (like Apache) is required before these + changes take effect. + + + +