Author Topic: How to install varnish cache on centos [CWP]  (Read 14617 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
How to install varnish cache on centos [CWP]
« on: May 18, 2014, 11:30:07 PM »
This is very simple tutorial how to use and install Varnish Cache Server on CentOS using CWP panel.

1. In your CWP menu find Varnish
2. Click on install
3. Setup Config

Default config to use/enable Varnish Cache Server is:
Code: [Select]
Apache IP: (Your Shared IP, or 127.0.0.1)
Apache port: 82
Varnish IP: (default all, if you need to change than edit config files  manually)
Varnish Port: 80
If you are getting default CWP page on your domain index then you can try setting your shared ip to 127.0.0.1


How to check if Varnish Cache Server Works?
- Using CURL command  "curl -i SERVER-IP" you will get headers and on beginning of the output try finding "X-Varnish"
- Using this website "http://www.whatismyip.com/server-headers-check/" in Response find "X-Varnish"




Default config to disable Varnish Cache and use Apache only is:
Code: [Select]
Apache IP: (Your Shared IP)
Apache port: 80
Varnish IP: (default all, if you need to change than edit config files  manually)
Varnish Port: 6081
« Last Edit: September 26, 2014, 06:47:09 PM by Administrator »
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp


Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
Re: How to install varnish cache on centos [CWP]
« Reply #1 on: July 26, 2014, 11:43:42 PM »
thanks.

but varnish is not start next restart.

don't forgat add to varnish on startup.

chkconfig --levels 235 varnish on

Offline
*
Re: How to install varnish cache on centos [CWP]
« Reply #2 on: July 31, 2014, 03:39:24 PM »
Thanks for your tip carmageddon63

Offline
*
Re: How to install varnish cache on centos [CWP]
« Reply #3 on: September 12, 2014, 02:14:59 AM »
thanks.

but varnish is not start next restart.

don't forgat add to varnish on startup.

chkconfig --levels 235 varnish on
Thanks!

Offline
***
Re: How to install varnish cache on centos [CWP]
« Reply #4 on: December 09, 2014, 10:02:34 AM »
Hi there

I currently have my shared ip setup to 127.0.0.1 as per a post i found on the forum in order to resolve an issue whereby all my sites would go to the default index page , however with the new functionality in CWP if i suspend a site it redirects me to 127.0.0.1 does anyone know a work around or better yet how to use my live ip address ?

Offline
*
Re: How to install varnish cache on centos [CWP]
« Reply #5 on: December 10, 2014, 03:36:31 AM »
suspend account redirect is set on the shared server ip address.
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp


Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
Re: How to install varnish cache on centos [CWP]
« Reply #6 on: January 21, 2015, 01:03:54 PM »
I am getting a 503 error after installing varnish :( anybody with the same problem?

Offline
*
Re: How to install varnish cache on centos [CWP]
« Reply #7 on: January 21, 2015, 07:26:04 PM »
How to disable or remove varnish? I using CWM in my VPS host.

when i want to delete the yum yum remove varnish not work.



why I want to delete? because it does not work on my VPS  :-[

please help me...
« Last Edit: January 21, 2015, 07:41:20 PM by sogellizer »

Offline
*
Re: How to install varnish cache on centos [CWP]
« Reply #8 on: January 23, 2015, 07:14:07 PM »
You can disable it. See the instructions in the first post.
Sorry for my English :(

Offline
**
Re: How to install varnish cache on centos [CWP]
« Reply #9 on: February 12, 2015, 07:42:13 PM »
Isn't there any way in which we can set the Apache IP address to my server's public IP and all the websites hosted in my server works? Setting the Apache IP to 127.0.0.1 is making my mailing function not working and also all the visitors of my website are known as visited from 127.0.0.1  Varnish should work correctly with my server's public IP set in the Apache's IP...

Offline
*
Re: How to install varnish cache on centos [CWP]
« Reply #10 on: March 10, 2015, 12:56:02 PM »
you have in the first post that you can use the shared server IP.
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp


Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
Re: How to install varnish cache on centos [CWP]
« Reply #11 on: March 23, 2015, 06:19:24 PM »
you have in the first post that you can use the shared server IP.

Hello sir, I'm facing the same problem

When running Varnish (port 80, with apache set at at port 82) with 127.0.0.1 as shared ip, it works.

however, when i set my default shared ip (the server public ip) any domain will show the server default page.

For a number of reasons I need my server ip as the default shared ip.

how can this be solved?

thank you.

Offline
*
Re: How to install varnish cache on centos [CWP]
« Reply #12 on: March 24, 2015, 04:33:12 PM »
new version has multi ip varnish configuration with virtual hosts so you can try it.
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp


Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
Re: How to install varnish cache on centos [CWP]
« Reply #13 on: March 27, 2015, 09:19:42 PM »
ok, varnish is running properly now (at least so it seems..)

what i did is:
in CentOS Web Panel Settings --> Edit setting, I did set my IP
in Varnish Settings i did set port 82 for Apache, My server IP for Apache IP, and port 80 for Varnish, leaving the rest as default.
That way it worked with Varnish and my IP (not 127.0.0.1)

I don't know if this configuration will, creating other problems along, but for the moment Varnish is working, with my server IP.

Hope it can help someone.

Offline
*
Re: How to install varnish cache on centos [CWP]
« Reply #14 on: March 30, 2015, 02:46:40 PM »
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp


Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services