![]() On a different site, I was getting HTTP ERROR 500 when I tried to edit a page. I have not encountered problems with PHP 7.3 on my WordPress sites. If you want to try that, go for it and let me know how it goes in the comments!īe sure to re-test your site and plugins after you upgrade, as there might be some old code not compatible with PHP 7.x. I’m considering that to be an advanced solution beyond the scope of this article. Note that there are other solutions to reducing PHP memory usage like Xcache. (This procedure also works for upgrading to PHP5.5 and beyond). Here is an article describing what I did to upgrade from PHP5.3 to PHP5.4 on Amazon AMI. If you are running your own Linux server, it’s more complicated. If you are on shared hosting like GoDaddy, 1&1, Dreamhost, etc., there is often a button in the control panel to upgrade. I’m now using PHP 7.3 on all of my personal and client sites. My Number One Recommendation – Upgrade PHPīased on these findings, my number one suggestion to reduce WordPress memory usage is to upgrade from PHP 5.x on your server to PHP 7.x, which is even faster and more memory-efficient. This report shows my memory usage before and after upgrading to PHP5.4. It was clear, switching from PHP5.3 to PHP5.4 saved almost 18MB of memory! That is huge!!! After I upgraded that server to PHP5.4, it used 30.0MB. I had another WordPress site running on Amazon EC2 with Amazon AMI, running PHP5.3. It seemed like a smoking gun, but I needed to do one more experiment to be sure. Sure enough, I checked and found out that my local server was running PHP5.4 while my live server was running PHP5.3. Googling some more, I read that PHP5.4 uses significantly less memory than PHP5.3, by a huge amount, on the order of cutting it in half. ![]() How could this be? There must have been something in the server setup that caused the discrepancy. live site: the same site with the same plugins was using 34.13MB on my local server and 60.0MB on the live site. I installed this plugin on my local development site as well and was totally blown away when I compared the memory usage on my local site vs. ![]() When I first got this error, I installed the TPC! Memory Usage Plugin on my live site. Otherwise, here’s my story: How I Investigated This Problem If you want to go directly to my results, jump ahead to my recommendations.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |