How to manage PHP versions and extensions in Plesk.

How to Manage PHP Versions and Extensions in Plesk

Modern websites often need specific PHP versions or extensions to function properly. With Plesk, you can easily choose which PHP version your site uses, and enable or disable the extensions you need—no command-line skills required!


1. Changing the PHP Version for a Domain

  1. Log into your Plesk control panel.
  2. Go to “Websites & Domains”.
    • Find the domain you want to manage.
  3. Click on “Hosting & DNS” (if needed), then select “Hosting Settings” (or sometimes just “PHP Settings” depending on your Plesk version).
  4. Under the “Web scripting and statistics” section, look for the PHP support option.
  5. Choose your preferred PHP version from the dropdown list.
    • Plesk usually offers several versions, such as PHP 7.4, 8.0, 8.1, etc.
  6. Click OK or Apply to save your changes.

The new PHP version is now active for that domain. If you have multiple sites, repeat for each one as needed.


2. Managing PHP Extensions

PHP extensions add extra functionality—like database drivers or image processing. Here’s how to enable or disable them:

  1. Go to “Websites & Domains” and select your domain.
  2. Click “PHP Settings” (or “Hosting Settings” and then scroll to PHP settings).
  3. Scroll down to the “Common settings” or “Extensions” section.
    • You’ll see checkboxes or toggles for various extensions (like mbstring, gd, curl, etc.).
  4. Check or uncheck the boxes for the extensions you want to enable or disable.
  5. Click OK or Apply to save your changes.

Changes usually take effect immediately, but occasionally a quick reload of your site or cache may be needed.


3. For Advanced Users: PHP Configuration

If you need to tweak specific PHP directives (like memory_limit, upload_max_filesize, or max_execution_time):

  1. In the PHP Settings screen, scroll to the relevant directive.
  2. Adjust the values as needed.
  3. Click OK or Apply.

4. Global PHP Management (for Admins/Resellers)

If you’re a server admin, you can manage all installed PHP versions and available extensions:

  1. Go to “Tools & Settings” in the main menu.
  2. Under “General Settings”, look for “PHP Settings”.
  3. Here, you can:
    • See which PHP versions are installed.
    • Add or remove PHP versions.
    • Manage which extensions are available server-wide.

Tips & Best Practices

  • Compatibility: Always check with your CMS or web application to ensure compatibility before changing PHP versions.
  • Security: Use the latest stable PHP version supported by your site for better security and performance.
  • Troubleshooting: If your site breaks after a change, try switching back to the previous PHP version or re-enabling needed extensions.

In summary:
Plesk makes it easy to tailor your PHP environment for each site. Just a few clicks in the control panel, and you can switch PHP versions, enable the extensions you need, and tweak important settings—all without the hassle of command-line work.

Hot this week

How to Start a Web Hosting Business in Africa (With $5/Month)

Africa’s digital economy is expanding at an extraordinary pace....

How to Create Unlimited Business Emails for Your Company

In today’s digital economy, credibility begins with communication. Whether...

Africa’s Fastest Web Hosting: Why Tremhost Outperforms Global Competitors

Speed is no longer a technical detail hidden behind...

Best Web Hosting in Africa (2026 Complete Comparison Guide)

Africa’s digital transformation is no longer a future prediction...

Best Web Hosting in Africa (2026 Complete Comparison Guide)

The African digital economy is growing faster than ever....

Topics

How to Start a Web Hosting Business in Africa (With $5/Month)

Africa’s digital economy is expanding at an extraordinary pace....

How to Create Unlimited Business Emails for Your Company

In today’s digital economy, credibility begins with communication. Whether...

Africa’s Fastest Web Hosting: Why Tremhost Outperforms Global Competitors

Speed is no longer a technical detail hidden behind...

Best Web Hosting in Africa (2026 Complete Comparison Guide)

Africa’s digital transformation is no longer a future prediction...

Best Web Hosting in Africa (2026 Complete Comparison Guide)

The African digital economy is growing faster than ever....

What Happens Behind the Scenes During a Hosting Failover Event

From the outside, a hosting failover can look deceptively...

How CDNs Reduce Infrastructure Risk, Not Just Speed Up Content

For many years, Content Delivery Networks were viewed as...

Why “Good Enough” Hosting Eventually Fails Growing Companies

When companies are small, “good enough” hosting feels like...
spot_img

Related Articles

Popular Categories

spot_imgspot_img