? 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

  1. Navigate to Websites & Domains
  2. Click on PHP Settings
  3. Select PHP version from dropdown (5.6, 7.0, 7.1, 7.2, 7.3, 7.4, 8.0, 8.1, 8.2)
  4. Choose PHP handler (FastCGI recommended)
  5. Configure PHP parameters
  6. 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

  1. Enable error logging in PHP Settings
  2. Set error_log path to /logs/php_errors.log
  3. Access logs via File Manager or FTP
  4. Monitor for debugging
?האם התשובה שקיבלתם הייתה מועילה 0 משתמשים שמצאו מאמר זה מועיל (0 הצבעות)