Description

This function enables a Ruby application and generates the Apache configuration on an account.

Examples




https://hostname.example.com:2083/cpsess##########/execute/PassengerApps/enable_application?name=slippers



$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
 
// Enable the slippers application on the cPanel account.
$poll = $cpanel->uapi(
    'PassengerApps', 'enable_application',
    array(
        'name' => 'slippers',
  )
);



my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
 
#  Enable the slippers application on the cPanel account.
my $poll = $cpliveapi->uapi(
    'PassengerApps', 'enable_application',
    {
        'name'    => 'slippers',
  }
);



<!-- Enable the slippers application on the cPanel account. -->
[% execute('PassengerApps', 'enable_application', { 'name' => 'slippers', } ) %]



uapi --user=username PassengerApps enable_application name="slippers"



{ 
    "data": null,
    "errors": null,
    "messages": null,
    "metadata": {},
    "status": 1
}



Parameters

ParameterTypeDescriptionPossible valuesExample
namestring

Required

The application to enable.

A valid Ruby application on the account.slippers

Returns

This function only returns metadata.