Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

Example:

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? –  m0r7if3r 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? –  m0r7if3r 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

2 Answers 2

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 at 16:55
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

Your Answer

 
discard

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.