Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

dcabane's avatar

Multiple sites on same server

Hello all,

I am an amateur developer building apps on my free time (which means progress is quite slow...). I have an app written with Laravel 5.7 and PHP 7.3 hosted with Laravel Forge on a digital ocean server. I would like to start a new app now. It will be written with Laravel 9.X and PHP 8.X. It looks like Forge will be able to run two different versions of PHP on the same server. However, I am not quite sure how to set up my second app. Would anyone know some good tutorials or documentation which could explain this ? Thanks in advance !

0 likes
2 replies
Hiz's avatar
Hiz
Best Answer
Level 9

Hi,

I have 2 laravel 9 projects running on php 8.1 and a wordpress site runing on php 7.4 on the same server.

Forge makes this pretty easy to setup.

Step 1: Create a new server from the forge dashboard.

Step 2: Wait until your new server is ready to use and click on your server from the forge dashboard.

Step 3: On the sidebar menu go to "PHP"

Step 4: Install the php version you would like to use for your projects.

Step 5: On the sidebar menu go to "Sites"

Step 6: Enter the info for you new site in the form such as domain, project type, ect. At the bottom of the form you can select the php version you want your project to run on.

Step 7: Click on the add button to create your site on the server.

Step 8: Install the repository of your project into the site.

If hope this helps.

1 like
dcabane's avatar

@Hiz Thanks mate ! That sounds easy enough. I'll try it out !

1 like

Please or to participate in this conversation.