{"id":28188,"date":"2025-07-01T15:42:31","date_gmt":"2025-07-01T13:42:31","guid":{"rendered":"https:\/\/tremhost.com\/blog\/?p=28188"},"modified":"2025-07-01T15:43:22","modified_gmt":"2025-07-01T13:43:22","slug":"how-to-manage-php-versions-and-extensions-in-plesk","status":"publish","type":"post","link":"https:\/\/tremhost.com\/blog\/how-to-manage-php-versions-and-extensions-in-plesk\/","title":{"rendered":"How to manage PHP versions and extensions in Plesk."},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><h2>How to Manage PHP Versions and Extensions in Plesk<\/h2>\n<p>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\u2014no command-line skills required!<\/p>\n<hr \/>\n<h3><strong>1. Changing the PHP Version for a Domain<\/strong><\/h3>\n<ol>\n<li><strong>Log into your Plesk control panel.<\/strong><\/li>\n<li><strong>Go to \u201cWebsites &amp; Domains\u201d.<\/strong>\n<ul>\n<li>Find the domain you want to manage.<\/li>\n<\/ul>\n<\/li>\n<li>Click on <strong>\u201cHosting &amp; DNS\u201d<\/strong> (if needed), then select <strong>\u201cHosting Settings\u201d<\/strong> (or sometimes just \u201cPHP Settings\u201d depending on your Plesk version).<\/li>\n<li>Under the <strong>\u201cWeb scripting and statistics\u201d<\/strong> section, look for the <strong>PHP support<\/strong> option.<\/li>\n<li><strong>Choose your preferred PHP version<\/strong> from the dropdown list.\n<ul>\n<li>Plesk usually offers several versions, such as PHP 7.4, 8.0, 8.1, etc.<\/li>\n<\/ul>\n<\/li>\n<li>Click <strong>OK<\/strong> or <strong>Apply<\/strong> to save your changes.<\/li>\n<\/ol>\n<p><em>The new PHP version is now active for that domain. If you have multiple sites, repeat for each one as needed.<\/em><\/p>\n<hr \/>\n<h3><strong>2. Managing PHP Extensions<\/strong><\/h3>\n<p>PHP extensions add extra functionality\u2014like database drivers or image processing. Here\u2019s how to enable or disable them:<\/p>\n<ol>\n<li><strong>Go to \u201cWebsites &amp; Domains\u201d<\/strong> and select your domain.<\/li>\n<li>Click <strong>\u201cPHP Settings\u201d<\/strong> (or \u201cHosting Settings\u201d and then scroll to PHP settings).<\/li>\n<li>Scroll down to the <strong>\u201cCommon settings\u201d<\/strong> or <strong>\u201cExtensions\u201d<\/strong> section.\n<ul>\n<li>You\u2019ll see checkboxes or toggles for various extensions (like <code>mbstring<\/code>, <code>gd<\/code>, <code>curl<\/code>, etc.).<\/li>\n<\/ul>\n<\/li>\n<li><strong>Check or uncheck<\/strong> the boxes for the extensions you want to enable or disable.<\/li>\n<li>Click <strong>OK<\/strong> or <strong>Apply<\/strong> to save your changes.<\/li>\n<\/ol>\n<p><em>Changes usually take effect immediately, but occasionally a quick reload of your site or cache may be needed.<\/em><\/p>\n<hr \/>\n<h3><strong>3. For Advanced Users: PHP Configuration<\/strong><\/h3>\n<p>If you need to tweak specific PHP directives (like <code>memory_limit<\/code>, <code>upload_max_filesize<\/code>, or <code>max_execution_time<\/code>):<\/p>\n<ol>\n<li>In the <strong>PHP Settings<\/strong> screen, scroll to the relevant directive.<\/li>\n<li>Adjust the values as needed.<\/li>\n<li>Click <strong>OK<\/strong> or <strong>Apply<\/strong>.<\/li>\n<\/ol>\n<hr \/>\n<h3><strong>4. Global PHP Management (for Admins\/Resellers)<\/strong><\/h3>\n<p>If you\u2019re a server admin, you can manage all installed PHP versions and available extensions:<\/p>\n<ol>\n<li><strong>Go to \u201cTools &amp; Settings\u201d<\/strong> in the main menu.<\/li>\n<li>Under <strong>\u201cGeneral Settings\u201d<\/strong>, look for <strong>\u201cPHP Settings\u201d<\/strong>.<\/li>\n<li>Here, you can:\n<ul>\n<li>See which PHP versions are installed.<\/li>\n<li>Add or remove PHP versions.<\/li>\n<li>Manage which extensions are available server-wide.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<hr \/>\n<h3><strong>Tips &amp; Best Practices<\/strong><\/h3>\n<ul>\n<li><strong>Compatibility:<\/strong> Always check with your CMS or web application to ensure compatibility before changing PHP versions.<\/li>\n<li><strong>Security:<\/strong> Use the latest stable PHP version supported by your site for better security and performance.<\/li>\n<li><strong>Troubleshooting:<\/strong> If your site breaks after a change, try switching back to the previous PHP version or re-enabling needed extensions.<\/li>\n<\/ul>\n<hr \/>\n<p><strong>In summary:<\/strong><br \/>\nPlesk 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\u2014all without the hassle of command-line work.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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\u2014no command-line skills required! 1. Changing the PHP Version for a Domain Log into your [&hellip;]<\/p>\n","protected":false},"author":226,"featured_media":28189,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"tdm_status":"","tdm_grid_status":"","footnotes":""},"categories":[49],"tags":[],"class_list":{"0":"post-28188","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-tips"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/tremhost.com\/blog\/wp-json\/wp\/v2\/posts\/28188","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tremhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tremhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tremhost.com\/blog\/wp-json\/wp\/v2\/users\/226"}],"replies":[{"embeddable":true,"href":"https:\/\/tremhost.com\/blog\/wp-json\/wp\/v2\/comments?post=28188"}],"version-history":[{"count":2,"href":"https:\/\/tremhost.com\/blog\/wp-json\/wp\/v2\/posts\/28188\/revisions"}],"predecessor-version":[{"id":28191,"href":"https:\/\/tremhost.com\/blog\/wp-json\/wp\/v2\/posts\/28188\/revisions\/28191"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tremhost.com\/blog\/wp-json\/wp\/v2\/media\/28189"}],"wp:attachment":[{"href":"https:\/\/tremhost.com\/blog\/wp-json\/wp\/v2\/media?parent=28188"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tremhost.com\/blog\/wp-json\/wp\/v2\/categories?post=28188"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tremhost.com\/blog\/wp-json\/wp\/v2\/tags?post=28188"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}