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

Uncaught exception 'Exception' for adddb #23

Closed
lightwaxx opened this issue Oct 30, 2015 · 6 comments
Closed

Uncaught exception 'Exception' for adddb #23

lightwaxx opened this issue Oct 30, 2015 · 6 comments

Comments

@lightwaxx
Copy link

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

@naptastic
Copy link

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.

@lightwaxx
Copy link
Author

This is still open

@lightwaxx lightwaxx reopened this Nov 4, 2015
@lightwaxx
Copy link
Author

Issue with $xmlapi->api1_query($cpaneluser, "mysql", "adddb", array($databasename)). This is the bit not working, not the port

@davidneimeyer
Copy link
Member

why is the port reported in the exception message different that the port in the URL that is being use for the cURL connection?

@lightwaxx
Copy link
Author

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

@lightwaxx
Copy link
Author

You were right, the issue was a port issue. Thanks for the help. Its working perfectly

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

3 participants