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