WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I automate the installation of wordpress in a subdomain?


Upon registration user1 would get automatically wordpress on user1.domain.com.

Then, upon registration user2 would get his own wordpress on user2.domain.com, etc.

I can program a little bit PHP, but I would rather avoid any programming and would prefer a ready-made solution if it exists.

Thank you in advance for your help. Any hint is appreciated.

share|improve this question
Do they have to be separate wordpress installations? Depending on what you want to do, it might be better (read: more efficient) to have each user get a category or a custom post type or something. If possible, can you clarify what your end goal is? – mor7ifer Feb 4 '12 at 21:30
@m0r7if3r My goal is to create a website (based on wordpress) for each user. So I think it make sense to provide a separate wordpress install for each user. I am open to other ideas. I am still trying to figure out the best way to generate websites for users on subdomains. – tucson Feb 4 '12 at 21:35
Have you looked at wordpress multisite at all? – mor7ifer Feb 4 '12 at 21:36
@m0r7if3r Thanks a lot. I overlooked wordpress multisite. That's exactly what I was looking for. The only thing I still don't know is how to automatically create a new user in a wordpress multisite. – tucson Feb 4 '12 at 21:49
up vote 0 down vote accepted

Ok, thanks to m0r7if3, I found the two pieces of information I was looking for:

share|improve this answer

We created an open source script for this purpose, you can find it here http://buckhill.github.io/linux-package-installer-for-wordpress

We wrote an article on how to use it here: https://www.buckhill.co.uk/blog/how-to-automatically-install-wordpress-plus-plugins/6

If you want to contribute to the project, please go ahead :)

share|improve this answer
This purely link answers. Please file an edit and add the proper information and code from the links – Pieter Goosen Jun 4 '14 at 16:55
It's pretty self explanatory. He needs to auto install WP, and we released a free script for the community to do just that. How else can it be explained - there's no need to post code here. – StuartB Sep 1 '14 at 8:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.