{"id":248323,"date":"2025-10-09T07:04:29","date_gmt":"2025-10-09T07:04:29","guid":{"rendered":"https:\/\/www.bluehost.com\/blog\/?p=248323"},"modified":"2025-10-09T07:04:33","modified_gmt":"2025-10-09T07:04:33","slug":"cpanel-increase-php-memory-limit","status":"publish","type":"post","link":"https:\/\/www.bluehost.com\/blog\/cpanel-increase-php-memory-limit\/","title":{"rendered":"How To Increase the PHP Memory Limit"},"content":{"rendered":"\n<p>Are you struggling with memory-related errors in your PHP application? Would you like to boost its performance and ensure seamless functionality? If yes, then increasing the PHP memory limit is the solution you need! Our step-by-step guide will help you learn how to increase the PHP memory limit on your server to enjoy faster, smoother, and error-free application performance.<\/p>\n\n\n\n<p>The PHP memory limit is a setting that determines the maximum amount of memory a PHP script can consume during its execution. If a script exceeds this limit, it will result in a fatal error, and the script will stop running. It&#8217;s an important setting to consider when working with large applications or handling a large amount of data. The default memory limit is usually set to 256MB. Still, depending on the application&#8217;s needs, it can be increased or decreased.<\/p>\n\n\n\n<p><strong>Tip:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>It&#8217;s always a good practice to take a backup of any file before making any changes to your server. If anything goes wrong, you can always restore the original file and start over.<\/li>\n\n\n\n<li>The default PHP Memory Limit on your server is\u00a0256MB. The universal recommended baseline is 128MB, which should be more than enough for most sites unless you have a plugin or theme that needs more. You can always customize this value inside your cPanel, depending on your needs.<\/li>\n<\/ul>\n\n\n\n<p>There are several ways&nbsp;how to increase the PHP memory limit. Here are a few:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.bluehost.com\/help\/article\/how-to-increase-the-php-memory-limit#php-ini\">Edit php.ini File<\/a>\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.bluehost.com\/help\/article\/how-to-increase-the-php-memory-limit#multiphp\">Using the MultiPHP INI Editor<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.bluehost.com\/help\/article\/how-to-increase-the-php-memory-limit#file-manager\">Using the File Manager<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.bluehost.com\/help\/article\/how-to-increase-the-php-memory-limit#ftp\">Using an FTP Client<\/a><a href=\"https:\/\/www.bluehost.com\/help\/article\/how-to-increase-the-php-memory-limit#ftp\"><\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><a href=\"https:\/\/www.bluehost.com\/help\/article\/how-to-increase-the-php-memory-limit#htaccess\">Edit .htaccess File<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.bluehost.com\/help\/article\/how-to-increase-the-php-memory-limit#wp-config\">Edit\u00a0wp-config.php File<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.bluehost.com\/help\/article\/how-to-increase-the-php-memory-limit#plugin\">Use a Plugin<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.bluehost.com\/help\/article\/how-to-increase-the-php-memory-limit#summary\">Summary<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-how-to-nbsp-increase-the-php-memory-limit-nbsp-via-nbsp-php-ini\"><a><\/a>How to&nbsp;Increase the PHP Memory Limit&nbsp;via&nbsp;php.ini<\/h2>\n\n\n\n<p>If you want to know how to increase the PHP memory limit of your PHP script, editing the php.ini file is the most common way to do it. The php.ini file contains several directives that are used to configure the PHP settings. One of these directives is the memory_limit directive, which sets the maximum amount of memory that a PHP script can use. The memory limit is set to 256 megabytes (MB) by default. However, more than this may be needed for some scripts, especially those that deal with large amounts of data. You may need to increase the memory limit to avoid any memory-related errors.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-using-the-nbsp-multiphp-ini-editor\"><a><\/a>Using the&nbsp;MultiPHP INI Editor<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Log in to your\u00a0<a href=\"https:\/\/www.bluehost.com\/my-account\/login\">Bluehost Account Manager<\/a>.<\/li>\n\n\n\n<li>Click the\u00a0<strong>Hosting\u00a0<\/strong>tab from the side navigation menu to the left.<br><img decoding=\"async\" src=\"https:\/\/content.bluehost.com\/bluehost\/img\/bluehost\/account\/bh-hosting.png\" alt=\"Bluehost Dashboard highlighting 'Hosting' tab\"><\/li>\n\n\n\n<li>Scroll down to click the\u00a0<strong>CPANEL<\/strong>\u00a0button under\u00a0<strong>Quick Links<\/strong>.<br><img decoding=\"async\" src=\"https:\/\/content.bluehost.com\/bluehost\/img\/bluehost\/account\/am-cpanel.png\" alt=\"Bluehost Dashboard highlighting 'CPANEL' button under Quick Links\"><\/li>\n\n\n\n<li>Under the\u00a0<strong>Software<\/strong>\u00a0section, click on the\u00a0<strong>MultiPHP INI Editor<\/strong>\u00a0icon.<\/li>\n\n\n\n<li>Select the domains that you want to set up or update from the\u00a0<strong>Select a location<\/strong>\u00a0drop-down<\/li>\n\n\n\n<li>Set your desired values for\u00a0memory_limit\u00a0(increase\/decrease) on the right-hand side.<\/li>\n\n\n\n<li>Click the\u00a0<strong>Apply\u00a0<\/strong>button to finish the update.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-using-the-file-manager\"><a><\/a>Using the File Manager<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>In the cPanel, locate the\u00a0<strong>Files<\/strong>\u00a0section\u00a0and click the\u00a0<strong>File Manager<\/strong>\u00a0icon.<\/li>\n\n\n\n<li>If prompted, choose\u00a0<strong>Web Root;<\/strong>\u00a0otherwise, navigate to the public_html folder.<\/li>\n\n\n\n<li>Locate the\u00a0<strong>php.ini<\/strong>\u00a0file, then click and highlight the file.<br><img decoding=\"async\" src=\"https:\/\/content.bluehost.com\/bluehost\/img\/bluehost\/cpanel\/cpfilemanager-edit.png\" alt=\"cP Edit icon\"><br>Alternatively, highlight the\u00a0<strong>php.ini<\/strong>\u00a0file and right-click your mouse to show a drop-down menu. Click\u00a0<strong>Edit<\/strong>, and then the same popup window will appear.<\/li>\n\n\n\n<li>Click the\u00a0<strong>Edit<\/strong>\u00a0button.<br><img decoding=\"async\" src=\"https:\/\/content.bluehost.com\/bluehost\/img\/bluehost\/cpanel\/filemanager-edit.png\" alt=\"cP Edit Dropdown option\"><\/li>\n\n\n\n<li>Click the\u00a0<strong>Edit\u00a0<\/strong>button on the popup window to open the code editor.<br><img decoding=\"async\" src=\"https:\/\/content.bluehost.com\/bluehost\/img\/bluehost\/cpanel\/filemanager-editfile.png\" alt=\"cP Edit popup Edit button\"><\/li>\n\n\n\n<li>Search for\u00a0<strong>memory_limit<\/strong>\u00a0without the quotes.<\/li>\n\n\n\n<li>Enter the new memory limit for your PHP applications.<\/li>\n\n\n\n<li>Once you finish editing\u00a0<strong>memory_limit<\/strong>, click\u00a0<strong>Save Changes<\/strong>\u00a0before closing the editor.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-using-an-ftp-client\"><a><\/a>Using an FTP Client<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Connect to the server with your FTP client.To learn more, please see\u00a0<a href=\"https:\/\/www.bluehost.com\/help\/article\/intro-to-ftp\">Introduction to FTP<\/a><\/li>\n\n\n\n<li>Navigate to the public_html folder.<\/li>\n\n\n\n<li>Download the\u00a0<strong>php.ini<\/strong>\u00a0file.<\/li>\n\n\n\n<li>Open the file with any text editor.<\/li>\n\n\n\n<li>Search for\u00a0<strong>memory_limit\u00a0<\/strong>without the quotes.<\/li>\n\n\n\n<li>Enter the new memory limit for your PHP applications.<\/li>\n\n\n\n<li>Save the file.<\/li>\n\n\n\n<li>Upload the file using your FTP client.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-how-to-increase-the-php-memory-limit-via-htaccess-file\"><a><\/a>How to Increase the PHP Memory Limit via .htaccess File<\/h2>\n\n\n\n<p>If you don&#8217;t have access to the php.ini file, you can edit the&nbsp;<strong>.htaccess<\/strong>&nbsp;file. Add the following line to the file: php_value memory_limit 256M. This will set the memory limit to 256 MB. Save the file and check if the new limit has been applied.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>In the File Manager, look for the\u00a0<strong>Settings<\/strong>\u00a0button located towards the upper right corner of your screen.<\/li>\n\n\n\n<li>From here, click the<strong>\u00a0Preferences<\/strong>\u00a0popup, then click the checkbox for\u00a0<strong>Show Hidden Fil<\/strong>es (dotfiles).<br><img decoding=\"async\" src=\"https:\/\/content.bluehost.com\/bluehost\/img\/bluehost\/cpanel\/File%20Manager\/rock-file-manager-preferences.png\" alt=\"Preferences window with options to show hidden files and set web root directory for 'example.com'\"><\/li>\n\n\n\n<li>Scroll to locate the\u00a0<strong>.htaccess<\/strong>\u00a0file from the list.<\/li>\n\n\n\n<li>Right-click on the file, then click on\u00a0<strong>Edit<\/strong>\u00a0from the menu.<br><img decoding=\"async\" src=\"https:\/\/content.bluehost.com\/bluehost\/img\/bluehost\/cpanel\/filemanager-edit.png\" alt=\".htaccess file option, selecting Edit\"><\/li>\n\n\n\n<li>A dialogue box may ask you about encoding; click the Edit button to continue. The editor will open in a new window.<\/li>\n\n\n\n<li>Add the following line to the file:\u00a0<strong>php_value memory_limit 256M<\/strong>. This will set the memory limit to 256 MB. Save the file and check if the new limit has been applied.<\/li>\n\n\n\n<li>Click the\u00a0<strong>Save Changes<\/strong>\u00a0button.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-how-to-increase-the-php-memory-limit-via-wp-config-php-file\"><a><\/a>How to Increase the PHP Memory Limit via wp-config.php File<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Inside the\u00a0<strong>File Manager<\/strong>, look at and highlight the\u00a0<strong>wp-config.php<\/strong>\u00a0file.<br><img decoding=\"async\" src=\"https:\/\/content.bluehost.com\/bluehost\/img\/bluehost\/cpanel\/cpfilemanager-edit.png\" alt=\"cP Edit icon\"><br>Alternatively, highlight the php.ini file and right-click your mouse to show a drop-down menu. Click\u00a0<strong>Edit<\/strong>, and then the same popup window will appear.<\/li>\n\n\n\n<li>Click the\u00a0<strong>Edit<\/strong>\u00a0button.<br><img decoding=\"async\" src=\"https:\/\/content.bluehost.com\/bluehost\/img\/bluehost\/cpanel\/filemanager-edit.png\" alt=\"cP Edit Dropdown option\"><\/li>\n\n\n\n<li>Click the\u00a0<strong>Edit\u00a0<\/strong>button on the popup window to open the code editor.<br><img decoding=\"async\" src=\"https:\/\/content.bluehost.com\/bluehost\/img\/bluehost\/cpanel\/filemanager-editfile.png\" alt=\"cP Edit popup Edit button\"><\/li>\n\n\n\n<li>Add the following line to the\u00a0<strong>wp-config.php<\/strong>\u00a0file:\u00a0<strong>define(&#8216;WP_MEMORY_LIMIT&#8217;, &#8216;256M&#8217;)<\/strong>;. This will set the memory limit to 256 MB.<\/li>\n\n\n\n<li>Click the\u00a0<strong>Save Changes<\/strong>\u00a0button.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-how-to-increase-the-php-memory-limit-via-plugin-wordpress-dashboard\"><a><\/a>How to Increase the PHP Memory Limit via Plugin (WordPress Dashboard)<\/h2>\n\n\n\n<p>There are several plugins available that can help you how to&nbsp;increase the PHP memory limit without the need to edit any files. These plugins can be easily installed and configured to help improve the performance of your website, such as the&nbsp;<a href=\"https:\/\/wordpress.org\/plugins\/wp-memory\/\" target=\"_blank\" rel=\"noreferrer noopener\">WordPress WP Memory Limit, Memory Usage, Server Memory, and Health plugins<\/a>. It&#8217;s important to note that increasing the PHP memory limit should be done cautiously and with consideration to the resources available on your server.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Login to your WordPress dashboard.<\/li>\n\n\n\n<li>Go to the\u00a0<strong>Plugins<\/strong>\u00a0section and click on\u00a0<strong>Add New<\/strong>.<\/li>\n\n\n\n<li>Search for\u00a0the plugin you want to use and install it.<\/li>\n\n\n\n<li>After activating the plugin, go to\u00a0<strong>Tools<\/strong>\u00a0and click on\u00a0<strong>WP Memory Usage<\/strong>.<\/li>\n\n\n\n<li>You will see the current memory usage of your WordPress site. Scroll down, and you will find the\u00a0<strong>Memory Limit<\/strong>\u00a0option.<br>Increase the memory limit by entering the desired value in the box provided.<\/li>\n\n\n\n<li>Click on\u00a0<strong>Save Changes<\/strong>, and you&#8217;re done.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-summary\"><a><\/a>Summary<\/h2>\n\n\n\n<p>Increasing the PHP memory limit is crucial in ensuring seamless functionality and performance of your PHP applications. With the step-by-step guide, you now have several methods to increase the PHP memory limit. Whether you choose to edit the php.ini file, .htaccess file, wp-config.php file, or use a plugin, it is essential to ensure that you do it cautiously and with consideration to the resources available on your server. Following these steps will help you avoid memory-related errors and enjoy faster, smoother, and error-free application performance.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Are you struggling with memory-related errors in your PHP application? Would you like to boost its performance and ensure seamless functionality? If yes, then increasing the PHP memory limit is the solution you need! Our step-by-step guide will help you learn how to increase the PHP memory limit on your server to enjoy faster, smoother, [&hellip;]<\/p>\n","protected":false},"author":149,"featured_media":246814,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_yoast_wpseo_title":"%%title%% %%page%% %%sep%% %%sitename%% How To Increase the PHP Memory Limit","_yoast_wpseo_metadesc":"","inline_featured_image":false,"footnotes":""},"categories":[3067,1345],"tags":[3330],"ppma_author":[942],"class_list":["post-248323","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-performance","category-website","tag-how-to-guides"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.1 (Yoast SEO v27.1.1) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How To Increase the PHP Memory Limit - Bluehost Blog How To Increase the PHP Memory Limit<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.bluehost.com\/blog\/wp-json\/wp\/v2\/posts\/248323\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Increase the PHP Memory Limit\" \/>\n<meta property=\"og:description\" content=\"Are you struggling with memory-related errors in your PHP application? Would you like to boost its performance and ensure seamless functionality? If yes, then increasing the PHP memory limit is the solution you need! Our step-by-step guide will help you learn how to increase the PHP memory limit on your server to enjoy faster, smoother, [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.bluehost.com\/blog\/cpanel-increase-php-memory-limit\/\" \/>\n<meta property=\"og:site_name\" content=\"Bluehost Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/bluehost\/\" \/>\n<meta property=\"article:published_time\" content=\"2025-10-09T07:04:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-10-09T07:04:33+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.bluehost.com\/blog\/wp-content\/uploads\/2025\/10\/generic-bluehost-7.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1080\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Khushboo Rathod\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@bluehost\" \/>\n<meta name=\"twitter:site\" content=\"@bluehost\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Khushboo Rathod\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.bluehost.com\/blog\/cpanel-increase-php-memory-limit\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.bluehost.com\/blog\/cpanel-increase-php-memory-limit\/\"},\"author\":{\"name\":\"Khushboo Rathod\",\"@id\":\"https:\/\/www.bluehost.com\/blog\/#\/schema\/person\/609182de3a8bef87ab60347e73a1c72e\"},\"headline\":\"How To Increase the PHP Memory Limit\",\"datePublished\":\"2025-10-09T07:04:29+00:00\",\"dateModified\":\"2025-10-09T07:04:33+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.bluehost.com\/blog\/cpanel-increase-php-memory-limit\/\"},\"wordCount\":1180,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.bluehost.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.bluehost.com\/blog\/cpanel-increase-php-memory-limit\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.bluehost.com\/blog\/wp-content\/uploads\/2025\/10\/generic-bluehost-7.png\",\"keywords\":[\"How-To Guides\"],\"articleSection\":[\"Performance\",\"Website\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.bluehost.com\/blog\/cpanel-increase-php-memory-limit\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.bluehost.com\/blog\/cpanel-increase-php-memory-limit\/\",\"url\":\"https:\/\/www.bluehost.com\/blog\/cpanel-increase-php-memory-limit\/\",\"name\":\"How To Increase the PHP Memory Limit - Bluehost Blog How To Increase the PHP Memory Limit\",\"isPartOf\":{\"@id\":\"https:\/\/www.bluehost.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.bluehost.com\/blog\/cpanel-increase-php-memory-limit\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.bluehost.com\/blog\/cpanel-increase-php-memory-limit\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.bluehost.com\/blog\/wp-content\/uploads\/2025\/10\/generic-bluehost-7.png\",\"datePublished\":\"2025-10-09T07:04:29+00:00\",\"dateModified\":\"2025-10-09T07:04:33+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.bluehost.com\/blog\/cpanel-increase-php-memory-limit\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.bluehost.com\/blog\/cpanel-increase-php-memory-limit\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.bluehost.com\/blog\/cpanel-increase-php-memory-limit\/#primaryimage\",\"url\":\"https:\/\/www.bluehost.com\/blog\/wp-content\/uploads\/2025\/10\/generic-bluehost-7.png\",\"contentUrl\":\"https:\/\/www.bluehost.com\/blog\/wp-content\/uploads\/2025\/10\/generic-bluehost-7.png\",\"width\":1920,\"height\":1080,\"caption\":\"Man increasing the PHP limit\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.bluehost.com\/blog\/cpanel-increase-php-memory-limit\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.bluehost.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Website\",\"item\":\"https:\/\/www.bluehost.com\/blog\/category\/website\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How To Increase the PHP Memory Limit\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.bluehost.com\/blog\/#website\",\"url\":\"https:\/\/www.bluehost.com\/blog\/\",\"name\":\"Bluehost\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.bluehost.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.bluehost.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.bluehost.com\/blog\/#organization\",\"name\":\"Bluehost\",\"url\":\"https:\/\/www.bluehost.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.bluehost.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.bluehost.com\/blog\/wp-content\/uploads\/2023\/08\/bluehost-logo.svg\",\"contentUrl\":\"https:\/\/www.bluehost.com\/blog\/wp-content\/uploads\/2023\/08\/bluehost-logo.svg\",\"width\":136,\"height\":24,\"caption\":\"Bluehost\"},\"image\":{\"@id\":\"https:\/\/www.bluehost.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/bluehost\/\",\"https:\/\/x.com\/bluehost\",\"https:\/\/www.linkedin.com\/company\/bluehost-com\/\",\"https:\/\/www.youtube.com\/user\/bluehost\",\"https:\/\/en.wikipedia.org\/wiki\/Bluehost\"],\"description\":\"Bluehost is a leading web hosting provider empowering millions of websites worldwide. \\u2028Discover how Bluehost's expertise, reliability, and innovation can help you achieve your online goals.\",\"telephone\":\"+1-888-401-4678\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.bluehost.com\/blog\/#\/schema\/person\/609182de3a8bef87ab60347e73a1c72e\",\"name\":\"Khushboo Rathod\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.bluehost.com\/blog\/#\/schema\/person\/image\/15d7ceb9be5bb1b64751c20c3ebb2da7\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/4b9052d2907f8c1e3fe66199c1fe330615ae1c91cb5f439344d691749ecc024e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/4b9052d2907f8c1e3fe66199c1fe330615ae1c91cb5f439344d691749ecc024e?s=96&d=mm&r=g\",\"caption\":\"Khushboo Rathod\"},\"description\":\"Khushboo Rathod is a Content Writer at Bluehost with over four years of experience creating SEO-friendly, value-driven content. She believes good writing serves both search engines and readers alike. Outside of work, she is an astrologer and has a deep interest in spirituality and the occult.\",\"honorificPrefix\":\"Ms\",\"birthDate\":\"1995-12-25\",\"gender\":\"female\",\"url\":\"https:\/\/www.bluehost.com\/blog\/author\/khushbu-jain\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How To Increase the PHP Memory Limit - Bluehost Blog How To Increase the PHP Memory Limit","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:\/\/www.bluehost.com\/blog\/wp-json\/wp\/v2\/posts\/248323\/","og_locale":"en_US","og_type":"article","og_title":"How To Increase the PHP Memory Limit","og_description":"Are you struggling with memory-related errors in your PHP application? Would you like to boost its performance and ensure seamless functionality? If yes, then increasing the PHP memory limit is the solution you need! Our step-by-step guide will help you learn how to increase the PHP memory limit on your server to enjoy faster, smoother, [&hellip;]","og_url":"https:\/\/www.bluehost.com\/blog\/cpanel-increase-php-memory-limit\/","og_site_name":"Bluehost Blog","article_publisher":"https:\/\/www.facebook.com\/bluehost\/","article_published_time":"2025-10-09T07:04:29+00:00","article_modified_time":"2025-10-09T07:04:33+00:00","og_image":[{"width":1920,"height":1080,"url":"https:\/\/www.bluehost.com\/blog\/wp-content\/uploads\/2025\/10\/generic-bluehost-7.png","type":"image\/png"}],"author":"Khushboo Rathod","twitter_card":"summary_large_image","twitter_creator":"@bluehost","twitter_site":"@bluehost","twitter_misc":{"Written by":"Khushboo Rathod","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.bluehost.com\/blog\/cpanel-increase-php-memory-limit\/#article","isPartOf":{"@id":"https:\/\/www.bluehost.com\/blog\/cpanel-increase-php-memory-limit\/"},"author":{"name":"Khushboo Rathod","@id":"https:\/\/www.bluehost.com\/blog\/#\/schema\/person\/609182de3a8bef87ab60347e73a1c72e"},"headline":"How To Increase the PHP Memory Limit","datePublished":"2025-10-09T07:04:29+00:00","dateModified":"2025-10-09T07:04:33+00:00","mainEntityOfPage":{"@id":"https:\/\/www.bluehost.com\/blog\/cpanel-increase-php-memory-limit\/"},"wordCount":1180,"commentCount":0,"publisher":{"@id":"https:\/\/www.bluehost.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.bluehost.com\/blog\/cpanel-increase-php-memory-limit\/#primaryimage"},"thumbnailUrl":"https:\/\/www.bluehost.com\/blog\/wp-content\/uploads\/2025\/10\/generic-bluehost-7.png","keywords":["How-To Guides"],"articleSection":["Performance","Website"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.bluehost.com\/blog\/cpanel-increase-php-memory-limit\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.bluehost.com\/blog\/cpanel-increase-php-memory-limit\/","url":"https:\/\/www.bluehost.com\/blog\/cpanel-increase-php-memory-limit\/","name":"How To Increase the PHP Memory Limit - Bluehost Blog How To Increase the PHP Memory Limit","isPartOf":{"@id":"https:\/\/www.bluehost.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.bluehost.com\/blog\/cpanel-increase-php-memory-limit\/#primaryimage"},"image":{"@id":"https:\/\/www.bluehost.com\/blog\/cpanel-increase-php-memory-limit\/#primaryimage"},"thumbnailUrl":"https:\/\/www.bluehost.com\/blog\/wp-content\/uploads\/2025\/10\/generic-bluehost-7.png","datePublished":"2025-10-09T07:04:29+00:00","dateModified":"2025-10-09T07:04:33+00:00","breadcrumb":{"@id":"https:\/\/www.bluehost.com\/blog\/cpanel-increase-php-memory-limit\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.bluehost.com\/blog\/cpanel-increase-php-memory-limit\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bluehost.com\/blog\/cpanel-increase-php-memory-limit\/#primaryimage","url":"https:\/\/www.bluehost.com\/blog\/wp-content\/uploads\/2025\/10\/generic-bluehost-7.png","contentUrl":"https:\/\/www.bluehost.com\/blog\/wp-content\/uploads\/2025\/10\/generic-bluehost-7.png","width":1920,"height":1080,"caption":"Man increasing the PHP limit"},{"@type":"BreadcrumbList","@id":"https:\/\/www.bluehost.com\/blog\/cpanel-increase-php-memory-limit\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.bluehost.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Website","item":"https:\/\/www.bluehost.com\/blog\/category\/website\/"},{"@type":"ListItem","position":3,"name":"How To Increase the PHP Memory Limit"}]},{"@type":"WebSite","@id":"https:\/\/www.bluehost.com\/blog\/#website","url":"https:\/\/www.bluehost.com\/blog\/","name":"Bluehost","description":"","publisher":{"@id":"https:\/\/www.bluehost.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.bluehost.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.bluehost.com\/blog\/#organization","name":"Bluehost","url":"https:\/\/www.bluehost.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bluehost.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.bluehost.com\/blog\/wp-content\/uploads\/2023\/08\/bluehost-logo.svg","contentUrl":"https:\/\/www.bluehost.com\/blog\/wp-content\/uploads\/2023\/08\/bluehost-logo.svg","width":136,"height":24,"caption":"Bluehost"},"image":{"@id":"https:\/\/www.bluehost.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/bluehost\/","https:\/\/x.com\/bluehost","https:\/\/www.linkedin.com\/company\/bluehost-com\/","https:\/\/www.youtube.com\/user\/bluehost","https:\/\/en.wikipedia.org\/wiki\/Bluehost"],"description":"Bluehost is a leading web hosting provider empowering millions of websites worldwide. \u2028Discover how Bluehost's expertise, reliability, and innovation can help you achieve your online goals.","telephone":"+1-888-401-4678"},{"@type":"Person","@id":"https:\/\/www.bluehost.com\/blog\/#\/schema\/person\/609182de3a8bef87ab60347e73a1c72e","name":"Khushboo Rathod","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bluehost.com\/blog\/#\/schema\/person\/image\/15d7ceb9be5bb1b64751c20c3ebb2da7","url":"https:\/\/secure.gravatar.com\/avatar\/4b9052d2907f8c1e3fe66199c1fe330615ae1c91cb5f439344d691749ecc024e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4b9052d2907f8c1e3fe66199c1fe330615ae1c91cb5f439344d691749ecc024e?s=96&d=mm&r=g","caption":"Khushboo Rathod"},"description":"Khushboo Rathod is a Content Writer at Bluehost with over four years of experience creating SEO-friendly, value-driven content. She believes good writing serves both search engines and readers alike. Outside of work, she is an astrologer and has a deep interest in spirituality and the occult.","honorificPrefix":"Ms","birthDate":"1995-12-25","gender":"female","url":"https:\/\/www.bluehost.com\/blog\/author\/khushbu-jain\/"}]}},"authors":[{"term_id":942,"user_id":149,"is_guest":0,"slug":"khushbu-jain","display_name":"Khushboo Rathod","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/4b9052d2907f8c1e3fe66199c1fe330615ae1c91cb5f439344d691749ecc024e?s=96&d=mm&r=g","0":null,"1":"","2":"","3":"","4":"","5":"","6":"","7":"","8":"","9":"","10":"","11":"","12":"","13":"","14":"","15":""}],"_links":{"self":[{"href":"https:\/\/www.bluehost.com\/blog\/wp-json\/wp\/v2\/posts\/248323","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bluehost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bluehost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bluehost.com\/blog\/wp-json\/wp\/v2\/users\/149"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bluehost.com\/blog\/wp-json\/wp\/v2\/comments?post=248323"}],"version-history":[{"count":1,"href":"https:\/\/www.bluehost.com\/blog\/wp-json\/wp\/v2\/posts\/248323\/revisions"}],"predecessor-version":[{"id":248359,"href":"https:\/\/www.bluehost.com\/blog\/wp-json\/wp\/v2\/posts\/248323\/revisions\/248359"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.bluehost.com\/blog\/wp-json\/wp\/v2\/media\/246814"}],"wp:attachment":[{"href":"https:\/\/www.bluehost.com\/blog\/wp-json\/wp\/v2\/media?parent=248323"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bluehost.com\/blog\/wp-json\/wp\/v2\/categories?post=248323"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bluehost.com\/blog\/wp-json\/wp\/v2\/tags?post=248323"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.bluehost.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=248323"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}