Choosing the right image
We offer many variations, so it can be overwhelming when choosing an image to use.
Selecting a PHP Version
PHP is constantly evolving. Every release is making PHP faster and more secure. It's usually best to be on the latest version to take advantage of the security and performance features. Check PHP's official "Supported Versions" site to get the latest information.
Choosing the PHP version highly depends on your code's compatibility for the latest features. Be sure to have automated integration tests to help build your confidence when upgrading versions of PHP.
CLI
Our CLI variation has the components of PHP Command Line Interface only.
Great to use for:
- Installing composer packages locally
- You need a lightweight PHP CLI instance for a quick job
FPM
Our FPM variation has the components of PHP FastCGI Process Manager (FPM) only.
Great to use for:
- Larger scale apps who have a web server or load balancer already
FPM-Apache
Our FPM-Apache variation has the components of PHP FastCGI Process Manager (FPM) and Apache 2.4.
Great to use for:
- WordPress Websites
- PHP Applications that require Apache components to function
FPM-NGINX
Our FPM-NGINX variation has the components of PHP FastCGI Process Manager (FPM) and NGINX.
Great to use for:
- Laravel Applications
- Simple PHP apps that want the web server and PHP-FPM server packaged into a single image