Need Advice? CALL: +61 417949565

Riksi - web design and development

  • Home
  • ABOUT US
  • OUR WORK
  • BLOG
  • CONTACT US
  • Home
  • BLOG
  • Web developing
  • General
  • Update PHP Memory Limit

Update PHP Memory Limit

Update PHP Memory Limit

If you get the memory limit error like bellow, in your WordPress site, you can update the PHP memory on WordPress, you can do one of the following ways.

1
2
3
4
5
 
 
fatal error: allowed memory size of 5547889 bytes exhausted
 
 

Update PHP.ini file

In php.ini file, search for the memory_limit line, and update the value:

1
2
3
4
5
 
 
memory_limit = 256M;
 
 

wp-congig.php file

If you don’t have access to the server setting, you can update the wp-config.php file. Open the file and add the following at the end of the page.

1
2
3
4
5
 
 
define('WP_MEMORY_LIMIT', '256M');
 
 

.htaccess file

last not least, update the .htaccess file in the root of the site and add the following code:

1
2
3
4
5
 
 
php_value memory_limit 256M
 
 
Tagged under: .htaccess
Nick
Saturday, 15 February 2020 / Published in General, PHP

What you can read next

Magento & WordPress Password Online Hash Generator
Remove illigal character in mysql string
Linux/Mac create symlink folder

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Archive

  • General
    • Smart Home
  • Web developing
    • command line
    • CSS
    • General
    • git
    • Javascript
    • Laravel
    • Magento
    • MySQL
    • PHP
    • Security
    • Shopify
    • Wordpress

Recent Posts

  • Install HomeAssistant on Raspberry pi

  • Shopify ERR_INVALID_ARG_TYPE Error

Riksi

Riksi is a creative, professional & cutting-edge custom web design and development company.

HERE TO HELP

  • BLOG
  • Contact Us
  • Our Work
  • About Us

New on Blog

  • Install HomeAssistant on Raspberry pi

    To install it, We need to connect the SD card t...
  • Shopify ERR_INVALID_ARG_TYPE Error

    fix the Internal Server Error occurred while in...

GET IN TOUCH

T: (+61) 417 949 565
Email: [email protected]

Contact Us
Fill out the form and our team will be in touch with you promptly. Thank you for your interest!

AU & NZ
T: (+613) 9014 9495
T: (+61) 417 949 565
Email: [email protected]


US & Canada
Email: [email protected]

NAME

EMAIL

PROJECT TYPE
PROJECT BUDGET

MESSAGE

Could not authenticate you.

Whats on Instagram

Loading...

Tags

.htaccess calculation cherry pick composer content css deployer documentation error flex general knowledge get started git git stash hack javascript log mysql package password php PHP Trick replace scss shopify sidebar ssh symlink sync trick ubuntu windows 10 wordpress trick wp
  • GET SOCIAL
Riksi - web design and development

© 2020 All rights reserved. Riksi.com.

TOP