We have a new documentation site for cPanel & WHM! You can find our new documentation site at docs.cpanel.net.

We will continue to maintain our API documentation on this server.

Child pages
  • Guide to the LiveAPI System - The exec() Method
Skip to end of metadata
Go to start of metadata



The exec() method executes a cPanel tag.


We strongly recommend that you use an API method ( api1() , api2() , or uapi() ) or wrapper method instead of this method.


LiveAPI PHP Class

// Execute the feature tag.

LiveAPI Perl Module

# Execute the feature tag.


ParameterTypeDescriptionPossible valuesExample
tagstringThe cPanel tag.A valid cPanel tag.feature

Whether to return output.

This parameter defaults to 0.

  • 1 — Do not return output.
  • 0 — Return output.


  • If the skip_return value is 0, the function returns a hash reference of the cPanel tag's output.
  • If the skip_return value is 1, the function does not return output.