? PHP Configuration in Plesk
PHP on Windows Hosting
Yes, PHP is fully supported on Windows hosting with Plesk! You can run PHP applications alongside ASP.NET applications.
PHP Version Management
- Navigate to Websites & Domains
- Click on PHP Settings
- Select PHP version from dropdown (5.6, 7.0, 7.1, 7.2, 7.3, 7.4, 8.0, 8.1, 8.2)
- Choose PHP handler (FastCGI recommended)
- Configure PHP parameters
- Click OK to apply
Common PHP Settings
Setting | Default | Recommended | Description |
---|---|---|---|
memory_limit | 128M | 256M | Maximum memory per script |
max_execution_time | 30 | 60 | Maximum execution time in seconds |
post_max_size | 8M | 64M | Maximum POST data size |
upload_max_filesize | 2M | 64M | Maximum file upload size |
max_input_vars | 1000 | 3000 | Maximum input variables |
PHP Extensions
Common PHP extensions available:
- mysqli - MySQL Improved
- pdo_mysql - PDO MySQL driver
- gd - Image processing
- curl - URL handling
- mbstring - Multibyte string
- zip - ZIP archive
- openssl - Encryption
- soap - SOAP protocol
- xmlrpc - XML-RPC protocol
Custom php.ini Settings
Create a custom php.ini file in your document root:
; Custom PHP Settings
display_errors = Off
error_reporting = E_ALL & ~E_NOTICE
date.timezone = "America/New_York"
session.gc_maxlifetime = 1440
session.cookie_httponly = 1
session.use_only_cookies = 1
PHP Error Logging
- Enable error logging in PHP Settings
- Set error_log path to /logs/php_errors.log
- Access logs via File Manager or FTP
- Monitor for debugging