What is PHP on Zerops?
Zerops provides a fully managed PHP runtime environment with integrated web servers (Apache or Nginx), automatic scaling, and zero-config deployment. Build and deploy your PHP applications with enterprise-grade performance and reliability.PHP is a popular general-purpose scripting language especially suited to web development. Learn more about PHP →
Key Features
Dual Web Server Support
Choose between PHP+Apache or PHP+Nginx configurations optimized for your use case
Automatic Scaling
Horizontal and vertical auto-scaling based on actual resource usage
PHP-FPM Optimization
Configurable FastCGI Process Manager for optimal performance
Composer Integration
Built-in Composer support for seamless dependency management
Supported Versions
Zerops supports multiple PHP versions:- PHP 8.3 (Latest)
- PHP 8.2
- PHP 8.1
- PHP 8.0
- PHP 7.4
You can change the major version at any time through the
zerops.yaml configuration.Web Server Options
PHP + Apache
Ideal for traditional PHP applications with .htaccess support:PHP + Nginx
Optimized for high-performance applications:Quick Example
Deploy a simple PHP application in minutes:Runtime Environment
The PHP runtime environment includes:- Alpine Linux (default) or Ubuntu
- Selected PHP version
- Composer for dependency management
- Git and wget utilities
- Zerops CLI tools
- Configurable PHP-FPM
PHP-FPM Configuration
Customize PHP-FPM process management:Dynamic Mode (Default)
OnDemand Mode
Optimal for lower traffic applications:PHP.ini Customization
Override PHP configuration through environment variables:Use Cases
Laravel Applications
Laravel Applications
Perfect for Laravel apps with optimized Composer workflows and PHP-FPM configurations.
WordPress Sites
WordPress Sites
Run WordPress with Apache for .htaccess support and automatic scaling.
Symfony Projects
Symfony Projects
Deploy Symfony applications with custom build processes and caching.
Custom PHP APIs
Custom PHP APIs
Build RESTful APIs with Nginx for maximum performance.
Common Configuration
Custom Document Root
Set a custom web server root:Custom Web Server Config
Provide custom Nginx or Apache configuration:Install System Packages
Add required dependencies:Next Steps
Quickstart Guide
Deploy your first PHP application
Example Projects
Explore PHP examples on GitHub