By Amresh Amar
I have successfully installed varnish cache on Cpanel + Centos 6.5 + Apache. While I changed the Apache port from 80 to 8080, my website stop functioning. However, While I switch back to default Port 80 then Website start responding. Varnish cache is installed and listing to port 80.
I did below mention steps to install varnish.
yum install -y gcc make automake autoconf libtool ncurses-devel libxslt groff pcre-devel pckgconfig libedit libedit-devel
rpm --nosignature -i http://repo.varnish-cache.org/redhat/varnish-3.0/el6/noarch/varnish-release/varnish-release-3.0-1.el6.noarch.rpm
yum install varnish
Please help me on this.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Did you configure varnish to use localhost:8080 as backend?
also remember to restart both services after changing the config files.
Sounds like iptables. What does “iptables -L” return. Probably port 80 is open but port 8080 is not.
My Setting is
nano -w /etc/sysconfig/varnish
VARNISH_LISTEN_PORT=80
VARNISH_ADMIN_LISTEN_ADDRESS=127.0.0.1 VARNISH_ADMIN_LISTEN_PORT=6082
nano -w /etc/varnish/default.vcl
backend default { .host = “127.0.0.1”; .port = “8080”; }
I am using apache 2.4 php 5.5 cpanel centos 6.5 64X
What i have to do next
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.