Disabling WHM (Web Host Manager) can mean different things depending on your needs. If you want to disable access to WHM for users or simply stop the service, here are the steps you can follow:

Method 1: Disable WHM Access for Users

If you want to restrict user access to WHM:

  1. Log into WHM:
    • Go to https://your-server-IP:2087 and log in.
  2. Manage Accounts:
    • Navigate to Account Functions > List Accounts.
    • Find the account you want to restrict and click on Modify Account.
  3. Change Package Settings:
    • You can adjust the package settings to limit access. Make sure the package does not allow WHM access.
  4. Disable Shell Access:
    • For additional security, you can disable shell access for accounts if needed.

Method 2: Stop WHM Service

To completely stop WHM (and cPanel) from running:

  1. Access Server via SSH:

Use an SSH client (like PuTTY) or terminal and connect to your server:
bash
Copy code
ssh root@your-server-IP

  1. Stop cPanel Service:

Run the following command to stop the cPanel service:
bash
Copy code
/usr/local/cpanel/scripts/restartsrv_cpsrvd --stop

  1. Verify the Service is Stopped:
    • You can check if the service has stopped by attempting to access WHM in your browser. It should return an error.

Method 3: Disable WHM from Boot

If you want WHM to be disabled on server boot:

  1. Access Server via SSH:
    • Connect to your server as above.
  2. Disable the cPanel Service:

Use the following command to prevent cPanel from starting on boot:
bash
Copy code
systemctl disable cpanel

Method 4: Uninstall WHM/cPanel (If Permanently Disabling)

If you want to completely uninstall WHM/cPanel:

  1. Access Server via SSH:
    • Connect to your server as above.
  2. Run the Uninstall Script:

Execute the following command:
bash
Copy code
/usr/local/cpanel/scripts/uninstall

  • Follow the prompts to complete the uninstallation process.

Important Notes

  • Backup Data: Always ensure you have backups of your data before disabling or uninstalling WHM/cPanel.

Re-enable Access: If you need to re-enable WHM later, you can restart the service with:
bash
Copy code
/usr/local/cpanel/scripts/restartsrv_cpsrvd --start

Summary

Disabling WHM can be done by restricting user access, stopping the service, or uninstalling it altogether. Make sure to back up any important data before making significant changes.

Hasznosnak találta ezt a választ? 0 A felhasználók hasznosnak találták ezt (0 Szavazat)