Running same project multiple times on same server

Good morning!

This may be a very basic question, but I was just looking for some general feedback. I created a single project for a customer and they are running it on two separate servers (different offices). Now they would like to migrate the one project to the same server as the other and run both projects on the same server.

Eg

Project 1a deployed to /var/www/html/project1a
Project 1b deployed to /var/www/html/project1b

While the projects are identical, I would use two different databases.

Do you guys see any issues with doing that? Honestly, I do not know where the variables are stored, in the browser or on the server… So I am concerned that there may be some issue with one application leading over to the other. But on the other hand, I feel that this is done all the time. So maybe I am overthinking this.

Thanks in advance!

Just create a separate folder for each project (project1a and project1b) in the html folder and deploy to each folder. The setup for each application will then be http://url_to_yourdomain/project1a/_lib/prod/lib/php/index.php and http://url_to_yourdomain/project1b/_lib/prod/lib/php/index.php

Thanks Nico!

I was just concerned about variables set in one project somehow bleeding over to the other. Showing my ignorance in how/where they are set.

I appreciate the confirmation!

i think you also have to check your connection when uploading. because in the connection is the database assigned where you store the data.

So. when you upload to project A choose connection A
and when you upload to project B choose connection B

1 Like

Also just to be safe make sure both databases have different passwords.

1 Like