About This File
Installation Instructions
- Installing from packages on Debian GNU/Linux and related distributions
- Installing from packages on GNU/Linux distributions that use DNF
- Installing from packages or ports on OpenBSD
- Installing from source on Unix and macOS systems
- CGI and command line setups
- Apache 2.x on Unix systems
- Nginx 1.4.x on Unix systems
- Lighttpd 1.4 on Unix systems
- LiteSpeed Web Server/OpenLiteSpeed Web Server on Unix systems
- Solaris specific installation tips
Most Unix (and Linux) operating systems and distributions have a packaged version of PHP and extensions available through their packaging system. There are sections with basic information on installing PHP using those systems.
For some distributions, there are also third-party repositories of packages that generally include a wider variety of available versions and extensions.
PHP can also be installed as a component of some third-party application servers .
Finally, PHP can always be installed from the source distributions, which allows the greatest flexibility in choosing what features, extensions, and server APIs to enable. There are sections with information about compiling and configuring PHP to use with different server APIs in particular.