Results 1 to 15 of 15

Thread: Nginx + CloudLinuxOS + Varnish

  1. #1
    Registered User
    Join Date
    Dec 2011
    Posts
    3
    cPanel/WHM Access Level

    Root Administrator

    Default Nginx + CloudLinuxOS + Varnish

    Hello, Anybody uses the server: Nginx + CloudLinuxOS + Varnish And could post a tutorial on how to install nginx.org? I await answers. : D

  2. #2
    Member
    Join Date
    Jul 2010
    Posts
    14

    Default Re: Nginx + CloudLinuxOS + Varnish

    nope it will messed up server
    you can run lite speed with cloudlinux

  3. #3
    Member
    Join Date
    Oct 2006
    Posts
    35

    Default Re: Nginx + CloudLinuxOS + Varnish

    Quote Originally Posted by onel0ve View Post
    nope it will messed up server
    you can run lite speed with cloudlinux
    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. #4
    Member This forum account has been confirmed by cPanel staff to represent a vendor.
    Join Date
    Mar 2010
    Location
    Princeton, New Jersey, United States
    Posts
    112

    Default Re: Nginx + CloudLinuxOS + Varnish

    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.
    Igor Seletskiy
    CEO @ CloudLinux

  5. #5
    Registered User
    Join Date
    Dec 2011
    Posts
    3
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Nginx + CloudLinuxOS + Varnish

    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.
    Thank you.
    It seems that I will use the same varnish+cloudlinux.

  6. #6
    Member
    Join Date
    Jun 2006
    Posts
    79

    Default Re: Nginx + CloudLinuxOS + Varnish

    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. #7
    Member This forum account has been confirmed by cPanel staff to represent a vendor.
    Join Date
    Mar 2010
    Location
    Princeton, New Jersey, United States
    Posts
    112

    Default Re: Nginx + CloudLinuxOS + Varnish

    Varnish can catch/serve static content as well, so why have 3 layers, if you can have only two?
    Igor Seletskiy
    CEO @ CloudLinux

  8. #8
    Member Juanzo's Avatar
    Join Date
    Feb 2005
    Location
    Buenos Aires, Argentina
    Posts
    38
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Nginx + CloudLinuxOS + Varnish

    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.
    Duplika :: Web Hosting en Argentina
    Hosting con 99,9% uptime por SLA, CloudLinux y SSD

  9. #9
    Member
    Join Date
    Jun 2006
    Posts
    79

    Default Re: Nginx + CloudLinuxOS + Varnish

    Quote Originally Posted by iseletsk View Post
    Varnish can catch/serve static content as well, so why have 3 layers, if you can have only two?
    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. #10
    Member
    Join Date
    Jun 2006
    Posts
    79

    Default Re: Nginx + CloudLinuxOS + Varnish

    Quote Originally Posted by Juanzo View Post
    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.
    You've to tweak and create exceptions, it's not difficult.

  11. #11
    Member
    Join Date
    May 2011
    Posts
    34

    Default Re: Nginx + CloudLinuxOS + Varnish

    Quote Originally Posted by xanubi View Post
    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.
    Do you use the cpanel nginx plugin and the cpanel varnish plugin on shared hosting server?

  12. #12
    Registered User
    Join Date
    Jul 2012
    Posts
    2
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Nginx + CloudLinuxOS + Varnish

    Quote Originally Posted by Sannin View Post
    Do you use the cpanel nginx plugin and the cpanel varnish plugin on shared hosting server?
    I use ngnix/cpanel/cloudlinux with this plugin cPnginx : cPanel Nginx plugin - Turbo boost your cPanel server with high stability

  13. #13
    Registered User
    Join Date
    Oct 2011
    Posts
    1
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Nginx + CloudLinuxOS + Varnish

    I would suggest you to use apachebooster Apachebooster | High speed webserver configuration, it will freely work with cloudlinux.

  14. #14
    Member
    Join Date
    May 2008
    Location
    Islamabad, Pakistan, Pakistan
    Posts
    70
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Nginx + CloudLinuxOS + Varnish

    Quote Originally Posted by prajithp View Post
    I would suggest you to use apachebooster Apachebooster | High speed webserver configuration, it will freely work with cloudlinux.
    I installed apache booster and now getting 502 gateway error please help to resolve it.

  15. #15
    Member prajithp13's Avatar
    Join Date
    Jun 2012
    Location
    India
    Posts
    26
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Nginx + CloudLinuxOS + Varnish

    Please run the below command, paste here the output.

    /etc/init.d/apachebooster status.

Similar Threads

  1. Is nginx admin is best nginx plugin for WHM?
    By lowhigh in forum cPanel & WHM Discussions
    Replies: 12
    Last Post: 02-14-2013, 04:39 AM
  2. Varnish question
    By MikeTFH in forum Optimization
    Replies: 3
    Last Post: 01-29-2012, 06:34 PM
  3. Install Varnish on cpanel server
    By samuelmf in forum Optimization
    Replies: 2
    Last Post: 01-29-2012, 06:34 PM
  4. Replies: 6
    Last Post: 08-19-2011, 03:38 AM
  5. Varnish cannot connect to Apache on 127.0.0.1
    By John_B in forum cPanel & WHM Discussions
    Replies: 3
    Last Post: 08-08-2011, 12:47 PM