{"id":2304,"date":"2025-07-16T09:19:35","date_gmt":"2025-07-16T09:19:35","guid":{"rendered":"https:\/\/hostrago.com\/knowledge-base\/?p=2304"},"modified":"2025-07-16T09:19:37","modified_gmt":"2025-07-16T09:19:37","slug":"how-to-enable-php-extensions-in-cpanel","status":"publish","type":"post","link":"https:\/\/hostrago.com\/knowledge-base\/how-to-enable-php-extensions-in-cpanel\/","title":{"rendered":"How to Enable PHP Extensions in cPanel? Complete Step-by-Step Guide"},"content":{"rendered":"\n<p>If you\u2019re running a website on a shared hosting server, chances are you\u2019ll need to <strong>Enable PHP Extensions<\/strong> at some point. Whether you&#8217;re developing a PHP-based application or optimizing a WordPress site, enabling the right PHP extensions in cPanel is crucial for enhancing functionality, security, and performance. In this guide, we\u2019ll walk you through the easy process to <strong>Enable PHP Extensions<\/strong> directly from your cPanel account with step-by-step screenshots for better understanding.<\/p>\n\n\n\n<p>At <strong>Hostrago<\/strong>, we offer fully managed hosting environments where you can effortlessly manage PHP versions and extensions. Want to know more about our services? Visit our <a href=\"https:\/\/hostrago.com\/\">Hosting Plans<\/a> to find a package tailored for you!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What Are PHP Extensions?<\/h2>\n\n\n\n<p><strong>PHP Extensions<\/strong> are libraries or modules that add specific features and functions to PHP. They enable your PHP scripts to interact with databases, handle image processing, perform encryption, and much more. Without the necessary PHP extensions enabled, certain applications or CMS platforms like <strong>WordPress, Magento, or Laravel<\/strong> may not function properly.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Some Commonly Used PHP Extensions:<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>cURL:<\/strong> For data transfer via various network protocols.<\/li>\n\n\n\n<li><strong>intl:<\/strong> For internationalization support.<\/li>\n\n\n\n<li><strong>mbstring:<\/strong> To handle multibyte strings.<\/li>\n\n\n\n<li><strong>pdo_mysql:<\/strong> For database interaction with MySQL using PDO.<\/li>\n\n\n\n<li><strong>soap:<\/strong> For SOAP-based web services.<\/li>\n\n\n\n<li><strong>imagick:<\/strong> For image manipulation.<\/li>\n<\/ul>\n\n\n\n<p>At Hostrago, we ensure you have easy access to enable or disable these extensions via cPanel.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why Enable PHP Extensions?<\/h2>\n\n\n\n<p>Enabling PHP extensions allows you to:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Improve application compatibility<\/li>\n\n\n\n<li>Enable advanced features like caching, encryption, and image processing<\/li>\n\n\n\n<li>Enhance website performance and security<\/li>\n\n\n\n<li>Avoid plugin or module errors in CMS platforms<\/li>\n\n\n\n<li>Comply with the technical requirements of specific frameworks or applications<\/li>\n<\/ul>\n\n\n\n<p>For instance, a WordPress site often requires extensions like <strong>mbstring<\/strong>, <strong>intl<\/strong>, <strong>pdo_mysql<\/strong>, and <strong>gd<\/strong> to function efficiently. If you\u2019re hosting your WordPress site with <strong>Hostrago<\/strong>, you can <a href=\"https:\/\/hostrago.com\/\" data-type=\"link\" data-id=\"https:\/\/hostrago.com\/\">explore our WordPress hosting plans<\/a> for better performance.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step-by-Step Guide to Enable PHP Extensions in cPanel<\/h2>\n\n\n\n<p>Follow these simple steps to enable PHP extensions in <a href=\"https:\/\/cpanel.net\/\" target=\"_blank\" rel=\"noopener\">cPanel<\/a>:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Log in to Your cPanel Account<\/h3>\n\n\n\n<p>First, log in to your <strong>cPanel<\/strong> account via your hosting provider&#8217;s client portal.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Navigate to &#8220;Select PHP Version&#8221;<\/h3>\n\n\n\n<p>In your cPanel dashboard, scroll to the <strong>Software<\/strong> section and click on:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"846\" src=\"https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/07\/Access-the-Select-PHP-Version-1024x846.webp\" loading=\"lazy\" alt=\"Access the \u201cSelect PHP Version\u201d\" class=\"wp-image-2302\" srcset=\"https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/07\/Access-the-Select-PHP-Version-1024x846.webp 1024w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/07\/Access-the-Select-PHP-Version-300x248.webp 300w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/07\/Access-the-Select-PHP-Version-768x634.webp 768w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/07\/Access-the-Select-PHP-Version-1536x1268.webp 1536w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/07\/Access-the-Select-PHP-Version-2048x1691.webp 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3: Choose Your PHP Version<\/h3>\n\n\n\n<p>At the top, you will see your <strong>Current PHP Version<\/strong>. Select the PHP version you are using or want to configure.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 4: Access PHP Extensions<\/h3>\n\n\n\n<p>Below the PHP version, you will see a long list of available PHP extensions, as shown in the screenshot below:<\/p>\n\n\n\n<p>All the extensions are listed alphabetically, and you can enable or disable them by simply checking or unchecking the box next to each one.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 5: Enable Required PHP Extensions<\/h3>\n\n\n\n<p>Tick the checkboxes for the extensions you need. For example:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>curl<\/strong> for data transfer features<\/li>\n\n\n\n<li><strong>intl<\/strong> for language support<\/li>\n\n\n\n<li><strong>mbstring<\/strong> for string operations<\/li>\n\n\n\n<li><strong>pdo_mysql<\/strong> to interact with MySQL databases<\/li>\n\n\n\n<li><strong>soap<\/strong> for web services<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"593\" src=\"https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/07\/Enable-Required-PHP-Extensions-1024x593.webp\" loading=\"lazy\" alt=\"Enable Required PHP Extensions\" class=\"wp-image-2306\" srcset=\"https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/07\/Enable-Required-PHP-Extensions-1024x593.webp 1024w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/07\/Enable-Required-PHP-Extensions-300x174.webp 300w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/07\/Enable-Required-PHP-Extensions-768x445.webp 768w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/07\/Enable-Required-PHP-Extensions-1536x890.webp 1536w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/07\/Enable-Required-PHP-Extensions.webp 1621w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Once selected, changes are saved automatically in most cPanel environments, but some may have a <strong>Save<\/strong> or <strong>Apply<\/strong> button.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 6: Verify the Changes<\/h3>\n\n\n\n<p>To confirm the extensions are enabled:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Create a phpinfo.php file with the following code: phpCopyEdit<code>&lt;?php phpinfo(); ?><\/code><\/li>\n\n\n\n<li>Upload it to your public_html directory.<\/li>\n\n\n\n<li>Visit yourdomain.com\/phpinfo.php to view the active extensions.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Common Issues Solved by Enabling PHP Extensions<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Plugin Installation Errors in WordPress<\/strong><\/li>\n\n\n\n<li><strong>Missing PHP Module Errors<\/strong><\/li>\n\n\n\n<li><strong>Framework Compatibility Issues<\/strong><\/li>\n\n\n\n<li><strong>Image Upload Failures<\/strong><\/li>\n\n\n\n<li><strong>Database Connection Errors<\/strong><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Final Thoughts<\/h2>\n\n\n\n<p>Understanding how to <strong>Enable PHP Extensions<\/strong> in cPanel is crucial for website owners, developers, and administrators who want to optimize their hosting environment. It\u2019s a simple yet powerful way to customize the PHP environment to meet the requirements of your applications.<\/p>\n\n\n\n<p>If you&#8217;re looking for a hosting service that offers flexibility, performance, and 24\/7 support, explore our hosting plans at <strong><a href=\"https:\/\/hostrago.com\/\">Hostrago<\/a><\/strong>.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you\u2019re running a website on a shared hosting server, chances are you\u2019ll need to Enable PHP Extensions at some point. Whether you&#8217;re developing a&#8230;<\/p>\n","protected":false},"author":1,"featured_media":2305,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[588,587,589,590,592,591],"class_list":["post-2304","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cpanel","tag-enable-curl-php","tag-enable-intl-php","tag-enable-php-extensions","tag-php-extensions-cpanel","tag-php-extensions-for-wordpress","tag-php-extensions-tutorial"],"menu_order":0,"_links":{"self":[{"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/2304","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/comments?post=2304"}],"version-history":[{"count":1,"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/2304\/revisions"}],"predecessor-version":[{"id":2307,"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/2304\/revisions\/2307"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/media\/2305"}],"wp:attachment":[{"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=2304"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/categories?post=2304"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/tags?post=2304"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}