PHP Manual
Copyright
PHP Manual
Getting Started
Installation and Configuration
Language Reference
Security
Features
Function Reference
FAQ
Appendices
What's next?
General Installation Considerations
PHP Manual
PHP Manual
Installation and Configuration
Table of Contents
General Installation Considerations
Installation on Unix systems
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
Installation on macOS
Installation on macOS using third-party packages
Compiling PHP on macOS
Using the bundled PHP prior to macOS Monterey
Installation on Windows systems
Recommended configuration on Windows systems
Manual installation of pre-built binaries
Installation for Apache 2.x on Windows systems
Installation with IIS for Windows
Third-party tools for installing PHP
Building from source
Running PHP on the command line on Windows systems
Installation on Cloud Computing platforms
Azure App Services
Amazon EC2
DigitalOcean
FastCGI Process Manager (FPM)
Installation
Configuration
Installation of PECL extensions
Introduction to PECL Installations
Downloading PECL extensions
Installing a PHP extension on Windows
Compiling shared PECL extensions with the pecl command
Compiling shared PECL extensions with phpize
php-config
Compiling PECL extensions statically into PHP
Runtime Configuration
The configuration file
.user.ini files
Where a configuration setting may be set
How to change configuration settings