WHM cPanel - Packages: Modify dedicated IP setting

Help | Dedicated Servers

When you configure a new packet in cPanel / WHM, you can set whether or not the hosting accounts for this packet will get a dedicated IP. That means that when you check the dedicated IP box, any new account created with that packet will get a dedicated IP address. However, in the future, we need to modify this setting, in fact you cannot, as in Package Edit mode, that field is read-only. Suppose that you have selected to assign dedicated IP for all new accounts in that package initially and after a certain time, you changed your mind not to give any owners of that package any free IP.

Although you cannot change it with WHM's package editing function, you can do it from the command line. You must have root access to the server.

Login to shell as root

Suppose the package name is package_NAME.

cPanel stores package information in /var/cpanel/packages/

Access the file by:

 /var/cpanel/packages/package_NAME

Change the IP value to (no), like the following example:

IP=n

 

Then save and upload the modified file.

New accounts will not have a default dedicated IP, nor will it remove the current IP allocation.

You must do this using the tools in the IP Functions section of WHM navigation.

Need help? Contact us