Hi,
I have two queries.
1]
I have following snippet in /usr/local/cpanel/Cpanel/CustomEventHandler.pm file, which should log all events to a temp file.
It logs all activities performed in cpanel interface (port 2083) but it does not log any activity performed in whm interface (port 2087). Why is it ?
2]
My another query is, do we not have API call for each and every action we perform with WHM? I am trying to find an api call for WHM Main --> Server Configuration --> Tweak Settings --> PHP, but it looks like there is no API available for this. And I guess there must be many more actions for which there is no API.
Regards,
I have two queries.
1]
I have following snippet in /usr/local/cpanel/Cpanel/CustomEventHandler.pm file, which should log all events to a temp file.
Code:
sub event {
my ( $apiv, $type, $module, $event, $cfgref, $dataref ) = @_;
my $logger = Cpanel::Logger->new({ alternate_logfile => "/tmp/event.log" });
$logger->info("$apiv, $type, $module, $event");
return 1;
}
2]
My another query is, do we not have API call for each and every action we perform with WHM? I am trying to find an api call for WHM Main --> Server Configuration --> Tweak Settings --> PHP, but it looks like there is no API available for this. And I guess there must be many more actions for which there is no API.
Regards,