Were you able to
find a solution today?

5 seconds No email needed

Thanks-that genuinely
helps.

Want us to follow up with an answer or a custom quote? Drop your email below. Totally optional.

Email saved - thank you!

How To Change The PHP Version On A Plesk Server?

This tutorial provides instructions about finding the right PHP version that the Plesk server is using and the information for changing to a different PHP version.

For a server like Plesk, applications like PHP must be managed through the Plesk interface. Use the instructions given in this tutorial to update PHP and switch to a different version of PHP.

Log in to Plesk.

Step 1: You can log in to Plesk. How do I log in to the Plesk panel?

Step 2: Click on Websites and Domains from the left-hand sidebar.

Step 3: Click on the PHP Icon.

Step 4: Select the appropriate version of PHP from the PHP Support drop-down menu.

Step 5: Click on the Apply button to save the settings.

You've successfully updated your PHP version on Plesk.

Verifying the PHP version

Step 1: To verify the PHP version your site is using, create a file named phpinfo.php and add the following code to the file.


<?php

phpinfo();

?>


Step 2: Upload a file to your hosting account.

Step 3: Access http://www.example.com/phpinfo.php and verify the PHP version.

Important Note: Replace the domain name www.example.com with your real domain name.


To confirm the successful modification, visit your website and check for any issues or errors. If everything functions as expected, congratulations!

By following these steps, you can easily change the PHP version of your website from the Plesk control panel.

Conclusion

In this article, we have seen how to change the PHP version from the Plesk panel. In case the PHP version you want is not listed in the drop-down menu, you can install it by having admin access to the Plesk panel, if you have a VPS plan.

Was this answer helpful? 0 Users Found This Useful (0 Votes)