Hi
I have been trying to get all the new accounts that I create to automatically have a MySQL database ready to go with a user added, but I have not been able to do it. The tutorial I have been following is here:
Frequently Asked Scripts: "How do I automate XYZ after creating an account?" - cPanel Integration
I got the script uploaded to the right place, but I have been experiencing some issues.
1st - The script needs to call a user called "root" at /var/cpanel/users/root? The problem is, I don't have a user named root. Is this normal? I just substituted the "root" for a username that was owner by root.
2nd - When I run the script and check my error log, I get this issue -
[19-Jan-2011 11:51:34] PHP Fatal error: Uncaught exception 'Exception' with message 'non integer or negative integer passed to set_port' in /home/cpanelscripthelpers/xmlapi.php:298
Stack trace:
#0 /scripts/postwwwacct(163): xmlapi->set_port('2087')
#1 {main}
thrown in /home/cpanelscripthelpers/xmlapi.php on line 298
Any ideas on how to fix these issues? It is probably something small that I cannot figure out, and any help would be appreciated!



LinkBack URL
About LinkBacks
Reply With Quote




