How to install Pimcore with multi enviroment

I would like install pimcore with multi enviroment on linux

Just have asked this question in way more detail: Deployment strategy for Multi-Environment setup on AWS with ElasticBeanstalk and Docker: What to track and which commands to execute?

I am still hoping for an answer!

install into different folder, config different port in apache
I have composered skeleton into /var/pimcore/653/dev, demo into /var/pimcore/653/demo
create 2 db: dev and demo
create 2 conf file in apache, dev use 6530, demo use 6531
this week composered 660/dev and 660/demo, running on port 6600 and 6601
now I have 4 environment running on same local VM