The Little Guy Posted September 11, 2012 Share Posted September 11, 2012 So, I posted my first blog post ever entitled "Nginx vs. Apache"! http://blog.phpsnips.com/?p=22 I was hoping I could get your guys' thoughts on the post. The post isn't really too original, but its a starting point! Quote Link to comment https://forums.phpfreaks.com/topic/268271-first-blog-post-nginx-vs-apache/ Share on other sites More sharing options...
premiso Posted September 11, 2012 Share Posted September 11, 2012 How did you run php? mod_php for apache I would assume, how about with nginx? How about trying both running php-fpm over fcgi and see what the results are for a better comparison? 1,000 hits is nothing, use the apachebenchmark tool and truly test with concurrent connections etc and see how each handle. You can also tweak, both nginx and apache, to do different performances etc. So you would need to also get those settings as close as possible to each other. Quote Link to comment https://forums.phpfreaks.com/topic/268271-first-blog-post-nginx-vs-apache/#findComment-1377135 Share on other sites More sharing options...
The Little Guy Posted September 11, 2012 Author Share Posted September 11, 2012 I couldn't get php-fpm, I tried searching for it, but nothing for windows. Apache I used: mod_php Nginx I used: c:\php\php-cgi.exe -b 127.0.0.1:9000 -c c:\php Quote Link to comment https://forums.phpfreaks.com/topic/268271-first-blog-post-nginx-vs-apache/#findComment-1377138 Share on other sites More sharing options...
premiso Posted September 11, 2012 Share Posted September 11, 2012 Nginx I used: c:\php\php-cgi.exe -b 127.0.0.1:9000 -c c:\php Not really comparable, maybe if you got nginx to use fcgi it might be comparable. But that alone flaws your data. There is a reason they call it "fast cgi" vs just "cgi". Quote Link to comment https://forums.phpfreaks.com/topic/268271-first-blog-post-nginx-vs-apache/#findComment-1377141 Share on other sites More sharing options...
premiso Posted September 12, 2012 Share Posted September 12, 2012 Also, you are using TCP for the php process, I do not think mod_php uses TCP, also what other modules for apache are configured? Something like mod_cache can skew the results as well without tuning Nginx to do similar as well as the mpm module. Quote Link to comment https://forums.phpfreaks.com/topic/268271-first-blog-post-nginx-vs-apache/#findComment-1377142 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.