How to set up Symfony 4 on an Ubuntu 18.04 LTS based Nginx server.

  • This topic has 3 replies, 1 voice, and was last updated 2 months ago by pfsalter.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2406
    Nicole_Bunnyshell
    Participant

    Are there any beginners who want to learn more about Symfony? In this [step-by-step tutorial](https://www.bunnyshell.com/blog/how-to-set-up-symfony-in-ubuntu/), we want to help beginners learn how to set up Symfony 4 on an Ubuntu 18.04 LTS based Nginx server.

    #2407
    Flibbertygibbety22
    Guest

    Surely if you’re learning today, you’d use the latest versions of both Symfony (5.1) and Ubuntu (20.04).

    #2408
    lekoalabe
    Guest

    Really, if you are a beginner, don’t setup a webserver yourself. There are so many great solutions like ServerPilot or Runcloud that work fine and make sure that your website is secured and properly configured

    #2409
    pfsalter
    Guest

    I think there are a few improvements to be made here:
    1. Don’t run NGINX and FPM as the same user. There’s no reason for it.
    2. Don’t install GIT/Composer on production servers, deploy code instead of pulling it, it scales better
    3. Don’t have one box running both MySQL and PHP. MySQL will eat memory from PHP and you’ll run out of memory fast. VMs are so cheap now you may as well separate them, also better for scaling.
    4. Use Lets Encrypt to provide HTTPS connections, forward all HTTP to HTTPS

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.