cajita13

Registered
Aug 9, 2019
2
0
1
USA
cPanel Access Level
Website Owner
Hi, I hope you guys are good.
I have a problem, because I was trying to create a database via php script and my host (fastcomet) just allow Cpanel UAPI.
The problem is that I´m not the root so I can access to cpanel.php file.
Do you know how I can fix that?
Thanks
 

cPanelLauren

Forums Analyst II
Staff member
Nov 14, 2017
6,762
535
263
Houston
cPanel Access Level
DataCenter Provider
You shouldn't need to be the root user to use the UAPI. The following three functions should allow this:


Can you explain what you're running that isn't successful?
 
  • Like
Reactions: cajita13

cPanelLauren

Forums Analyst II
Staff member
Nov 14, 2017
6,762
535
263
Houston
cPanel Access Level
DataCenter Provider
Hello,


As I said previously though you shouldn't need to be root to run UAPI functions. The guide to testing code with cPanel API and UAPI Calls goes over this here: Guide to Testing Custom Code - cPanel API and UAPI Calls - Developer Documentation - cPanel Documentation as well as the guide to UAPI here: Guide to UAPI - Developer Documentation - cPanel Documentation

As long as you have access to the features which you're trying to manage there shouldn't be an issue, which is why I asked for what you're running specifically.
 

cPanelLauren

Forums Analyst II
Staff member
Nov 14, 2017
6,762
535
263
Houston
cPanel Access Level
DataCenter Provider
Ahh it looks like you edited your post! I'm really glad to hear you found the answer! Thanks for updating the thread :)
 
  • Like
Reactions: cajita13