BuycPanel Blog

BuycPanel Blog

Latest news and updates

What are the Key Commands that we use to Disable Services on cPanel?

Posted by Allura on 06 05 2019.

A Brief Overview
This document shows how you can disable a service.When you execute the following /usr/local/cpanel/scripts/maintenance script, it provides security updates and it will automatically restart services. It should be remembered however that automatic restarts may cause essential services, such as securetmp, to lose connection to the server. The server may become inaccessible if these services lose connection to that server.Please note that disabled services reside in the following directory:/var/cpanel/disabledDisable Services
If you want to disable a service, you can just log in to your server’s command line as the root user and then add one of the following touch files to the /var/cpanel/disabled directory: File
Descriptionsecureit
This file would disable the secureit service, which secures file permissions on your server.securetmp
This file would disable the securetmp service, which secures your /tmp partition.terminal-colors
This file would Disables the color output in WHM’s Terminal interface (WHM >> Home >> Server Configuration >> Terminal).cloudlinux
This file would disable CloudLinux™.auto-restart-services
This file would disables any services that the system automatically restarts.Concluding Thoughts
This documentation shows various key commands that…

A Brief Overview

This document shows how you can disable a service.

When you execute the following /usr/local/cpanel/scripts/maintenance script, it provides security updates and it will automatically restart services. It should be remembered however that automatic restarts may cause essential services, such as securetmp, to lose connection to the server. The server may become inaccessible if these services lose connection to that server.

Please note that disabled services reside in the following directory:

/var/cpanel/disabled

Disable Services

If you want to disable a service, you can just log in to your server’s command line as the root user and then add one of the following touch files to the /var/cpanel/disabled directory:

 

FileDescription
secureitThis file would disable the secureit service, which secures file permissions on your server.
securetmpThis file would disable the securetmp service, which secures your /tmp partition.
terminal-colorsThis file would Disables the color output in WHM’s Terminal interface (WHM >> Home >> Server Configuration >> Terminal).
cloudlinuxThis file would disable CloudLinux™.
auto-restart-servicesThis file would disables any services that the system automatically restarts.

Concluding Thoughts

This documentation shows various key commands that can be used to disable services on cPanel.