How to install Varnish with CPanel and CentOS to cache static content on server

There are few things you need to do to install Varnish with Cpanel (WHM): 1. Let Apache listen on port 8080 - you can do it by editing httpd.conf or directly in WHM: Tweak Settings menu -> set value of fieldApache non-SSL IP/portto 8080 and Save settings 2. install Varnish on your server: Execute commands: #install varnish repository rpm -Uvh http://repo.varnish-cache.org/redhat/varnish-3.0/el5/noarch/varnish-release-3.0-1.noarch.rpm #yum installation of Varnish yum install varnish 3. Edi...

How to add custom conf to some WHM account

You have to first create a directory correspondging to the path above. You can do this as follows mkdir -p /usr/local/apache/conf/userdata/std/2/username/example.comcd /usr/local/apache/conf/userdata/std/2/username/example.comvi virtualhost.conf Remember to changeexample.comto the domain for which you are going to create the custom virtualhost configuration andusernameto the cpanel username of the user corresponding to the domain. Once you are done with making the modification you can re-create ...

How to enable ssh access for root in WHM

Even you have access to your server as root using WHM web interface access, root access using SSH doesn't need to be enabled by default. To enable root access through SSH client (e.g. putty, terminal or ssh command line tool) follow these steps: 1. Login to your WHM panel 2.go to Security ->Manage Wheel Group Users and make sure your user is in the Wheel group (this group defines who is able to use su command) 3. Now you should be able to login with user assigned to wheelgroup using ssh an...