{"id":4690,"date":"2018-04-12T19:36:26","date_gmt":"2018-04-12T14:06:26","guid":{"rendered":"https:\/\/phpyouth.com\/blog\/?p=4690"},"modified":"2026-07-15T18:11:24","modified_gmt":"2026-07-15T12:41:24","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<p><code>memory_limit = 256M;<\/code><\/p>\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<p><code>memory_limit = 512M;<\/code><\/p>\n<p>By following these steps, you can successfully Increase WordPress Memory Limit using php.ini and avoid errors like &#8220;Allowed memory size exhausted&#8221;. This also helps improve the performance of your WordPress site when running resource-heavy plugins or themes.<\/p>\n<p><strong>Pro-Tip: <\/strong>If you are running into persistent technical limits while configuring a complex membership platform, it might save you hours to <a href=\"https:\/\/phpyouth.com\/blog\/hire-memberpress-developer\/\">hire a MemberPress developer<\/a> to audit your server environment.<\/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 setting [&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_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"Increase WordPress Memory Limit using php.ini","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"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_publicize_connections":[],"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?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2018\/04\/php_value-memory_limit-512M.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2018\/04\/php_value-memory_limit-512M.png?resize=525%2C300&ssl=1 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?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2018\/04\/Copy-of-fresh-aquasummit.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2018\/04\/Copy-of-fresh-aquasummit.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":13539,"url":"https:\/\/phpyouth.com\/blog\/php-performance-optimization-high-traffic-sites\/","url_meta":{"origin":4690,"position":2},"title":"How to Optimize PHP Performance for High-Traffic Sites","author":"RK Jajoria","date":"August 13, 2026","format":false,"excerpt":"Quick answer: PHP performance optimization for high-traffic sites comes down to five levers: run a current PHP version with OPcache enabled, add an object cache like Redis, tune PHP-FPM worker limits to your server's real capacity, cut database query overhead, and profile before you guess. Sites that skip profiling almost\u2026","rel":"","context":"In &quot;Speed Performance&quot;","block_context":{"text":"Speed Performance","link":"https:\/\/phpyouth.com\/blog\/category\/wordpress\/speed-performance\/"},"img":{"alt_text":"php performance optimization","src":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2026\/08\/Optimize-PHP-Performance.webp?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2026\/08\/Optimize-PHP-Performance.webp?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2026\/08\/Optimize-PHP-Performance.webp?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2026\/08\/Optimize-PHP-Performance.webp?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2026\/08\/Optimize-PHP-Performance.webp?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2026\/08\/Optimize-PHP-Performance.webp?resize=1400%2C800&ssl=1 4x"},"classes":[]},{"id":13566,"url":"https:\/\/phpyouth.com\/blog\/wordpress-speed-optimization\/","url_meta":{"origin":4690,"position":3},"title":"WordPress Speed Optimization: The Complete PHP Performance Guide for High-Traffic Sites","author":"RK Jajoria","date":"August 14, 2026","format":false,"excerpt":"Most WordPress speed advice stops at plugins and caching. That covers the front end, but on a high-traffic site the real bottleneck usually sits deeper: how PHP itself is configured, cached, and processed on your server. This guide walks through WordPress speed optimization from the PHP layer up, with the\u2026","rel":"","context":"In &quot;Speed Performance&quot;","block_context":{"text":"Speed Performance","link":"https:\/\/phpyouth.com\/blog\/category\/wordpress\/speed-performance\/"},"img":{"alt_text":"WordPress Speed Optimization","src":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2026\/08\/WordPress-Speed-Optimization.webp?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2026\/08\/WordPress-Speed-Optimization.webp?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2026\/08\/WordPress-Speed-Optimization.webp?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2026\/08\/WordPress-Speed-Optimization.webp?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2026\/08\/WordPress-Speed-Optimization.webp?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2026\/08\/WordPress-Speed-Optimization.webp?resize=1400%2C800&ssl=1 4x"},"classes":[]},{"id":5000,"url":"https:\/\/phpyouth.com\/blog\/remove-wc_sessions-in-woocommerce\/","url_meta":{"origin":4690,"position":4},"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?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2019\/07\/Remove-woocommerce-sessions.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2019\/07\/Remove-woocommerce-sessions.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":12487,"url":"https:\/\/phpyouth.com\/blog\/best-hosting-for-woocommerce\/","url_meta":{"origin":4690,"position":5},"title":"Best Hosting for WooCommerce 2026: Top Picks for Online Stores","author":"RK Jajoria","date":"May 12, 2026","format":false,"excerpt":"Best hosting for WooCommerce in 2026 means real-world performance, not spec sheets. 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\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?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2026\/05\/Best-woocommerce-hosting.webp?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2026\/05\/Best-woocommerce-hosting.webp?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2026\/05\/Best-woocommerce-hosting.webp?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2026\/05\/Best-woocommerce-hosting.webp?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2026\/05\/Best-woocommerce-hosting.webp?resize=1400%2C800&ssl=1 4x"},"classes":[]}],"jetpack_featured_media_url":"https:\/\/phpyouth.com\/blog\/wp-content\/uploads\/2018\/04\/fresh-aquasummit.png","_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":2,"href":"https:\/\/phpyouth.com\/blog\/wp-json\/wp\/v2\/posts\/4690\/revisions"}],"predecessor-version":[{"id":13030,"href":"https:\/\/phpyouth.com\/blog\/wp-json\/wp\/v2\/posts\/4690\/revisions\/13030"}],"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}]}}