CodeIgniter Forums
Nginx or Apache - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9)
+--- Thread: Nginx or Apache (/showthread.php?tid=71318)



Nginx or Apache - randvader - 07-31-2018

Hello

I would like to receive your comments and recommendation to use Nginx or Apache with CI 3.1.9 for a high scale site.

Thanks


RE: Nginx or Apache - jreklund - 08-01-2018

I replaced Apache with Nginx and PHP-FPM due to the fact we ran into some memory overflow problems and httpd services crashed and the whole server needed a physical restart. I ran both Apache and PHP in the same resource and not separate as right know. So can't be 100% sure if were just mod_php or apache itself.

Haven't had a single crash now, so I'm going Nginx all the way now. And we can also handle a higher load (PHP-FPM will handle more than mod_php too).


RE: Nginx or Apache - randvader - 08-01-2018

(08-01-2018, 01:00 AM)jreklund Wrote: I replaced Apache with Nginx and PHP-FPM due to the fact we ran into some memory overflow problems and httpd services crashed and the whole server needed a physical restart. I ran both Apache and PHP in the same resource and not separate as right know. So can't be 100% sure if were just mod_php or apache itself.

Haven't had a single crash now, so I'm going Nginx all the way now. And we can also handle a higher load (PHP-FPM will handle more than mod_php too).

Thanks for your advice!