Cloud Service >> Knowledgebase >> Plesk >> Learn to switch PHP Versions and Settings using Plesk
submit query

Cut Hosting Costs! Submit Query Today!

Learn to switch PHP Versions and Settings using Plesk

Switching PHP versions and adjusting PHP settings in Plesk is an honest system. Here’s how you may do it:

1. Log in to Plesk:

  • Access your Plesk manage panel with your credentials.

  •  

2. Select the Domain:

  • From the Plesk dashboard, choose the area where you want to exchange the PHP version or settings.

3. Navigate to PHP Settings:

  • Once you’ve decided on the domain, click on the “PHP Settings” choice. This is generally determined below the "Websites & Domains" tab.

4. Change PHP Version:

  • In the PHP Settings page, you’ll see a drop-down menu labeled "PHP Support" or "PHP Version."

  • Select the preferred PHP version from the drop-down list. Plesk supports more than one PHP version, so you can choose the only that suits your utility or internet site needs.

  • After deciding on the model, scroll down and click “Apply” or “OK” to shop the changes.

5. Adjust PHP Settings:

  • Below the PHP model selection, you’ll locate various PHP settings that you can customize. These settings encompass:

  • memory_limit: Controls the maximum quantity of reminiscence a script is authorized to allocate.

  • upload_max_filesize: Defines the maximum size of uploaded files.

  • post_max_size: Sets the maximum size of put-up information allowed.

  • max_execution_time: Limits the amount of time a script is authorized to run.

  • Adjust those settings as wanted using getting into the preferred values.

6. Enable or Disable PHP Extensions:

  • Scroll further down to discover the segment for PHP extensions.

  • Here, you could enable or disable numerous PHP extensions by checking or unchecking the containers next to each extension.

7. Save Changes:

  • After making your changes, click on “Apply” or “OK” at the lowest of the page to store the modifications.

8. Verify the Changes:

  • To make certain that the changes have been applied efficiently, you may create a simple PHP script with the subsequent content material and upload it in your server:

  •  

  • php

  • Copy code

  •  
  • Access this script thru your browser (e.G., http://yourdomain.Com/phpinfo.Personal home page) to look the cutting-edge PHP model and settings.

9. Revert Changes if Necessary:

  • Suppose you come upon any troubles with the new PHP model or settings. In that case, you can easily revert to the previous version using following the identical steps and selecting the sooner PHP version.

  •  

Additional Tips:

  • Multiple PHP Versions: If your server supports multiple PHP versions for exceptional domains, you could manage them personally in step with domain or subdomain.

  • Custom PHP Configuration: For superior customers, Plesk allows custom PHP configuration documents (personal home page.Ini) to be used on a consistent with-area foundation.

By following those steps, you can transfer PHP versions and personalize PHP settings in Plesk to meet the particular desires of your websites or packages.

 

Cut Hosting Costs! Submit Query Today!

Grow With Us

Let’s talk about the future, and make it happen!