Skip to content
Advertisement

Create cpanel database through php script

Im trying to automate the installation of some custom software using cpanel/whm and postwwwacct php script.This requires files to be copied to the users public_html folder then edit the config and set eh file permissions. So far so good, no issues. When trying to create the database im running into some problems.

JavaScript

Rest of the code runs ok but the db isnt being created nor are the users. Any ideas?

Advertisement

Answer

JavaScript

The above code worked for me! Need to make sure that you are using a cpanel user/pass not root and also that you are using port 2083

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement