cPanel VPS Configuration

Hello

I have just purchased a cPanel VPS from Host Dime. I am going to be installing cPanel shortly. After cPanel is installed can somebody list the security modules etc I need to install on the VPS and basically everything I need to do before it is fit for hosting clients?

Thanks!

VPShostingvps hostingPHPFirewall
Answer Share

3 Answers

24x7servermanagement answered 3 years ago
24x7servermanagement answered 3 years ago

1.First of all, install the firewall. Here are the steps for you -

Install CSF Firewall

cd /usr/src
rm -fv csf.tgz
wget https://download.configserver.com/csf.tgz
tar -xzf csf.tgz
cd csf
sh install.sh

Edit /etc/csf/csf.conf and make the following changes (both settings are near the top of the file):

TESTING = "0"
RESTRICT_SYSLOG = "2"
Save

Now go to WHM > Security Center > SMTP Restrictions > Disable and then run: csf -r

ModSecurity Vendors

2. Install OWASP ModSecurity Core Rule Set (the default one available on that page)

Once installed, press edit on it.
Turn off:
rules/REQUEST-12-DOS-PROTECTION.conf
rules/REQUEST-13-SCANNER-DETECTION.conf
rules/REQUEST-20-PROTOCOL-ENFORCEMENT.conf
rules/REQUEST-30-APPLICATION-ATTACK-LFI.conf
rules/REQUEST-42-APPLICATION-ATTACK-SQLI.conf
rules/REQUEST-43-APPLICATION-ATTACK-SESSION-FIXATION.conf

========================================================================

3. Password Strength Configuration
Set Default to 70
Save

4. Shell Fork Bomb Protection
Enable Protection

Mwaraitch answered 8 years ago
Mwaraitch answered 8 years ago

1) Installation of Firewall (CSF)
2) Securing /tmp Partition
3) Securing and optimizing Mysql
4) Scanning VPS Hosting with RKhunter
5) Installation of Mod_Security
6) Disable PHP functions
7) Disable direct root login

Mesas answered 8 years ago
Mesas answered 8 years ago

Host dime/ Vpslatch vps's aren't any good for hosting unfortunately due to their process limits every service/operation web page served spawns a new process.

their only good for testing/development purposes

Your Answer
Anonymous

Hosting Companies insights

2040 Web Hosting Reviews A trusted source of genuine reviews. Learn Reviews
2455 Web Hosting Companies Ever-growing pool of web hosting providers. Browse Providers
2831 Web Hosting Coupons Exciting web hosting deals available here Browse Coupons
Share
Tweet
Share
Share
Share
Email