Skip to content
WJunction - Webmaster Forum

how to install varnish in cpanel ?

Status
Not open for further replies.
how to install varnish in cpanel ?
is this the way ?? any one tried ?

Code:
rpm --nosignature -i [URL="http://repo.varnish-cache.org/redhat/el5/noarch/varnish-release-2.1-1.noarch.rpm"] http://repo.varnish-cache.org/redhat/el5/noarch/varnish-release-2.1-2.noarch.rpm[/URL]   
# yum install varnish
 

10 comments

Yes, this will install Varnish. But this is only the beginning of the journey.

You will have to configure Varnish to be on port 80 and send cache misses to a backed (you can configure Apache to listen on an alternative ports trough WHM > Tweak Settings ).

When you install varnish, you will need to configure the following file:
/etc/sysconfig/varnish for Varnish startup options.

IMPORTANT: For high profile sites, a lot of things to cache (images, files etc) install only on 64-bit systems

Next, configure the VCL rules in /etc/varnish/default.vcl (or any other .vcl file, just edit the path in /etc/sysconfig/varnish ).

When you have everything setup properly, start varnish, start apache on alternative port and run varnishstat and check the cache hit and cache miss to see how your website is caching and is served by Varnish.


I am running few Wordpress blogs on a Varnish setup, it's magical to see how number of visitors is growing, but the server load stays the same ( example setup: Xeon 3.0 Ghz (4 cores), 5k visitors daily, server load ranges from 0.1 - 1.2 depending on the cachingof the wordpress setions (custom VCL rules)).

Also, I would suggest Cacti/Munin monitoring of your Varnish setup to see how much memory is used, backend traffic etc.
 
Both will work IF configured properly, that is the main requirment.

Example configuration:
Varnish (port 80) -> nginx (port 8000) -> Apache (Port 8080)

Do you have the nginx installer script with all nginx hooks to generate vhosts when a new cPanel account is created ?

If you are unsure how to do this or anything, hit me up, I'd be glad to help you out.
 
The plugin is still in beta so we're controlling trial order processing. Onel0ve, I had received your PM and activated your order several days ago.

Best
 
Both will work IF configured properly, that is the main requirment.

Example configuration:
Varnish (port 80) -> nginx (port 8000) -> Apache (Port 8080)

Do you have the nginx installer script with all nginx hooks to generate vhosts when a new cPanel account is created ?

If you are unsure how to do this or anything, hit me up, I'd be glad to help you out.

where can one get the nginx installer script to generate the hooks? is this it? http://nginxcp.com
where can i change the default port nginx listens to?

thanks
scott
 
Status
Not open for further replies.

About the author

onel0ve
Active Member · Joined
1,275
Messages
64
Reactions
48
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom