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

The Future of Education in 2025: How to Navigate the World of Online Learning and Micro-Credentials

If you think “back to school” means sitting in...

The Future of Healthcare in 2025: How Telemedicine and Wearable Tech Will Revolutionize Your Health

Healthcare in 2025 isn’t just about doctor visits and...

How to Master the Art of Negotiation in 2025: Strategies for Getting What You Want

In the hyper-connected, AI-augmented world of 2025, negotiation isn’t...

How to Master the Art of Persuasion in 2025: Techniques for Influencing Others

In 2025, where conversations unfold in virtual meeting rooms,...

The 10 Best Smart Gadgets for 2025: How to Enhance Your Life with Cutting-Edge Technology

Technology in 2025 doesn’t just sit in your pocket—it’s...

Topics

How to Master the Art of Negotiation in 2025: Strategies for Getting What You Want

In the hyper-connected, AI-augmented world of 2025, negotiation isn’t...

How to Master the Art of Persuasion in 2025: Techniques for Influencing Others

In 2025, where conversations unfold in virtual meeting rooms,...

The 10 Best Smart Gadgets for 2025: How to Enhance Your Life with Cutting-Edge Technology

Technology in 2025 doesn’t just sit in your pocket—it’s...

The 10 Best Side Hustles for 2025: How to Make Extra Money in the Gig Economy

Let’s face it: in 2025, the gig economy isn’t...

The Ultimate Guide to Longevity in 2025: How to Live a Longer, Healthier Life

If you’ve ever wished for more time—more years to...
spot_img

Related Articles

Popular Categories

spot_imgspot_img