Portal Home > Knowledgebase > Articles Database > Need help with Apache / Nginx + FPM


Need help with Apache / Nginx + FPM




Posted by bonjurkes, 07-05-2011, 05:16 PM
Here is my issue, I decided to switch to nginx with fpm because apache sometimes using too much memory on my linode 512 server. It turned out that it's related with some spam bots. Anyways, my main problem is, nginx + fpm gives poor performance compared to apache + mod_php. I am not that good with server optimization stuff but i will share my nginx.conf, fpm.conf, httpd.conf and other required stuff. Main problem : Using Wordpress 3.2, site loads soooo slow on nginx, there is apc on server but still if i switch to apache then everything gets fired up, with nginx, especially wp-admin is extreme slow. Here is my apache. conf : http://pastebin.com/mgUYjBYy My php.ini : http://pastebin.com/0n9D2vU2 My nginx.conf : http://pastebin.com/hKh3Mky4 My fpm poold.conf : http://pastebin.com/KiFh65wt My fpm main.conf : http://pastebin.com/KUc8Ut1j My WP site nginx conf : http://pastebin.com/DSTp4CFf I actually want to use nginx + php5 fpm, but like i mentioned it's so slow (Exactly my wordpress site), everything looks fine with apache2 + mod_php but like i said i had few memory issues with apache. edit : i am using prefork on apache2



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
New Reseller (Views: 635)

Language: