-
Notifications
You must be signed in to change notification settings - Fork 248
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
Uncaught exception 'Exception' for adddb #23
Comments
Hello, A "Connection Refused" error indicates that your cPanel server is not listening on port 2082, or is blocked in a firewall someplace. Please contact your hosting provider for assistance. |
This is still open |
Issue with $xmlapi->api1_query($cpaneluser, "mysql", "adddb", array($databasename)). This is the bit not working, not the port |
why is the port reported in the exception message different that the port in the URL that is being use for the cURL connection? |
If I comment this bit out $xmlapi->api1_query($cpaneluser, "mysql", "adddb", array($databasename)) everything runs and account is created but the database is not created |
You were right, the issue was a port issue. Thanks for the help. Its working perfectly |
Fatal error: Uncaught exception 'Exception' with message 'curl_exec threw error "Failed to connect to xxx.xxx.xxx.xxx port 2082: Connection refused" for https://xxx.xxx.xxx.xxx:2083/xml-api/cpanel?user=xxxxxxx&cpanel_xmlapi_module=mysql&cpanel_xmlapi_func=adddb&cpanel_xmlapi_apiversion=1&arg-0=ihhemrl7_sitedb' in /home/xxxxxxx/public_html/includes/hooks/xmlapi-copy-2009.php:692
The text was updated successfully, but these errors were encountered: