Results 1 to 10 of 10
  1. #1

    Need help, Nginx or Apache for my site?

    hello, i'm new to VPS management, so i'm hard to decide.
    I 'll buy a VPS on DigitalOcean, just 512 MB RAM.
    I'use VPS for my website. My website is a video website.

    My website just one-page. Because All Request is AJAX, load video link from database. Therefore, all Request is process PHP file.
    It will have about 30- 50.000 view/month,and 100-200 symulta
    neous connect!
    I'm hard to decide for performance, Nginx? Apache? Lighttpd?
    So i need help from you, what web server for me? and why

  2. #2
    Join Date
    Mar 2003
    Nginx with a combination of php-fpm is great.
    Specially 4 You
    JoneSolutions.Com ( Jones.Solutions ) is on the net 24/7 providing stable and reliable web hosting solutions and services since 2001

  3. #3
    thank, but why you tell me that???
    Explain me for them.

  4. #4
    Join Date
    May 2013
    Because nginx is asynchronous threaded in nature and consume very less memory and cpu compared to Apache. PHP-FPM is daemonized and is known to be the best handler for high performance. Both of these together is on the best combination for high traffic PHP website. But even with that, I doubt your VPS can handle 100-200 simultaneous users. In addition to web side, MySQL also needs some resource ( as per your explanation, each requests need MySQL query ). So you may need a VPS with higher resources.

  5. #5
    nginx protects from ddos too.

  6. #6
    Join Date
    Feb 2006
    Kepler 62f
    I have nginx reverse-proxy to Apache 2.4. Works great.
    || Need a good host?
    || See my Suggested Hosts List || Editorial: EIG/Site5/Arvixe/Hostgator Alternatives

  7. #7
    Join Date
    Jan 2011
    100-200 simu streams is pushing it on a droplet. Double check your assumptions.

    That aside, nginx doesn't have worker processes to block. Hence it can process new incoming request when apache otherwise would be preoccupied with already connected users. Best practice is to split the link server from the content streamers, that way you can spin up as many content servers as required. In that scenario, either apache or nginx is good enough.

  8. #8
    Join Date
    Mar 2005
    Nginx whenever you have low resources or do not require some specific Apache feature.

    We run all of our stand-alone sites on VPs's with Nginx - and also we are using Nginx on an IPV6 VPS as a reverse proxy for sites on our IPV4 Servers.
    CPanel Shared and Reseller Hosting, OpenVZ VPS Hosting. West Coast (LA) Servers and Nodes
    Running Linux since 1.0.8 Kernel!
    Providing Internet Services since 1995 and Hosting Since 2004

  9. #9
    thank all, the database have about 10.000 Record, and each user will need to read about 50-100 Record.

    So in this Situation, may I need to a No-SQL Database for improve performance?

  10. #10
    I believe NoSQL such as MongoDB will be good to be used. Try avoiding those required Memcached for processing, e.g, Redis, it need high memory allocation.

Similar Threads

  1. Apache and NginX
    By gmaister22 in forum Programming Discussion
    Replies: 9
    Last Post: 04-21-2013, 08:20 PM
  2. Replies: 8
    Last Post: 09-22-2012, 03:48 AM
  3. Apache or Nginx?
    By Corx in forum VPS Hosting
    Replies: 30
    Last Post: 07-20-2012, 03:46 AM
  4. Nginx /Apache vs. LiteSpeed vs. Nginx /PHP FPM
    By Cyrusexxp in forum Web Hosting
    Replies: 5
    Last Post: 05-12-2012, 10:52 AM
  5. Replies: 0
    Last Post: 06-03-2011, 04:57 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts