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 Ethical Dilemma of AI Companions: Love, Loneliness, and the Future of Relationships

As artificial intelligence technology advances, the emergence of AI...

Reality TV Gone Wrong: The Dark Side of Fame and Mental Health

Reality television has become a staple of modern entertainment,...

The Rise of Digital Parenting: How Influencers Are Shaping Modern Family Dynamics

In recent years, social media influencers have emerged as...

The Influencer’s Hidden Family: A Case Study in Digital Reckoning

This report examines the fictional 2024 case of a...

The Celebrity Surrogate Scandal: A Dark Side of Fame

In 2025, a major pop star found herself at...

Topics

The Ethical Dilemma of AI Companions: Love, Loneliness, and the Future of Relationships

As artificial intelligence technology advances, the emergence of AI...

Reality TV Gone Wrong: The Dark Side of Fame and Mental Health

Reality television has become a staple of modern entertainment,...

The Rise of Digital Parenting: How Influencers Are Shaping Modern Family Dynamics

In recent years, social media influencers have emerged as...

The Influencer’s Hidden Family: A Case Study in Digital Reckoning

This report examines the fictional 2024 case of a...

The Celebrity Surrogate Scandal: A Dark Side of Fame

In 2025, a major pop star found herself at...

The Virtual Reality Nightmare: A Gamer’s Tragic Encounter with Reality

The Incident The incident occurred during a highly immersive VR...

The Eco-Activist’s Dark Side: A Tragic Tale of Deception

In a shocking turn of events, the story of...
spot_img

Related Articles

Popular Categories

spot_imgspot_img