Friday, 15 March 2013

php - 100% cpu usage with wordpress theme customizer suPHP -



php - 100% cpu usage with wordpress theme customizer suPHP -

i running single core 512mb do(digital ocean) droplet , cent os 6 have configured php utilize mod_suphp security reasons. running multiple sites off box @ point, want isolate them eachother. suphp setup went perfectly, able install wordpress , set databases, ftp etc. issue having actions spike php-cgi process 100% , timeout. wordpress customizer hangs on save while accessing admin-ajax.php file. 1 of themes using (the x theme) when trying upload json file ended hanging , timing out on line 30 of wp-includes/compat.php on cpanel servers, used suphp without issue, , same actions , themes work fine. difference notice php process on cpanel machines "php" whereas mine "php-cgi". have no thought if part of issue, help @ identifying why , how wordpress scripts overloading cpu helpful. of import note site not under traffic when happens, in development. there on 50% of ram used while cpu spiking not running out of memory

suphp processes file every single time called, due this, causes lot of cpu usage. suphp in general uses lot of cpu, adding wordpress mix makes cpu usage more. recommend using fastcgi php handler uses low amount of cpu high amount of memory. in add-on able utilize opcode caching such apc or memcached, causing wordpress faster. in regards security concern, fastcgi has same security suphp , can upload things no problem. 1 little thing note though going need tweak settings quite bit before right, there errors @ first possibly, answers of can courtesy of google. also, not sure how operates if need prepare permissions , have cpanel, here nice article: http://boomshadow.net/tech/fixes/fixperms-script/

php wordpress centos digital-ocean suphp

No comments:

Post a Comment