Hello to all, Right now i am facing memory limit problem in my server. I mean i m hosted with a company, he moved his servers to other hoster and now we are facing a php memory limit problem which is occurring in every step. Like when we are doing post, when we upload any picture and when ever we are doing anything to our wordpress admin panel. Kindly please guide to solve this. I don't want my hoster to solve this. I want to learn it myself. I think it can be solved by increasing. php.ini file limit. what do others say? Plz Plz Guide me. Thanks. regards. Paksfun.
1st WAY: you can increase the memory limit, by editing php.ini. 1) Open php.ini 2) Go to this section (around line 300) ;;;;;;;;;;;;;;;;;;; ; Resource Limits ; ;;;;;;;;;;;;;;;;;;; 3) you will find this line or something similar (different memory limit) memory_limit = 128M ; Maximum amount of memory a script may consume (128MB) 4) edit your memory_limit to satisfy ur needs example: memory_limit = 512M; 2nd way: Create .htaccess in your folder & write ini_set('memory_limit', '512M'); --------------------------------------------------------- if you need more help , you can pm me and I will be glad to Help and for FREE ! if you like my post , please add me some reputation
If you're getting out of memory errors on the WordPress admin panel then the memory limit is likely to be set far lower than is reasonable. I'd bring this up with the host, to be honest. It's a sign of them trying to cram too many sites on a single server. It's unlikely that you'll be able to override the hosts memory limit via htaccess or ini_set.