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

shubhamsinha47's avatar

Server Structure

Hello Everyone,

I need to deploy my new project on aws server but I am not very sure about the server configuration, I am expecting heavy traffic on this site, I am confused in between apache and Nginx (which is best and why), should I use Amazon Linux, centos, or ubuntu?

for this project I am using laravel 5.3, node, react, redis and socket.io, so I am planning to have two instances one for laravel and react, and second for node and Redis server, and after testing I will use load balancing on the first instance i.e laravel and react.

Can I have your suggestions, For development, i am using laravel homestead,

Thanks Shubham

0 likes
1 reply
sherwinmdev's avatar

@shubhamsinha47 so for dev i'm on a mac using homebrew to set up my environment. i then use php artisan serve which uses php's web server. locally i have a develop branch. when i want to test, i merge my code onto a staging branch then deploy to a subdomain on the server - staging.awesome-app.com. once i complete my test, i merge to a production or master branch. then it gets deployed to the production server.

i use forge (https://forge.laravel.com/) to manage my staging and production server on AWS. it's not as automated as using digital ocean. but all you do is create a custom vps and change some configurations and forge will connect to do its "thing".

forge uses nginx and has a way to manage load balancing servers. it takes a lot off my plate such as creating new sites, configuration of web servers, even SSL installation. it leaves more time for me to focus on development rather than server management.

Please or to participate in this conversation.