Question
How can I enable system services using the WHM API?
Answer
The WHM API has the configureservice function that allows you to enable a system service. For example, the following command will enable and monitor the MySQL service:
whmapi1 configureservice service=mysql enabled=1 monitored=1
Please note that in the above command, you will want to replace "mysql" with the service you want to enable and/or monitor. You can also change the 1 values to 0 if you wish to disable it instead.
Additional Resources
WHM API 1 Functions - configureservice
Comments
0 comments
Article is closed for comments.