How to Secure my Linux CPanel Server ?

piyushmaheswari

Well-Known Member
Apr 18, 2020
74
2
8
India
cPanel Access Level
Root Administrator
Hello sir , previously I had server from another server provider and now I purchased new dedicated server from another , so for migrating data I given access of root of new server to that old provider now he is saying that this server is not secure and I will hack this server.

Please anyone tell me how to secure my server and check everything , he can make backdoors and many things , please tell.
 

httpdocs

Well-Known Member
Mar 9, 2018
59
9
83
United States
cPanel Access Level
Root Administrator
Hello
Change all passwords, root password, restrict whm login with Host Access Control to dedicated ip,install csf to your server, install cxs scanner and now your server is 99% secure ;)
 

paulw32

Member
Jul 5, 2020
19
6
3
Australia
cPanel Access Level
Root Administrator
You can set up a fixed ip address for your self and block all other IPs from accessing certain ports. You obviously have to leave 2083 open for your clients to access cpanel. But you can lock down 2087 and a few other vulnerable ports. It's a bit restrictive as you can only access the server from one location. But I think it's pretty safe. At least that's what I have done for my server.
I don't know if that's a standard or effective way of doing it, if anyone has any feedback on it I'd be interested to hear.
 

andrew.n

Well-Known Member
Jun 9, 2020
310
65
28
EU
cPanel Access Level
Root Administrator
You can find cPanel certified professional system administrator at System Administration Services if you want to make sure the server is properly configured and secure.
 

ZenHostingTravis

Well-Known Member
PartnerNOC
May 22, 2020
161
53
28
Australia
cPanel Access Level
Root Administrator
Hello sir , previously I had server from another server provider and now I purchased new dedicated server from another , so for migrating data I given access of root of new server to that old provider now he is saying that this server is not secure and I will hack this server.

Please anyone tell me how to secure my server and check everything , he can make backdoors and many things , please tell.
It's a good idea to start reading the control panel vendor's information. Feel free to refer to the following link
Tips to Make Your Server More Secure | cPanel & WHM Documentation for more information on how to secure your server.

For further ideas, you can have a close look at what a reputable system administrator does as part of the hardening service they offer.

We harden every VPS or dedicated server before providing access to the client.

It's important to note that once-off hardening isn't enough. The servers have to be updated, maintained and regularly audited.

Please ensure you keep backups too so in the event of an emergency, you can roll back.

Hope that helps!