🔹 PHP Version & Settings #
PHP is the programming language behind most websites, including WordPress. Managing the correct PHP version and extensions ensures your website runs fast and securely.
1️⃣ Changing PHP Version #
Different websites may require different PHP versions. Using an outdated version can cause errors or security issues.
Steps in Plesk:
-
Log in to Plesk → Websites & Domains
-
Click PHP Settings
-
Select the desired PHP version from the dropdown
-
Click Apply
📌 Always test your website after changing PHP versions.
2️⃣ Using CloudLinux PHP Selector #
CloudLinux allows you to choose PHP versions per domain without affecting other accounts on the server.
Benefits:
-
Multiple PHP versions available simultaneously
-
Isolated environment for each domain
-
Improve compatibility with older scripts or plugins
Steps:
-
Log in to Plesk → PHP Selector
-
Select domain
-
Choose PHP version and execution mode (e.g., CGI, FastCGI)
-
Save changes
📌 FastCGI mode is recommended for WordPress and performance optimization.
3️⃣ Enabling PHP Extensions #
Some scripts or plugins require additional PHP extensions (e.g., GD, cURL, mbstring).
Steps in Plesk / CloudLinux:
-
Go to PHP Selector → Extensions
-
Tick required extensions (e.g., GD, cURL, ZIP, mbstring)
-
Save changes
📌 Only enable necessary extensions to reduce security risks.
🔐 Tips for PHP Management #
-
Use the latest stable PHP version for security
-
Test plugins/themes after PHP version change
-
Disable unused PHP extensions
-
For critical sites, back up before making changes