Hi, I often get the 500 internal server error message on my site insanevisions.com. When I refresh the page one more time, it works fine again :s [Fri May 05 01:52:11.526356 2017] [:error] [pid 304782:tid 140548937557760] (12)Cannot allocate memory: [client 66.249.79.168:32970] couldn't create child process: /usr/sbin/suphp for /home/efsaneyi/insanevisions.com/index.php [Fri May 05 01:52:11.522922 2017] [:error] [pid 304782:tid 140548937557760] (12)Cannot allocate memory: [client 66.249.79.168:32970] couldn't create child process: /usr/sbin/suphp for /home/efsaneyi/insanevisions.com/index.php [Fri May 05 01:51:28.455505 2017] [:error] [pid 293341:tid 140548996306688] (12)Cannot allocate memory: [client 77.92.158.116:57520] couldn't create child process: /usr/sbin/suphp for /home/efsaneyi/insanevisions.com/index.php [Fri May 05 01:51:28.451777 2017] [:error] [pid 293341:tid 140548996306688] (12)Cannot allocate memory: [client 77.92.158.116:57520] couldn't create child process: /usr/sbin/suphp for /home/efsaneyi/insanevisions.com/index.php [Fri May 05 01:51:16.753492 2017] [:error] [pid 293586:tid 140548979521280] (12)Cannot allocate memory: [client 105.229.77.112:61717] couldn't create child process: /usr/sbin/suphp for /home/efsaneyi/insanevisions.com/index.php, referer: http://www.insanevisions.com/what-type-of-pokies-game-suits-you [Fri May 05 01:51:16.749490 2017] [:error] [pid 293586:tid 140548979521280] (12)Cannot allocate memory: [client 105.229.77.112:61717] couldn't create child process: /usr/sbin/suphp for /home/efsaneyi/insanevisions.com/wp-admin/admin-ajax.php, referer: http://www.insanevisions.com/what-type-of-pokies-game-suits-you [Fri May 05 01:46:23.229668 2017] [:error] [pid 260616:tid 140548954343168] (12)Cannot allocate memory: [client 194.78.1.242:24582] couldn't create child process: /usr/sbin/suphp for /home/efsaneyi/insanevisions.com/index.php, referer: http://www.insanevisions.com/what-type-of-pokies-game-suits-you [Fri May 05 01:46:23.225531 2017] [:error] [pid 260616:tid 140548954343168] (12)Cannot allocate memory: [client 194.78.1.242:24582] couldn't create child process: /usr/sbin/suphp for /home/efsaneyi/insanevisions.com/wp-admin/post.php, referer: http://www.insanevisions.com/what-type-of-pokies-game-suits-you When I check my Cpanel I see this. How can I solve it please?
Are you on shared hosting? This is something you should probably ask your host about... What is the current memory limit? How much traffic are you getting? If you have cPanel you may be able to check if you are maxing out your resource allowance. I know CloudLinux servers add resource stats in cPanel. I would guess it is in fact CloudLinux hitting your memory limit. You should look at ways you can optimise your WP installation or move to a VPS/better host.
You have an insanely weighty front page. With or without cache, it loads up at over half a MB on EACH LOAD - if you have a few visitors, that will quickly add up. You should definitely loook into optimizing your site quite a bit. Just as a comparison: my uncached dev-site loads in at 1.12 MB on first, unached load. After caching, it loads in at 98kB. That is less than 10% of the uncached, first load.
I just loaded it on a Retina display and I'm getting 20 console errors relating to images not found. You are using retina.js which detects hi-dpi/ppi displays and serves images that are twice the size to avoid blurring. You're not actually creating the retina versions of images so its giving me an error on every single image... Considering most modern smartphones use high res displays your website will be throwing lots of errors on each page load, which can add a small amount of overhead. Herein lies the problem with WordPress.. site owners don't even know what their website is doing. I suggest removing all the rubbish you don't use and optimise whats left. Failing that move to a better web host that won't cripple your site if it generates a lot of traffic.
There are several potential causes for the 500 Internal server error problem in WordPress. If you have a VPS, or a dedicated server, make sure your server is not running out of RAM. You can check this by running the following command: free -m If you have cPanel installed on your server, it could be a problem with memory limits imposed in the Apache configuration file. If so, try removing the 'RLimitMEM' line in the httpd.conf file, and restart Apache for the changes to take effect. If the problem is solved, run: /usr/local/cpanel/bin/apache_conf_distiller --update to preserve the change.
Cannot allocate memory <--- Your server is not able to fork a php process, due to which frontend web server returns this error. All you need to have is more memory (Ram)
Yes Rlimit is the best solution as even if you increase memory still the error will occur after sometime. In other case you also need to check if your theme is well optimized.