View Categories

🔹 PHP Version & Settings

1 min read

🔹 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:

  1. Log in to Plesk → Websites & Domains

  2. Click PHP Settings

  3. Select the desired PHP version from the dropdown

  4. 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:

  1. Log in to Plesk → PHP Selector

  2. Select domain

  3. Choose PHP version and execution mode (e.g., CGI, FastCGI)

  4. 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:

  1. Go to PHP Selector → Extensions

  2. Tick required extensions (e.g., GD, cURL, ZIP, mbstring)

  3. 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

#

Powered by BetterDocs