Difference between revisions of "Install libvmod-header with Varnish"
From Brian Nelson Ramblings
(Created page with "==Install libvmod-header with Varnish== Back story, varnish was already installed on the server but we did not have access to the scr directory as it was installed with YUM. ...") |
(→Install Varnish but Not Install it=) |
||
Line 3: | Line 3: | ||
Back story, varnish was already installed on the server but we did not have access to the scr directory as it was installed with YUM. | Back story, varnish was already installed on the server but we did not have access to the scr directory as it was installed with YUM. | ||
− | ===Install Varnish but Not Install it | + | ===Install Varnish but Not Install it=== |
Need the following installed before it would allow me to make (varnish and libvmod-header) | Need the following installed before it would allow me to make (varnish and libvmod-header) |
Revision as of 16:58, 20 July 2014
Contents
Install libvmod-header with Varnish
Back story, varnish was already installed on the server but we did not have access to the scr directory as it was installed with YUM.
Install Varnish but Not Install it
Need the following installed before it would allow me to make (varnish and libvmod-header)
yum install pcre-devel gcc python-docutils
mkdir ~/download
First check the version of varnish you are running as you will need the src files to install this
varnishd -V
Now get the vanrish files from varnish-cache.org
cd /~download wget http://repo.varnish-cache.org/source/varnish-3.0.3.tar.gz tar -zxvf varnish-3.0.3.tar.gz cd varnish-3.0.3/
Lets make it but not install it, yum already had, we just need the src built to install libvmod-header
sh autogen.sh ./configure make
Now we did not need to go any further as we did not need to install it.
Install libvmod-header from GIT
Get the libvmod-header from GIT (https://github.com/varnish/libvmod-header)
cd ~/download git clone https://github.com/varnish/libvmod-header.git cd libvmod-header ./autogen.sh ./configure VARNISHSRC=/home/nexbnelson/download/varnish-3.0.3 VMODDIR=/usr/lib64/varnish/vmods/ make make install
Lets check and make sure its there
cd /usr/lib64/varnish/vmods/ ls
You should now see it installed there
libvmod_header.a libvmod_header.la* libvmod_header.so* libvmod_std.so*
Restart Varnish
Lets restart varnish and make sure its starts back up.
service varnish restart
or
/etc/init.d/varnish restart