Supported PHP Versions
Webinoly supports the following PHP versions:PHP 7.4
Legacy support
PHP 8.0
Active support
PHP 8.1
Active support
PHP 8.2
Active support
PHP 8.3
Active support
PHP 8.4
Default - Latest stable
PHP 8.5
Development/Preview
PHP 8.4 is set as the default version. PHP 8.5 is supported for testing and development.
Installing PHP
Default Installation
Install PHP with the default version (8.4):Specific Version Installation
Set a specific PHP version before installation:If NGINX is not installed, Webinoly will prompt you to install it along with PHP.
Installed PHP Extensions
Webinoly automatically installs comprehensive PHP extensions:Core Extensions
- php-common - Common files for PHP
- php-cli - Command-line interpreter
- php-fpm - FastCGI Process Manager
- php-opcache - Zend OPcache (PHP 5.6-8.4)
Starting with PHP 8.5, OPcache is bundled in core and cannot be installed separately.
Database Extensions
- php-mysql - MySQL/MariaDB database support
Essential Extensions
- Web & Network
- Image Processing
- Data Handling
- Performance
- Utilities
- php-curl - cURL support for HTTP requests
- php-imap - IMAP email protocol support
- php-soap - SOAP web services support
Switching PHP Versions
Webinoly makes it easy to switch between PHP versions:Switch to New Version
- Back up your current configuration
- Remove the old PHP version
- Install the new PHP version
- Restore your configuration
- Reinstall associated tools
PHP-FPM Configuration
Main Configuration File
PHP configuration is located at:Key PHP Settings
Webinoly optimizes PHP with the following settings:Pool Configuration
PHP-FPM pool settings:Webinoly automatically calculates optimal process manager values based on your server’s available RAM.
PHP Optimization
Webinoly applies several optimizations during installation:Memory Management
- Memory limits automatically adjusted based on upload size
- OPcache sized according to available RAM
- Process pool optimized for concurrent requests
Security Hardening
Session Security
Sessions are secured with:
- Strict mode enabled
- HTTP-only cookies
- Secure cookie flag
- SameSite cookie policy
Performance Tuning
- Execution Time
- Memory Limit
- Upload Size
- Input Variables
Control script execution timeout:
Managing PHP-FPM
Service Control
Monitoring PHP-FPM
CLI Usage
PHP Command Line
Advanced Configuration
Custom PHP.ini Settings
Modify PHP settings directly:Disable Functions
For enhanced security:OPcache Settings
Session Configuration
Version-Specific Features
PHP 8.4 Features
- Property hooks
- Asymmetric visibility
- Array find functions
- PDO driver-specific SQL parsers
- OPcache now bundled in core
PHP 8.3 Features
- Typed class constants
- Dynamic class constant fetch
json_validate()functionRandomextension improvements
PHP 8.2 Features
- Readonly classes
- Disjunctive Normal Form (DNF) types
true,false,nullas standalone types- Deprecate dynamic properties
Removing PHP
Complete Removal
Troubleshooting
PHP-FPM won't start
PHP-FPM won't start
Check configuration and socket:
Memory limit errors
Memory limit errors
Increase PHP memory:
Upload size errors
Upload size errors
Check both NGINX and PHP limits:
Version switch failed
Version switch failed
Manually complete the process:
Best Practices
Use Latest Stable
Keep PHP updated to receive security patches and performance improvements
Monitor Performance
Regularly check PHP-FPM status and adjust pool settings as needed
Optimize OPcache
Disable timestamp validation in production for maximum performance
Secure Configuration
Disable dangerous functions and enable security features
Next Steps
Install Additional Tools
Add Redis, Memcached, and more
Configure Database
Setup MySQL or MariaDB
WordPress Setup
Create WordPress sites with optimized PHP
Performance Tuning
Advanced PHP optimization techniques