Please note that this article is considered legacy documentation because Fedora 23 has reached its end-of-life support.
- These instructions are intended specifically for installing varnish on Fedora 23. If you’re using a different operating system, check out our guides to installing varnish on Fedora 21 or CentOS 7.
- We’ll be working as root on a Liquid Web Self Managed Fedora 23 server. Apache and PHP already are installed, configured, and running.
Step #1: Install VarnishA single command installs Varnish:
dnf -y install varnish
Step #2: Start VarnishTo configure varnish to start at boot, run the following command:
systemctl enable varnishThat should return output similar to:
[root@host ~]# systemctl enable varnish Created symlink from /etc/systemd/system/multi-user.target.wants/varnish.service to /usr/lib/systemd/system/varnish.service.To start Varnish:
systemctl start varnishTo check the status of Varnish:
systemctl status varnishVarnish is configured to listen on port 6081 by default. It expects your web server to be listening on port 8080.
Step #3: Configuration File LocationsA basic and default configuration file can be found at:
/etc/varnish/default.vclAn example configuration can be found in: