Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UAPI access to cPanel is not available #11

Open
nipunadodan opened this issue Apr 1, 2021 · 1 comment
Open

UAPI access to cPanel is not available #11

nipunadodan opened this issue Apr 1, 2021 · 1 comment

Comments

@nipunadodan
Copy link

I have no ssh access to my shared server so I have put it on a corn job and when it runs, it sends me an error as mentioned above. I do have the cPanel UAPI token with me but I have no clue where to put it on your solution. Can you please shed some light on this?

@imbrish
Copy link
Owner

imbrish commented Apr 3, 2021

This error is displayed when the uapi command is not available in the environment where the script executes.
In principle uapi token is not required, because the script should be running on the same machine.

I'd try checking with your hosting if they support uapi and if so how it could be enabled and/or used. If you get uapi to work manually, but the script is still unable to access it, you may probably patch this part of code:

if (! $uapi = exec('which uapi 2>/dev/null')) {
$climate->to('error')->error('UAPI access to cPanel is not available!');
exit(EX_UAPI_NOT_FOUND);
}
define('UAPI_BINARY', $uapi);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants