Setup Mod Security

ModSecurity is an open source, cross-platform web application firewall (WAF) module. Known as the “Swiss Army Knife” of WAFs, it enables web application defenders to gain visibility into HTTP(S) traffic and provides a power rules language and API to implement advanced protections.

Click on CSF Firewall and Scroll down . Then you can see an Option to Enable firewall :

Click on Firewall Enable .

Step 3 – Once activated, you can now edit few lines of CSF Configuration. Click on the Firewall Configuration button. And Add the SSH Port which we have changed in my Previous Post how to change SSH Port . You can see the New Port number added in CSF configuration file :

Step 3 – Make few changes in configuration so Varnish can run properly. By default, the configuration is set as following:

Now scroll down and you can see the options to Adjust the values :

Edit all the values as recommended . Also you can see that Varnish Storage Size recommendation is 1 GB . Make sure you have more than 1 GB RAM on your Server. If you have 1 GB RAM then you can set it to 256MB or 512 MB. In my case I will set it as 1GB as i have 5 GB ram on the server.

1. Setup Nameservers

A nameserver is a computer that is permanently connected to the Internet and translates domain names into IP addresses (or vice versa), enabling you to enter www.ashishkale.in instead of 198.27.103.128. When registering a domain name, you will need (at least) two nameservers configured to handle requests for the domain name in question. You will need to register your private nameserver at your domain registrar panel.

When you register on Free DNS providers site there you will get Nameservers that you can use for yours domains.
Nameservers you need to add in: CWP – > DNS Functions -> Edit Nameservers IPs* This nameservers you enter here will be used in all configs and account setups

If you are using FreeDNS service than you will need to point yours domain to nameservers that you get on FreeDNS website.
On FreeDNS Website you need to point domain to your server IP address.
This changes will need up to 24 hours to be visible for you.

– with FTP or SSH uplaod all files to your CWP server in /home/username/public_html folder you created before with new account
– with phpMyAdmin on CWP import database you downloaded (with logins details of mysql user)* You can zip .sql file and import it much faster

CentOS Web Panel – Free Web Hosting control panel is designed for quick and easy management of (Dedicated & VPS) servers without of need to use ssh console for every little thing. There is lot’s of options and features for server management in this control panel.

CWP is really considered feature-rich. Some of notable features including: