Hey! People who deploy directly servers and do admin tasks. What resources you recommend to deploy laravel apps and ensure it´s security?
Where I am, we recently bought a physical server, then install a virtual machine where we will host the app.
We are installing apache, MySQL, and everything from zero, but I am looking for resources where I can read/watch/learn more about these server tasks, because nowadays I am finding a lot on cloud-specific environments (AWS, Azure, GCP) but not on-premise servers,
Want to know your opinion, especially deploying laravel apps in this kind of environment.
Just curious. Any reason for in house instead of just a vps? I used to have in house servers, but managing them is a huge task. I don't know of any specific lists or anything like that (we switched vps with third party management services like ploi and forge)
But a few from memory
Ensure server software is up to date with apt (you can use "unattended upgrades" for this)
Set up and managing of firewall (maybe you can handle this in your router)
Backups of files and database, with checks that they work
Set up of deployment scripts. I used laravel envoy for this
Thanks for your answer @sinnbeck , we are looking for in house servers because organization politics. We bought a server last year and we need to use it.
We try to speak for some cloud providers but right now they only maintain access to WordPress servers and doesn't support complex apps that you can build with Laravel.
What worries most is the lack of support with that since every department has to take charge of was inside and set up all from zero.
@fernandocutire I've been there. Set up a lot of Debian servers from scratch. But now I mostly use ploi.io for setting them up. It sets up everything on misc server providers like digital ocean and hetzner. So you can run anything on the server (but laravel is pre-configured). They also update packages and have GUI based firewall
Anyways. It's completely possible to set it up by yourself. I always went with nginx and php-fpm, along with mariadb. But lamp stack is an easy alternative :) break the task down and start by installing a stack (lamp or lemp) on Linux (Ubuntu server is great)
@Sinnbeck For other projects I am planning on using digital ocean. Right now my team is learning terraform for a hackathon which emphasize in infrastructure as code.
Never heard of ploi.io , must give it a try in a project. Want to develop more with laravel