Using PHP to create Mysql databases issue
I have been using xlmapi.php to create Mysql databases and users through PHP when my system creates a new user in my application. When I person signs up for the service, they are automatically created a Mysql user and database based on the username that they choose to use in the system. However, something on my service updated last night and now that is broken and no new users are being created. I also was using the same script to delete the database when a user leave the service and that script is no longer working either.
It looks like xmlapi.php hasn't been updated in a little while. Does anyone have anything new that they use for something like this.
I tried a few things with LiveAPI with cPanel and I just get an error stating
"Fatal error: Uncaught exception 'RuntimeException' with message 'There was a problem fetching the env variablecontaining the path to the socket' in /usr/local/cpanel/php/cpanel.php:146
Stack trace: #0 /usr/local/cpanel/base/frontend/paper_lantern/test.livephp(4): CPANEL->__construct() #1 {main} thrown in /usr/local/cpanel/php/cpanel.php on line 146"
I appreciate your thoughts and suggestions.
Please sign in to leave a comment.
Comments
0 comments