07.06.2023

Symfony framework install on Ubuntu 20.04 LTS

What is Symfony

Symfony is very popular PHP-based framework. It is often use for web-applications development. Main advantages of this environment is open-source code, large users community and actual documentation.

Before setup

To install Symfony you need a server meeting the following requirements:

The fastest way to prepare server to main product installation is install any web-panel, e.g. HestiaCP. When panel is ready, do these steps:

php -v

apt-get install -y php<your_version>-sqlite3

cd /tmp

curl -sS https://getcomposer.org/installer -o composer-setup.php

php composer-setup.php --install-dir=/bin --filename=composer

apt install -y curl

curl -1sLf 'https://dl.cloudsmith.io/public/symfony/stable/setup.deb.sh' | sudo -E bash

apt install -y symfony-cli

symfony check:requirements

As you see, configuration is OK, preparing is finished, go to the next step.

Framework installation

It is very simple. To make your own demo-project just run:

su <non-privileged account>

composer create-project symfony/website-skeleton myproject

Now you can open URL http://<your_domain>/<your_appname>/public. If you see page as below - setup finished, take a coffee-break.

Conclusion

In this article we're discribed what is Symfony Framework and how to install it to your Ubuntu 20.04 server