The Community Forums

Interact with an entire community of cPanel & WHM users.
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Nginx + CloudLinuxOS + Varnish

Discussion in 'CloudLinux' started by marcosv, Dec 6, 2011.

  1. marcosv

    marcosv Registered

    Joined:
    Dec 6, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello, Anybody uses the server: Nginx + CloudLinuxOS + Varnish And could post a tutorial on how to install nginx.org? I await answers. : D
     
  2. onel0ve

    onel0ve Member

    Joined:
    Jul 14, 2010
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    nope it will messed up server
    you can run lite speed with cloudlinux
     
  3. weetabix

    weetabix Well-Known Member

    Joined:
    Oct 26, 2006
    Messages:
    56
    Likes Received:
    1
    Trophy Points:
    8
    Can you elaborate a bit please. You mean that the common setup with nginx as proxy will not work at all in cloudlinux? If so, why?
     
  4. iseletsk

    iseletsk Well-Known Member

    Joined:
    Mar 3, 2010
    Messages:
    163
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Princeton, New Jersey, United States
    You can run nginx+cloudlinux or varnish+cloudlinux
    Running nginx+varnish at the same time makes little sense as they both work as reverse proxy.
     
  5. marcosv

    marcosv Registered

    Joined:
    Dec 6, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Thank you.
    It seems that I will use the same varnish+cloudlinux.
     
  6. xanubi

    xanubi Well-Known Member

    Joined:
    Jun 28, 2006
    Messages:
    86
    Likes Received:
    1
    Trophy Points:
    8
    Igor, it makes perfect sens nginx+varnish+apache+cloudlinux.

    Nginx serves STATIC CONTENT and pass the rest to varnish. Varnish makes cache for Apache php in SUPHP.
    It makes very sense and is a very powerful combination, it's faster than fastcgi and mod_php.

    Cloudlinux will do is work at the apache level, and at the operation environment with cagefs.
     
  7. iseletsk

    iseletsk Well-Known Member

    Joined:
    Mar 3, 2010
    Messages:
    163
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Princeton, New Jersey, United States
    Varnish can catch/serve static content as well, so why have 3 layers, if you can have only two?
     
  8. Duplika

    Duplika Well-Known Member

    Joined:
    Feb 26, 2005
    Messages:
    56
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Buenos Aires, Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    We are only using Nginx since AFAIK, Varnish is useless unless you plan to cache content from the sites.

    In our case, that would involve clients complaining that they are uploading files to the server and having to wait X seconds / minutes until they are updated.
     
  9. xanubi

    xanubi Well-Known Member

    Joined:
    Jun 28, 2006
    Messages:
    86
    Likes Received:
    1
    Trophy Points:
    8
    Igor, it's better for performance.
    When you've a server with only 4g of memory and many clients, THOUSANDS of static content exists. Varnish cannot cache everything.
    Nginx can serve all that very quickly, resolving all the problems.

    Then, varnish will cache for little time php (specially if it is suphp), working like some kind of php cache.

    The results are brilliant for shared hosting.

    Another thing, when the varnish cache expires, apache will have to serve the static content until is cached again, which will make load on the server if you have many. With nginx, that doesn't happen.
     
  10. xanubi

    xanubi Well-Known Member

    Joined:
    Jun 28, 2006
    Messages:
    86
    Likes Received:
    1
    Trophy Points:
    8
    You've to tweak and create exceptions, it's not difficult.
     
  11. Sannin

    Sannin Active Member

    Joined:
    May 19, 2011
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    Do you use the cpanel nginx plugin and the cpanel varnish plugin on shared hosting server?
     
  12. wvelludo

    wvelludo Member

    Joined:
    Jul 5, 2012
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
  13. prajithp

    prajithp Registered

    Joined:
    Oct 23, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
  14. hostnex

    hostnex Well-Known Member

    Joined:
    May 2, 2008
    Messages:
    77
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Islamabad, Pakistan, Pakistan
    cPanel Access Level:
    Root Administrator
  15. prajithp13

    prajithp13 Member

    Joined:
    Jun 12, 2012
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Please run the below command, paste here the output.

    /etc/init.d/apachebooster status.
     

Share This Page