If you need http/2 enabled at your CPanel server, you need to do few things:
1. Install nghttp2
cd /usr/src/
wget https://github.com/nghttp2/nghttp2/releases/download/v1.15.0/nghttp2-1.15.0.tar.gz
tar -xvzf nghttp2-1.15.0.tar.gz
cd nghttp2-1.15.0
./configure --prefix=/opt/nghttp2
make
make install
echo "/opt/nghttp2/lib" >> /etc/ld.so.conf.d/custom-libs.conf
ldconfig
How to setup Django on the server with CPanel control panel. CPanel uses Python 2.4, but Django requires PHP mod_wsgi, which requires Python 2.6+.
We need to install 2 Python versions.
cd /usr/local/src/
wget http://www.python.org/ftp/python/2.6/Python-2.6.tgz
tar -xvzf Python-2.6.tgz
./configure --enable-shared
make install
cd /etc/ld.so.conf.d
echo "/etc/ld.so.conf.d/opt-local.conf" > python26.conf
ldconfig
Now Now you’re ready to build mod_wsgi through easy_apache. Download custom_opt_mod-mod_wsgi.tar.gz from this ticket at google code and run:
More »
Varnish installation on Centos server is very simple :
1. Installing varnish and packages:
mk /root/varnish
cd /root/varnish
wget http://repo.varnish-cache.org/redhat/varnish-3.0/el5/x86_64/varnish-3.0.3-1.el5.centos.x86_64.rpm
wget http://repo.varnish-cache.org/redhat/varnish-3.0/el5/x86_64/varnish-libs-3.0.3-1.el5.centos.x86_64.rpm
rpm -ivh *.rpm
yum install libedit -y
Note: Current installation for x86_64 system also if libedit was not found in your repo, do wollowing:
rpm -ivh http://mirror.chpc.utah.edu/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm