{"id":213,"date":"2025-03-28T11:42:28","date_gmt":"2025-03-28T09:42:28","guid":{"rendered":"https:\/\/www.24x7serverguard.com\/blog\/?p=213"},"modified":"2025-03-28T14:05:07","modified_gmt":"2025-03-28T12:05:07","slug":"how-to-upgrade-php-version-on-plesk-linux-server","status":"publish","type":"post","link":"https:\/\/www.24x7serverguard.com\/blog\/plesk\/how-to-upgrade-php-version-on-plesk-linux-server\/","title":{"rendered":"How to Upgrade PHP Version on Plesk (Linux Server)?"},"content":{"rendered":"\n<p>Upgrading <strong>PHP version<\/strong> on a <strong>Linux-based Plesk server<\/strong> is a simple process. Follow these steps to ensure a <strong>smooth PHP upgrade<\/strong>.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Step 1: Connect to Your Server<\/strong><\/p>\n\n\n\n<p>Log in to your <strong>Linux Plesk server<\/strong> via <strong>SSH<\/strong> as the root user.<\/p>\n\n\n\n<p><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">ssh root@your-server-ip<\/mark><\/p>\n\n\n\n<p><strong>Step 2: Navigate to the Source Directory<\/strong><\/p>\n\n\n\n<p>Switch to the <code>\/usr\/local\/src<\/code> directory:<\/p>\n\n\n\n<p><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">cd \/usr\/local\/src<strong><br><\/strong><\/mark><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 3: Install Atomic Repository (If Not Installed)<\/strong><\/h3>\n\n\n\n<p>Plesk uses <strong>Atomicorp<\/strong> repositories for PHP updates. Run the following command to install it:<\/p>\n\n\n\n<p><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">wget -q -O &#8211; http:\/\/www.atomicorp.com\/installers\/atomic.sh | sh<\/mark><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 4: Upgrade PHP Version<\/strong><\/h3>\n\n\n\n<p>Run the following command to upgrade PHP:<\/p>\n\n\n\n<p><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">yum upgrade php<\/mark><\/p>\n\n\n\n<p>\ud83d\udd39 This will update PHP to the latest version available in the repository.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 5: Restart Plesk Services<\/strong><\/h3>\n\n\n\n<p>After upgrading PHP, restart <strong>Plesk services<\/strong> to apply the changes:<\/p>\n\n\n\n<p><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">\/etc\/init.d\/psa stopall<br>\/etc\/init.d\/psa startall<\/mark><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 6: Verify PHP Version<\/strong><\/h3>\n\n\n\n<p>To confirm that the upgrade was successful, check the installed PHP version:<\/p>\n\n\n\n<p><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">php -v<\/mark><\/p>\n\n\n\n<p>\u2705 <strong>Example Output:<\/strong><\/p>\n\n\n\n<p><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">PHP 8.2.10 (cli) (built: Oct 20 2024 12:34:56)<br>Copyright (c) The PHP Group<br>Zend Engine v4.2.10<\/mark><\/p>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Final Check &amp; Testing:<\/strong><\/h3>\n\n\n\n<p>\u2714 Test your website functionality after the PHP upgrade.<br>\u2714 Update <strong>PHP extensions<\/strong> if needed.<br>\u2714 Modify <code>php.ini<\/code> settings for optimal performance.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Upgrading PHP version on a Linux-based Plesk server is a simple process. Follow these steps to ensure a smooth PHP upgrade. Step 1: Connect to Your Server Log in to your Linux Plesk server via SSH as the root user. ssh root@your-server-ip Step 2: Navigate to the Source Directory Switch to the \/usr\/local\/src directory: cd [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":217,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[127],"tags":[139,137,138,136],"class_list":["post-213","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-plesk","tag-change-php-version-in-plesk-panel","tag-how-to-update-php-on-plesk-server","tag-plesk-php-version-upgrade-command","tag-upgrade-php-version-in-plesk-linux"],"_links":{"self":[{"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/posts\/213","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/comments?post=213"}],"version-history":[{"count":1,"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/posts\/213\/revisions"}],"predecessor-version":[{"id":215,"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/posts\/213\/revisions\/215"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/media\/217"}],"wp:attachment":[{"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/media?parent=213"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/categories?post=213"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/tags?post=213"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}