How to Create Bulk Sites With EasyEngine?


#1

Hello, first of all I want to say I love easyengine!

I need some kind of automation for installing multiple sites on PHP on 1 server (let’s say more than 100 sites). What would be the fastest and easiest way to do this?

So, I want to run this command “ee site create example.com --php” more than 100 times in a row.

Thank you very much!

Best regards!


#2

You should use some Bash script.

I’d create a text file containing all the domains I want to create, one per line: domains.txt, e.g.

Then:

for DOM in `cat domains.txt`; do ee site create $DOM --php; done;

This is the most basic example, of course (and it is totally functional).


#3

That works awesome!!! Thank you! :slight_smile:


#4