{"id":163,"date":"2026-05-28T23:14:53","date_gmt":"2026-05-29T06:14:53","guid":{"rendered":"https:\/\/hostandtech.com\/kb\/whm\/how-to-configure-php-settings-whm-easyapache\/"},"modified":"2026-05-28T23:14:53","modified_gmt":"2026-05-29T06:14:53","slug":"how-to-configure-php-settings-whm-easyapache","status":"publish","type":"post","link":"https:\/\/hostandtech.com\/kb\/whm\/how-to-configure-php-settings-whm-easyapache\/","title":{"rendered":"How to Configure PHP Settings in WHM Using EasyApache 4"},"content":{"rendered":"<h2>Overview<\/h2>\n<p>WHM PHP configuration is something you&#8217;ll touch constantly as a server admin \u2014 whether you&#8217;re pushing a client from PHP 7.4 to 8.2, bumping up <code class=\"\" data-line=\"\">upload_max_filesize<\/code> for a WooCommerce store, or enabling the <code class=\"\" data-line=\"\">intl<\/code> extension for a Laravel app. Getting it wrong can break sites instantly, so it&#8217;s worth understanding how WHM handles PHP before you start clicking.<\/p>\n<p>WHM uses <strong>EasyApache 4<\/strong> (EA4) as its PHP and web server configuration tool. EA4 replaced the old EasyApache 3 pipeline back in 2016, and if you&#8217;re still on EA3, you&#8217;re running something that&#8217;s been end-of-life for years. EA4 lets you install multiple PHP versions side by side and assign them per account or per directory \u2014 which is genuinely useful when you&#8217;re managing a mix of legacy and modern applications on the same server.<\/p>\n<p>This article covers the full WHM PHP configuration workflow: installing PHP versions via EasyApache, assigning them to accounts, adjusting PHP directives, and enabling extensions. It applies to WHM 110+ running EasyApache 4 on CloudLinux or standard CentOS\/AlmaLinux setups.<\/p>\n<h2>Prerequisites<\/h2>\n<ul>\n<li>Root or reseller access to WHM (resellers have limited PHP controls \u2014 see the <a href=\"https:\/\/www.hostandtech.com\/reseller-hosting\/\">Reseller Hosting<\/a> page for capability differences between plans)<\/li>\n<li>EasyApache 4 installed on the server (standard on all modern cPanel\/WHM installs)<\/li>\n<li>WHM version 110 or later recommended<\/li>\n<li>SSH access is optional but useful for verifying changes \u2014 not required for the steps below<\/li>\n<li>A clear list of which PHP version(s) your hosted sites actually need before you start<\/li>\n<\/ul>\n<h2>Step-by-Step Instructions<\/h2>\n<h3>Step 1: Install PHP Versions via EasyApache 4<\/h3>\n<p>Before you can assign a PHP version to any account, it has to be installed on the server. WHM doesn&#8217;t install all PHP versions by default.<\/p>\n<ol>\n<li>Log in to WHM as root.<\/li>\n<li>In the left sidebar search box, type <strong>EasyApache 4<\/strong> and click it under the <em>Software<\/em> section.<\/li>\n<li>You&#8217;ll land on the EasyApache 4 dashboard. Click <strong>Customize<\/strong> next to the <em>Currently Installed Packages<\/em> profile.<\/li>\n<li>Click the <strong>PHP Versions<\/strong> tab at the top of the package list.<\/li>\n<li>Toggle on any PHP version you need \u2014 for example, <strong>ea-php82<\/strong> for PHP 8.2 or <strong>ea-php81<\/strong> for PHP 8.1. You can install multiple versions simultaneously.<\/li>\n<li>Click <strong>Review<\/strong>, then <strong>Provision<\/strong>. The build process runs in the background and usually takes 2\u20135 minutes.<\/li>\n<\/ol>\n<p>\ud83d\udcdd Note: EA4 package names follow the pattern <code class=\"\" data-line=\"\">ea-phpXX<\/code> where XX is the major\/minor version without the dot. PHP 8.2 = <code class=\"\" data-line=\"\">ea-php82<\/code>, PHP 7.4 = <code class=\"\" data-line=\"\">ea-php74<\/code>.<\/p>\n<p>You can also install PHP versions directly via the command line if you prefer:<\/p>\n<div class=\"ht-code-snippet\"><button class=\"ht-code-snippet__copy\" type=\"button\" aria-label=\"Copy code\"><\/button><span class=\"ht-code-snippet__feedback\">Copied to clipboard<\/span><\/p>\n<pre class=\"ht-code-snippet__code\" id=\"code-block-1\"><code class=\"\" data-line=\"\">yum install ea-php82 ea-php82-php-cli ea-php82-php-fpm ea-php82-php-mysqlnd ea-php82-php-opcache<\/code><\/pre>\n<\/div>\n<p>\u26a0 Warning: Don&#8217;t remove a PHP version that&#8217;s currently assigned to live accounts. WHM won&#8217;t always warn you before it breaks those sites.<\/p>\n<h3>Step 2: Assign PHP Versions to Accounts Using MultiPHP Manager<\/h3>\n<p>Once your PHP versions are installed, use <strong>MultiPHP Manager<\/strong> to assign them per account or per domain.<\/p>\n<ol>\n<li>In WHM, search for <strong>MultiPHP Manager<\/strong> and open it (under the <em>Software<\/em> section).<\/li>\n<li>You&#8217;ll see a list of all cPanel accounts on the server with their current PHP version shown.<\/li>\n<li>Check the box next to one or more accounts you want to update.<\/li>\n<li>In the <strong>PHP Version<\/strong> dropdown at the top, select the target version (e.g., <em>ea-php82<\/em>).<\/li>\n<li>Click <strong>Apply<\/strong>.<\/li>\n<\/ol>\n<p>\ud83d\udcdd Note: Account-level PHP version assignments in MultiPHP Manager set the version for the account&#8217;s primary domain. Individual cPanel users can override this per directory via a <code class=\"\" data-line=\"\">.htaccess<\/code> rule or their own MultiPHP Manager interface \u2014 assuming you&#8217;ve allowed it in MultiPHP INI Editor settings.<\/p>\n<h3>Step 3: Configure PHP Directives via MultiPHP INI Editor<\/h3>\n<p>This is where you adjust the actual PHP settings \u2014 memory limits, file upload sizes, execution time, error reporting, and so on.<\/p>\n<ol>\n<li>In WHM, search for <strong>MultiPHP INI Editor<\/strong> and open it.<\/li>\n<li>At the top, select the PHP version you want to edit from the dropdown (e.g., <em>php 8.2<\/em>). These settings apply globally to that PHP version across all accounts using it, unless overridden at the account level.<\/li>\n<li>You&#8217;ll see two tabs: <strong>Basic Mode<\/strong> and <strong>Editor Mode<\/strong>.\n<ul>\n<li><strong>Basic Mode<\/strong> shows a small set of the most commonly changed directives with a simple UI. Good for non-technical adjustments.<\/li>\n<li><strong>Editor Mode<\/strong> exposes the full <code class=\"\" data-line=\"\">php.ini<\/code> as a text editor. Use this for anything not listed in Basic Mode.<\/li>\n<\/ul>\n<\/li>\n<li>Make your changes and click <strong>Save<\/strong>.<\/li>\n<\/ol>\n<p>Common directives and recommended values for a typical WordPress or WooCommerce hosting environment:<\/p>\n<div class=\"ht-code-snippet\"><button class=\"ht-code-snippet__copy\" type=\"button\" aria-label=\"Copy code\"><\/button><span class=\"ht-code-snippet__feedback\">Copied to clipboard<\/span><\/p>\n<pre class=\"ht-code-snippet__code\" id=\"code-block-2\"><code class=\"\" data-line=\"\">memory_limit = 256M\nmax_execution_time = 120\nmax_input_time = 120\nupload_max_filesize = 64M\npost_max_size = 64M\nmax_input_vars = 3000\ndisplay_errors = Off\nlog_errors = On<\/code><\/pre>\n<\/div>\n<p>\u26a0 Warning: Setting <code class=\"\" data-line=\"\">memory_limit<\/code> too high on a shared or VPS environment can allow a single account to starve other sites of RAM. On our VPS plans, I&#8217;d recommend setting a reasonable ceiling per PHP version and using CloudLinux LVE limits as a secondary guardrail if available.<\/p>\n<h3>Step 4: Enable or Disable PHP Extensions<\/h3>\n<p>Some applications require specific PHP extensions that aren&#8217;t enabled by default \u2014 <code class=\"\" data-line=\"\">intl<\/code>, <code class=\"\" data-line=\"\">imagick<\/code>, <code class=\"\" data-line=\"\">soap<\/code>, or <code class=\"\" data-line=\"\">redis<\/code> are common ones.<\/p>\n<ol>\n<li>Go back to <strong>EasyApache 4<\/strong> in WHM and click <strong>Customize<\/strong>.<\/li>\n<li>Click the <strong>PHP Extensions<\/strong> tab.<\/li>\n<li>Use the search box to find the extension you need. Extensions are prefixed by PHP version \u2014 for example, <code class=\"\" data-line=\"\">ea-php82-php-intl<\/code>.<\/li>\n<li>Toggle the extension on and click <strong>Review<\/strong>, then <strong>Provision<\/strong>.<\/li>\n<\/ol>\n<p>Alternatively, from the command line:<\/p>\n<div class=\"ht-code-snippet\"><button class=\"ht-code-snippet__copy\" type=\"button\" aria-label=\"Copy code\"><\/button><span class=\"ht-code-snippet__feedback\">Copied to clipboard<\/span><\/p>\n<pre class=\"ht-code-snippet__code\" id=\"code-block-3\"><code class=\"\" data-line=\"\"># Install the intl extension for PHP 8.2\nyum install ea-php82-php-intl\n\n# Verify it loaded\n\/opt\/cpanel\/ea-php82\/root\/usr\/bin\/php -m | grep intl<\/code><\/pre>\n<\/div>\n<p>\ud83d\udcdd Note: After installing an extension via CLI, you may need to restart PHP-FPM for the change to take effect on accounts using FPM mode:<\/p>\n<div class=\"ht-code-snippet\"><button class=\"ht-code-snippet__copy\" type=\"button\" aria-label=\"Copy code\"><\/button><span class=\"ht-code-snippet__feedback\">Copied to clipboard<\/span><\/p>\n<pre class=\"ht-code-snippet__code\" id=\"code-block-4\"><code class=\"\" data-line=\"\">systemctl restart ea-php82-php-fpm<\/code><\/pre>\n<\/div>\n<h3>Step 5: Verify the PHP Configuration<\/h3>\n<p>Always verify your changes actually landed. The fastest way is a quick CLI check:<\/p>\n<div class=\"ht-code-snippet\"><button class=\"ht-code-snippet__copy\" type=\"button\" aria-label=\"Copy code\"><\/button><span class=\"ht-code-snippet__feedback\">Copied to clipboard<\/span><\/p>\n<pre class=\"ht-code-snippet__code\" id=\"code-block-5\"><code class=\"\" data-line=\"\"># Check active php.ini values for PHP 8.2\n\/opt\/cpanel\/ea-php82\/root\/usr\/bin\/php -i | grep -E &quot;memory_limit|upload_max|post_max|max_execution&quot;<\/code><\/pre>\n<\/div>\n<p>If you want to verify from the browser side, create a temporary <code class=\"\" data-line=\"\">phpinfo<\/code> file in a test account&#8217;s public directory:<\/p>\n<div class=\"ht-code-snippet\"><button class=\"ht-code-snippet__copy\" type=\"button\" aria-label=\"Copy code\"><\/button><span class=\"ht-code-snippet__feedback\">Copied to clipboard<\/span><\/p>\n<pre class=\"ht-code-snippet__code\" id=\"code-block-6\"><code class=\"\" data-line=\"\">&lt;?php phpinfo(); ?&gt;<\/code><\/pre>\n<\/div>\n<p>\u26a0 Warning: Delete this file immediately after checking. A publicly accessible <code class=\"\" data-line=\"\">phpinfo()<\/code> output exposes server path information, loaded modules, and environment variables \u2014 all useful to an attacker.<\/p>\n<h2>Common Issues &amp; Troubleshooting<\/h2>\n<h3>PHP version shows correctly in WHM but sites still run the old version<\/h3>\n<p>This usually means the site is overriding the version via a <code class=\"\" data-line=\"\">.htaccess<\/code> file or a local <code class=\"\" data-line=\"\">php.ini<\/code> \/ <code class=\"\" data-line=\"\">.user.ini<\/code> in the document root. Check for these:<\/p>\n<div class=\"ht-code-snippet\"><button class=\"ht-code-snippet__copy\" type=\"button\" aria-label=\"Copy code\"><\/button><span class=\"ht-code-snippet__feedback\">Copied to clipboard<\/span><\/p>\n<pre class=\"ht-code-snippet__code\" id=\"code-block-7\"><code class=\"\" data-line=\"\">find \/home\/username\/public_html -name &quot;.htaccess&quot; -o -name &quot;php.ini&quot; -o -name &quot;.user.ini&quot; | xargs grep -l &quot;php&quot; 2&gt;\/dev\/null<\/code><\/pre>\n<\/div>\n<p>A <code class=\"\" data-line=\"\">.htaccess<\/code> line like <code class=\"\" data-line=\"\">AddHandler application\/x-httpd-php74 .php<\/code> will lock the directory to PHP 7.4 regardless of what MultiPHP Manager says.<\/p>\n<h3>PHP-FPM returning 503 errors after a version change<\/h3>\n<p>If you switched an account to a PHP version that doesn&#8217;t have PHP-FPM installed or running, Apache can&#8217;t hand off requests and returns a 503. Check the FPM service status:<\/p>\n<div class=\"ht-code-snippet\"><button class=\"ht-code-snippet__copy\" type=\"button\" aria-label=\"Copy code\"><\/button><span class=\"ht-code-snippet__feedback\">Copied to clipboard<\/span><\/p>\n<pre class=\"ht-code-snippet__code\" id=\"code-block-8\"><code class=\"\" data-line=\"\">systemctl status ea-php82-php-fpm\njournalctl -u ea-php82-php-fpm --since &quot;10 minutes ago&quot;<\/code><\/pre>\n<\/div>\n<p>If it&#8217;s not running, start it and check for config errors. A common cause is a pool config file with a syntax error after a manual edit.<\/p>\n<h3>Memory limit changes in MultiPHP INI Editor aren&#8217;t taking effect<\/h3>\n<p>WordPress and some other apps set their own <code class=\"\" data-line=\"\">memory_limit<\/code> in <code class=\"\" data-line=\"\">wp-config.php<\/code> or via a plugin. The application-level setting can override the server-level <code class=\"\" data-line=\"\">php.ini<\/code>. Check <code class=\"\" data-line=\"\">wp-config.php<\/code> for:<\/p>\n<div class=\"ht-code-snippet\"><button class=\"ht-code-snippet__copy\" type=\"button\" aria-label=\"Copy code\"><\/button><span class=\"ht-code-snippet__feedback\">Copied to clipboard<\/span><\/p>\n<pre class=\"ht-code-snippet__code\" id=\"code-block-9\"><code class=\"\" data-line=\"\">define(&#039;WP_MEMORY_LIMIT&#039;, &#039;256M&#039;);\ndefine(&#039;WP_MAX_MEMORY_LIMIT&#039;, &#039;512M&#039;);<\/code><\/pre>\n<\/div>\n<p>Also, if the account is running under CloudLinux LVE, the LVE memory limit caps the effective ceiling regardless of what <code class=\"\" data-line=\"\">php.ini<\/code> says. Check LVE limits in WHM under <em>Manage Resellers &gt; CloudLinux LVE Manager<\/em>.<\/p>\n<h3>Extension installed but PHP still says it&#8217;s not loaded<\/h3>\n<p>This is annoyingly common when mixing CLI and FPM contexts. The CLI binary and the FPM process can use different <code class=\"\" data-line=\"\">php.ini<\/code> paths. Confirm which ini file the web-facing FPM process is reading:<\/p>\n<div class=\"ht-code-snippet\"><button class=\"ht-code-snippet__copy\" type=\"button\" aria-label=\"Copy code\"><\/button><span class=\"ht-code-snippet__feedback\">Copied to clipboard<\/span><\/p>\n<pre class=\"ht-code-snippet__code\" id=\"code-block-10\"><code class=\"\" data-line=\"\"># Check the FPM-specific ini directory\nls \/opt\/cpanel\/ea-php82\/root\/etc\/php.d\/<\/code><\/pre>\n<\/div>\n<p>The extension&#8217;s <code class=\"\" data-line=\"\">.ini<\/code> file should appear there (e.g., <code class=\"\" data-line=\"\">40-intl.ini<\/code>). If it&#8217;s missing, the yum install may have failed silently. Re-run the install and check for errors.<\/p>\n<h3>EasyApache 4 provisioning fails mid-build<\/h3>\n<p>EA4 builds can fail if the server is low on disk space (it needs at least 1\u20132 GB free in <code class=\"\" data-line=\"\">\/usr<\/code> and <code class=\"\" data-line=\"\">\/tmp<\/code>) or if a package dependency conflict exists. Check available space first:<\/p>\n<div class=\"ht-code-snippet\"><button class=\"ht-code-snippet__copy\" type=\"button\" aria-label=\"Copy code\"><\/button><span class=\"ht-code-snippet__feedback\">Copied to clipboard<\/span><\/p>\n<pre class=\"ht-code-snippet__code\" id=\"code-block-11\"><code class=\"\" data-line=\"\">df -h \/usr \/tmp \/var<\/code><\/pre>\n<\/div>\n<p>Then check the EA4 build log for the actual error:<\/p>\n<div class=\"ht-code-snippet\"><button class=\"ht-code-snippet__copy\" type=\"button\" aria-label=\"Copy code\"><\/button><span class=\"ht-code-snippet__feedback\">Copied to clipboard<\/span><\/p>\n<pre class=\"ht-code-snippet__code\" id=\"code-block-12\"><code class=\"\" data-line=\"\">cat \/var\/log\/cpanel\/easy\/apache\/build.log | tail -50<\/code><\/pre>\n<\/div>\n<h2>FAQ<\/h2>\n<div class=\"ht-faq-section\">\n<h2>Frequently Asked Questions<\/h2>\n<div class=\"ht-faq-item\">\n<h3 class=\"ht-faq-question\">Can I run multiple PHP versions at the same time in WHM?<\/h3>\n<div class=\"ht-faq-answer\">\n<p>Yes \u2014 that&#8217;s one of the core features of EasyApache 4. You can install PHP 7.4, 8.1, 8.2, and 8.3 all on the same server and assign different versions to different accounts or even different directories within the same account. Use MultiPHP Manager in WHM to control which version each account runs.<\/p>\n<\/div>\n<\/div>\n<div class=\"ht-faq-item\">\n<h3 class=\"ht-faq-question\">How do I change PHP settings for just one cPanel account without affecting everyone else?<\/h3>\n<div class=\"ht-faq-answer\">\n<p>Open MultiPHP INI Editor in WHM and switch from the server-level view to the account-level view by selecting the specific account from the dropdown. Changes made there write to that account&#8217;s own php.ini and only affect that account. Individual cPanel users can also do this from their own cPanel if you&#8217;ve granted them permission.<\/p>\n<\/div>\n<\/div>\n<div class=\"ht-faq-item\">\n<h3 class=\"ht-faq-question\">What&#039;s the difference between PHP-FPM and DSO\/CGI in EasyApache?<\/h3>\n<div class=\"ht-faq-answer\">\n<p>PHP-FPM (FastCGI Process Manager) runs PHP as a separate process pool per account, which improves performance and isolation \u2014 it&#8217;s the recommended handler for most setups. DSO runs PHP as an Apache module and is faster in some benchmarks but less secure on shared hosting. CGI is older and slower. If you&#8217;re unsure, PHP-FPM is the right default choice for any modern hosting environment.<\/p>\n<\/div>\n<\/div>\n<div class=\"ht-faq-item\">\n<h3 class=\"ht-faq-question\">Why does my PHP version change revert after a cPanel update?<\/h3>\n<div class=\"ht-faq-answer\">\n<p>It usually doesn&#8217;t \u2014 MultiPHP Manager settings persist across cPanel updates. But EasyApache profiles can sometimes be reset if someone runs a manual EA4 provision that overwrites the active profile. Make sure your PHP version selections are saved in a named EA4 profile so they&#8217;re not lost. You can save profiles in the EasyApache 4 interface under the Profiles section.<\/p>\n<\/div>\n<\/div>\n<div class=\"ht-faq-item\">\n<h3 class=\"ht-faq-question\">How do I check what PHP version a specific website is actually using?<\/h3>\n<div class=\"ht-faq-answer\">\n<p>The most reliable method is to create a temporary phpinfo() file in the site&#8217;s document root, load it in a browser, and look for the PHP Version line at the top \u2014 then delete the file immediately. From the command line, you can also check the account&#8217;s active handler by running <code class=\"\" data-line=\"\">php -i | grep &#039;Loaded Configuration File&#039;<\/code> using the account&#8217;s assigned PHP binary under <code class=\"\" data-line=\"\">\/opt\/cpanel\/ea-phpXX\/root\/usr\/bin\/php<\/code>.<\/p>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Need to change PHP versions, tweak memory limits, or enable extensions across your hosting accounts? This guide walks through WHM PHP configuration using EasyApache 4 \u2014 from basic version switching to custom php.ini values.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[88],"tags":[295,291,297,294,296,292,293,290],"class_list":["post-163","post","type-post","status-publish","format-standard","hentry","category-whm","tag-cpanel-php-settings","tag-easyapache-4","tag-how-to-configure-php-settings-in-whm-using-easyapache-4","tag-multiphp-manager","tag-php-extensions-whm","tag-php-version-whm","tag-php-ini-whm","tag-whm-php-configuration"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Configure PHP Settings in WHM Using EasyApache 4<\/title>\n<meta name=\"description\" content=\"Learn how to configure PHP settings in WHM using EasyApache 4. Set PHP versions, extensions, and php.ini values across accounts from the WHM panel.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/hostandtech.com\/kb\/whm\/how-to-configure-php-settings-whm-easyapache\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Configure PHP Settings in WHM Using EasyApache 4\" \/>\n<meta property=\"og:description\" content=\"Learn how to configure PHP settings in WHM using EasyApache 4. Set PHP versions, extensions, and php.ini values across accounts from the WHM panel.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/hostandtech.com\/kb\/whm\/how-to-configure-php-settings-whm-easyapache\/\" \/>\n<meta property=\"og:site_name\" content=\"Host And Tech knowledge base\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/stshostandtech\" \/>\n<meta property=\"article:published_time\" content=\"2026-05-29T06:14:53+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@stshostandtech\" \/>\n<meta name=\"twitter:site\" content=\"@stshostandtech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/whm\\\/how-to-configure-php-settings-whm-easyapache\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/whm\\\/how-to-configure-php-settings-whm-easyapache\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#\\\/schema\\\/person\\\/b6fa79c48ddaba71af32e395c5b017ee\"},\"headline\":\"How to Configure PHP Settings in WHM Using EasyApache 4\",\"datePublished\":\"2026-05-29T06:14:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/whm\\\/how-to-configure-php-settings-whm-easyapache\\\/\"},\"wordCount\":1591,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#organization\"},\"keywords\":[\"cPanel PHP settings\",\"EasyApache 4\",\"How to Configure PHP Settings in WHM Using EasyApache 4\",\"MultiPHP Manager\",\"PHP extensions WHM\",\"PHP version WHM\",\"php.ini WHM\",\"WHM PHP configuration\"],\"articleSection\":[\"WHM Guides\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/hostandtech.com\\\/kb\\\/whm\\\/how-to-configure-php-settings-whm-easyapache\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/whm\\\/how-to-configure-php-settings-whm-easyapache\\\/\",\"url\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/whm\\\/how-to-configure-php-settings-whm-easyapache\\\/\",\"name\":\"How to Configure PHP Settings in WHM Using EasyApache 4\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#website\"},\"datePublished\":\"2026-05-29T06:14:53+00:00\",\"description\":\"Learn how to configure PHP settings in WHM using EasyApache 4. Set PHP versions, extensions, and php.ini values across accounts from the WHM panel.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/whm\\\/how-to-configure-php-settings-whm-easyapache\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/hostandtech.com\\\/kb\\\/whm\\\/how-to-configure-php-settings-whm-easyapache\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/whm\\\/how-to-configure-php-settings-whm-easyapache\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Configure PHP Settings in WHM Using EasyApache 4\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/\",\"name\":\"Host And Tech knowledge base\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#organization\",\"name\":\"Host And Tech knowledge base\",\"url\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/logo-dark.png\",\"contentUrl\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/logo-dark.png\",\"width\":1134,\"height\":395,\"caption\":\"Host And Tech knowledge base\"},\"image\":{\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/stshostandtech\",\"https:\\\/\\\/x.com\\\/stshostandtech\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#\\\/schema\\\/person\\\/b6fa79c48ddaba71af32e395c5b017ee\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/aa1edac8bbadb442e059a5b65ad45a3b2e3ce689202373b96e3e567517ae4b39?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/aa1edac8bbadb442e059a5b65ad45a3b2e3ce689202373b96e3e567517ae4b39?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/aa1edac8bbadb442e059a5b65ad45a3b2e3ce689202373b96e3e567517ae4b39?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"https:\\\/\\\/hostandtech.com\\\/kb\"],\"url\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/author\\\/admin_fjj7qydm\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Configure PHP Settings in WHM Using EasyApache 4","description":"Learn how to configure PHP settings in WHM using EasyApache 4. Set PHP versions, extensions, and php.ini values across accounts from the WHM panel.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/hostandtech.com\/kb\/whm\/how-to-configure-php-settings-whm-easyapache\/","og_locale":"en_US","og_type":"article","og_title":"How to Configure PHP Settings in WHM Using EasyApache 4","og_description":"Learn how to configure PHP settings in WHM using EasyApache 4. Set PHP versions, extensions, and php.ini values across accounts from the WHM panel.","og_url":"https:\/\/hostandtech.com\/kb\/whm\/how-to-configure-php-settings-whm-easyapache\/","og_site_name":"Host And Tech knowledge base","article_publisher":"https:\/\/www.facebook.com\/stshostandtech","article_published_time":"2026-05-29T06:14:53+00:00","author":"admin","twitter_card":"summary_large_image","twitter_creator":"@stshostandtech","twitter_site":"@stshostandtech","twitter_misc":{"Written by":"admin","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/hostandtech.com\/kb\/whm\/how-to-configure-php-settings-whm-easyapache\/#article","isPartOf":{"@id":"https:\/\/hostandtech.com\/kb\/whm\/how-to-configure-php-settings-whm-easyapache\/"},"author":{"name":"admin","@id":"https:\/\/hostandtech.com\/kb\/#\/schema\/person\/b6fa79c48ddaba71af32e395c5b017ee"},"headline":"How to Configure PHP Settings in WHM Using EasyApache 4","datePublished":"2026-05-29T06:14:53+00:00","mainEntityOfPage":{"@id":"https:\/\/hostandtech.com\/kb\/whm\/how-to-configure-php-settings-whm-easyapache\/"},"wordCount":1591,"commentCount":0,"publisher":{"@id":"https:\/\/hostandtech.com\/kb\/#organization"},"keywords":["cPanel PHP settings","EasyApache 4","How to Configure PHP Settings in WHM Using EasyApache 4","MultiPHP Manager","PHP extensions WHM","PHP version WHM","php.ini WHM","WHM PHP configuration"],"articleSection":["WHM Guides"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/hostandtech.com\/kb\/whm\/how-to-configure-php-settings-whm-easyapache\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/hostandtech.com\/kb\/whm\/how-to-configure-php-settings-whm-easyapache\/","url":"https:\/\/hostandtech.com\/kb\/whm\/how-to-configure-php-settings-whm-easyapache\/","name":"How to Configure PHP Settings in WHM Using EasyApache 4","isPartOf":{"@id":"https:\/\/hostandtech.com\/kb\/#website"},"datePublished":"2026-05-29T06:14:53+00:00","description":"Learn how to configure PHP settings in WHM using EasyApache 4. Set PHP versions, extensions, and php.ini values across accounts from the WHM panel.","breadcrumb":{"@id":"https:\/\/hostandtech.com\/kb\/whm\/how-to-configure-php-settings-whm-easyapache\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/hostandtech.com\/kb\/whm\/how-to-configure-php-settings-whm-easyapache\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/hostandtech.com\/kb\/whm\/how-to-configure-php-settings-whm-easyapache\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/hostandtech.com\/kb\/"},{"@type":"ListItem","position":2,"name":"How to Configure PHP Settings in WHM Using EasyApache 4"}]},{"@type":"WebSite","@id":"https:\/\/hostandtech.com\/kb\/#website","url":"https:\/\/hostandtech.com\/kb\/","name":"Host And Tech knowledge base","description":"","publisher":{"@id":"https:\/\/hostandtech.com\/kb\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/hostandtech.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/hostandtech.com\/kb\/#organization","name":"Host And Tech knowledge base","url":"https:\/\/hostandtech.com\/kb\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hostandtech.com\/kb\/#\/schema\/logo\/image\/","url":"https:\/\/hostandtech.com\/kb\/wp-content\/uploads\/2026\/05\/logo-dark.png","contentUrl":"https:\/\/hostandtech.com\/kb\/wp-content\/uploads\/2026\/05\/logo-dark.png","width":1134,"height":395,"caption":"Host And Tech knowledge base"},"image":{"@id":"https:\/\/hostandtech.com\/kb\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/stshostandtech","https:\/\/x.com\/stshostandtech"]},{"@type":"Person","@id":"https:\/\/hostandtech.com\/kb\/#\/schema\/person\/b6fa79c48ddaba71af32e395c5b017ee","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/aa1edac8bbadb442e059a5b65ad45a3b2e3ce689202373b96e3e567517ae4b39?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/aa1edac8bbadb442e059a5b65ad45a3b2e3ce689202373b96e3e567517ae4b39?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/aa1edac8bbadb442e059a5b65ad45a3b2e3ce689202373b96e3e567517ae4b39?s=96&d=mm&r=g","caption":"admin"},"sameAs":["https:\/\/hostandtech.com\/kb"],"url":"https:\/\/hostandtech.com\/kb\/author\/admin_fjj7qydm\/"}]}},"_links":{"self":[{"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/posts\/163","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/comments?post=163"}],"version-history":[{"count":0,"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/posts\/163\/revisions"}],"wp:attachment":[{"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/media?parent=163"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/categories?post=163"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/tags?post=163"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}