auto database

auto database

am 05.02.2006 15:57:03 von karl davis

My friend has currently developed a script that can auto install a php
forums to any server with the appropiate permissions added to an installer
script.

My question, is it possible if you have the access details of the Cpanel to
get the script to also automatically make a database with a user and
permissions ?

Regards

Karl (Administrator)
Karl`s Forums
http://www.karlsforums.com/forums/

Re: auto database

am 05.02.2006 17:34:53 von xclarky

The database could be created through exec() and system() commands if
the specified user has root privelleges, or otherwise privelleges to
allow them to use command-line MySQL database creations. This will be
rare for most instances however.

Directly through cPanel doesn't really seem fesable, remotely
specifying the credentials required to access cPanel with the correct
path to the SQL features, along side the required database name and
password simply doesn't seem possible...

Re: auto database

am 05.02.2006 22:40:49 von karl davis

Thankyou for your reply. I understand and my friend will rely upon a simple
faq with pictures showing how to make a database via their CPanel instead.

Appreciated your time. :-)

Regards

Karl (Administrator)
Karl`s Forums
http://www.karlsforums.com/forums/