Auto Create Admin Account
-
Imagine the scenario:
Someone asks you to set up a WP site. They have just bought https://www.mywpsiteisfab.com and want you to ‘do all the technical things’. Once done, hand them the admin username and password so they can get on with things.
I have a script that sets up my chosen web server’s configuration for a virtual host, creates the required directories, pulls out WP using subversion and downloads a bunch of ‘standard’ plugins (SEO, Akismet key, Analytcs, whatever, e.t.c). Now I want it to create the admin account. The only way I can find is to make an HTTP post to trigger the install, parse the HTML and note the auto-generated password.
However, this doesn’t work, because DNS hasn’t filtered through for the recently bought domain (either forget about fiddling with the hosts file, or imagine it on a scale of to make this impractical).
My real aim would be to have a command line (PHP?) script that will trigger install just the same as visiting the domain will, and additionally for it to be able to specify the password.
Is there such a thing? Anyone had these kind of problems? Is this cosidered ‘hacking’? Any ideas on where to go to make my own? Thoughts? Musings?
- The topic ‘Auto Create Admin Account’ is closed to new replies.