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 field Apache non-SSL IP/port to 8080 and Save settings 2. install Varnish on your server: Execute commands: #install varnish repository rpm -Uvh https://repo.varnish-cache.org/redhat/varnish-3.0/el5/noarch/varnish-release-3.0-1.noarch.rpm #yum installation of Varnish yum insta...

How to add custom conf to some WHM account

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

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 wheel group u...
×