Coder Social home page Coder Social logo

addon_varnish_cache's Introduction

Installation Notes

Requirements

  1. A server running Varnish 3.x. and management console enabled.

  2. PHP with sockets enabled.

  3. Copy scripts/etc/varnish/ into the /etc/varnish/ directory on your Varnish server. This directory might be /opt/local/etc/varnish, or somewhere else.

  4. Copy scripts/site_post_autoload.php into config/. Make any changes to the config to match any new or updated Varnish config files in etc/varnish/

  5. Add this to your config/site.php file:

    define('PAGE_CACHE_LIBRARY', 'varnish'); define('VARNISH_CACHE_VERSION', 'version'); // e.g. 3.0.2

  6. Copy /scripts/varnishstats.xml.php to your Varnish server. Make sure it is accessible somewhere. Make sure it is pointing to the right binary in the script itself. This script is optional.

  7. Copy /scripts/tools/poll.php to tools/poll.php and make sure that it is accessible through yoursite.com/index.php/tools/poll/

  8. Start Varnish with a command similar to this one:

    sudo varnishd -a your.server.com:80 -T 127.0.0.1:6082 -s file,/tmp,500M

or

sudo varnishd -a your.server.com:80 -T 127.0.0.1:6082 -S /opt/local/etc/varnish/secret_key -s file,/tmp,500M
  1. Add the relevant admin host information to your server
  2. Enable the concrete5 Varnish config file in Dashboard > Varnish > Configuration
  3. Start Varnish via the dashboard.

addon_varnish_cache's People

Contributors

aembler avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.