1
1 - New Mysql user and database can be created via PHP script?
2 - If yes, it would involve some security risk such action?
Objective: I have a running system (own CMS) where the user does practically everything to activate on the server, and, this will be allocated in a subdomain on our server, therefore, the creation of a database for this new user for this new subdomain would need to be automated at the time of registration, which today does not occur and every time we have to create new user and database for a new registration. I accept suggestions if you have other ways.
Details: VPS running Linux / WHM(11.52.0) / cPanel(11.52.0.15) / Mysql(5.6.23) / PHP(5.5)
Marcelo, your answer cleared part of the doubt, but in your answer did not mention about creating database, but only create users, know if with GRANT OPTION this is also possible? I’m using the cPanel class itself.
– Thyago ThySofT