{"id":4690,"date":"2018-04-12T19:36:26","date_gmt":"2018-04-12T14:06:26","guid":{"rendered":"https:\/\/phpyouth.com\/blog\/?p=4690"},"modified":"2025-10-14T14:47:05","modified_gmt":"2025-10-14T09:17:05","slug":"increase-wordpress-memory-limit-using-php-ini","status":"publish","type":"post","link":"https:\/\/phpyouth.com\/blog\/increase-wordpress-memory-limit-using-php-ini\/","title":{"rendered":"Increase WordPress Memory Limit using php.ini"},"content":{"rendered":"<p>If you want to Increase WordPress Memory Limit using php.ini, and you have access to your website\u2019s root directory, you can easily do this by editing the php.ini file.<\/p>\n<p>Simply add or update this line in your php.ini file to set the memory limit to 256MB:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">memory_limit = 256M ;<\/pre>\n<p>If you already have this setting but still face memory issues, try increasing the memory limit further by setting it to 512MB in the php.ini file.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">memory_limit = 512M ;<\/pre>\n<p>By following these steps, you can successfully Increase WordPress Memory Limit using php.ini and avoid errors like \u201cAllowed memory size exhausted\u201d. This also helps improve the performance of your WordPress site when running resource-heavy plugins or themes.<\/p>\n<p><a href=\"https:\/\/www.hostg.xyz\/aff_c?offer_id=6&#038;aff_id=115521&#038;url_id=35&#038;file_id=1399\" target=\"_blank\" rel=\"noopener\"><br \/>\n<img data-recalc-dims=\"1\" fetchpriority=\"high\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/media.go2speed.org\/brand\/files\/hostinger\/6\/EN-970x250.jpg?resize=970%2C250&#038;ssl=1\" width=\"970\" height=\"250\" border=\"0\" alt=\"\"><\/a><img decoding=\"async\" src=\"https:\/\/www.hostg.xyz\/aff_i?offer_id=6&#038;file_id=1399&#038;aff_id=115521&#038;url_id=35\" width=\"0\" height=\"0\" style=\"position:absolute;visibility:hidden;\" border=\"0\" alt=\"\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you want to Increase WordPress Memory Limit using php.ini, and you have access to your website\u2019s root directory, you can easily do this by editing the php.ini file. Simply add or update this line in your php.ini file to set the memory limit to 256MB: memory_limit = 256M ; If you already have this [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":4691,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"image","meta":{"_acf_changed":false,"site-sidebar-layout":"default","site-content-layout":"default","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":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-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":"","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-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":"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":""},"mobile":{"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":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[5,4],"tags":[126,124],"class_list":["post-4690","post","type-post","status-publish","format-image","has-post-thumbnail","hentry","category-php","category-wordpress","tag-php-ini","tag-wp_memory_limit","post_format-post-format-image"],"acf":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2018\/04\/fresh-aquasummit.png?fit=560%2C315&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8zepR-1dE","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":4696,"url":"https:\/\/phpyouth.com\/blog\/increase-wordpress-memory-limit-using-htaccess\/","url_meta":{"origin":4690,"position":0},"title":"Increase WordPress Memory Limit using .htaccess","author":"RK Jajoria","date":"April 13, 2018","format":"image","excerpt":"If you don't have access to the php.ini file, don't worry! You can easily increase the PHP memory limit via the .htaccess file. Just copy and paste the following code into your .htaccess file to increase the memory limit. To increase the memory limit, simply add the following line to\u2026","rel":"","context":"In &quot;PHP&quot;","block_context":{"text":"PHP","link":"https:\/\/phpyouth.com\/blog\/category\/tutorial\/php\/"},"img":{"alt_text":"php_value memory_limit 512M","src":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2018\/04\/php_value-memory_limit-512M.png?fit=560%2C315&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2018\/04\/php_value-memory_limit-512M.png?fit=560%2C315&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2018\/04\/php_value-memory_limit-512M.png?fit=560%2C315&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":4650,"url":"https:\/\/phpyouth.com\/blog\/how-to-resolve-this-page-isnt-working-http-error-500\/","url_meta":{"origin":4690,"position":1},"title":"How to resolve &#8220;This Page isn&#8217;t Working &#8211; HTTP ERROR 500&#8221;","author":"RK Jajoria","date":"April 13, 2018","format":false,"excerpt":"Hello, friends, today we will learn how to resolve \"This Page isn't Working HTTP ERROR 500\". Last week, we got this error while shifting one of my websites from one server to another. However, there's no need to worry, WordPress has this common error, and we can easily resolve it.\u2026","rel":"","context":"In &quot;PHP&quot;","block_context":{"text":"PHP","link":"https:\/\/phpyouth.com\/blog\/category\/tutorial\/php\/"},"img":{"alt_text":"HTTP ERROR 500","src":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2018\/04\/Copy-of-fresh-aquasummit.png?fit=560%2C315&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2018\/04\/Copy-of-fresh-aquasummit.png?fit=560%2C315&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2018\/04\/Copy-of-fresh-aquasummit.png?fit=560%2C315&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":5000,"url":"https:\/\/phpyouth.com\/blog\/remove-wc_sessions-in-woocommerce\/","url_meta":{"origin":4690,"position":2},"title":"How to Remove wc_sessions in WooCommerce","author":"RK Jajoria","date":"July 4, 2019","format":false,"excerpt":"Hello friends! Today, in this tutorial, we will learn how to remove sessions in WooCommerce. First, we will discuss why we need to remove these sessions from WooCommerce. These sessions make the wp_options table heavy in size. WooCommerce stores the _wc_session_xxx and _wc_session_expires_xxx entries in the wp_options table. There are\u2026","rel":"","context":"In &quot;Plugins&quot;","block_context":{"text":"Plugins","link":"https:\/\/phpyouth.com\/blog\/category\/wordpress\/plugins\/"},"img":{"alt_text":"Remove woocommerce sessions","src":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2019\/07\/Remove-woocommerce-sessions.png?fit=560%2C315&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2019\/07\/Remove-woocommerce-sessions.png?fit=560%2C315&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2019\/07\/Remove-woocommerce-sessions.png?fit=560%2C315&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":12487,"url":"https:\/\/phpyouth.com\/blog\/best-hosting-for-woocommerce\/","url_meta":{"origin":4690,"position":3},"title":"Best Hosting for WooCommerce in 2026: What Actually Works for Online Stores","author":"RK Jajoria","date":"May 12, 2026","format":false,"excerpt":"If you're looking for the best hosting for WooCommerce in 2026, this guide is based on real stores we've tested; not just benchmark tools. A client came to us last year with a WooCommerce store that was doing decent traffic, nothing crazy, maybe 300\u2013400 visitors a day. But their cart\u2026","rel":"","context":"In &quot;Web Hosting&quot;","block_context":{"text":"Web Hosting","link":"https:\/\/phpyouth.com\/blog\/category\/web-hosting\/"},"img":{"alt_text":"Best Hosting for WooCommerce","src":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2026\/05\/Best-woocommerce-hosting.webp?fit=1200%2C658&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2026\/05\/Best-woocommerce-hosting.webp?fit=1200%2C658&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2026\/05\/Best-woocommerce-hosting.webp?fit=1200%2C658&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2026\/05\/Best-woocommerce-hosting.webp?fit=1200%2C658&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2026\/05\/Best-woocommerce-hosting.webp?fit=1200%2C658&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":4508,"url":"https:\/\/phpyouth.com\/blog\/change-site-language-wordpress\/","url_meta":{"origin":4690,"position":4},"title":"How to change Site language in WordPress","author":"RK Jajoria","date":"September 19, 2017","format":false,"excerpt":"Hello Friends, today we will learn about\u00a0How to change Site language in WordPress. Let me first tell you guys why we wrote this article today. A few days ago, one of my subscribers asked me that he is having a problem in the approval of Google Adsense on his website.\u2026","rel":"","context":"In &quot;Wordpress&quot;","block_context":{"text":"Wordpress","link":"https:\/\/phpyouth.com\/blog\/category\/wordpress\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2017\/09\/1-1.png?fit=560%2C315&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2017\/09\/1-1.png?fit=560%2C315&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2017\/09\/1-1.png?fit=560%2C315&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":8596,"url":"https:\/\/phpyouth.com\/blog\/increase-conversions-with-woocommerce-file-upload-features\/","url_meta":{"origin":4690,"position":5},"title":"Increase Conversions with WooCommerce File Upload Features","author":"RK Jajoria","date":"March 26, 2025","format":false,"excerpt":"Have you ever lost a sale because your customers were unable to upload relevant files during the checkout process? In the world of e-commerce, convenience is essential for improving sales conversion numbers. The WooCommerce file upload feature plays a crucial role in enhancing customer experience by allowing them to submit\u2026","rel":"","context":"In &quot;Plugins&quot;","block_context":{"text":"Plugins","link":"https:\/\/phpyouth.com\/blog\/category\/wordpress\/plugins\/"},"img":{"alt_text":"Phpyout Increase Conversions with WooCommerce File Upload Features","src":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2025\/02\/Increase-Conversions-with-WooCommerce-File-Upload-Features.webp?fit=1068%2C604&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2025\/02\/Increase-Conversions-with-WooCommerce-File-Upload-Features.webp?fit=1068%2C604&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2025\/02\/Increase-Conversions-with-WooCommerce-File-Upload-Features.webp?fit=1068%2C604&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2025\/02\/Increase-Conversions-with-WooCommerce-File-Upload-Features.webp?fit=1068%2C604&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2025\/02\/Increase-Conversions-with-WooCommerce-File-Upload-Features.webp?fit=1068%2C604&ssl=1&resize=1050%2C600 3x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/phpyouth.com\/blog\/wp-json\/wp\/v2\/posts\/4690","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/phpyouth.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/phpyouth.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/phpyouth.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/phpyouth.com\/blog\/wp-json\/wp\/v2\/comments?post=4690"}],"version-history":[{"count":0,"href":"https:\/\/phpyouth.com\/blog\/wp-json\/wp\/v2\/posts\/4690\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/phpyouth.com\/blog\/wp-json\/wp\/v2\/media\/4691"}],"wp:attachment":[{"href":"https:\/\/phpyouth.com\/blog\/wp-json\/wp\/v2\/media?parent=4690"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/phpyouth.com\/blog\/wp-json\/wp\/v2\/categories?post=4690"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/phpyouth.com\/blog\/wp-json\/wp\/v2\/tags?post=4690"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}