php-symfonyHow to deploy a Symfony application?
Deploying a Symfony application is a straightforward process.
- Install the Symfony CLI tool:
$ curl -sS https://get.symfony.com/cli/installer | bash
- Create a Symfony project:
$ symfony new my_project
-
Configure the web server:
- Create a virtual host for the project
- Set the document root to the
publicdirectory of the project - Configure the web server to use the
app.phpfile as the front controller
-
Install the dependencies:
$ cd my_project
$ composer install
- Clear the cache:
$ php bin/console cache:clear
Your Symfony application is now ready to be deployed.
Helpful links
More of Php Symfony
- How to get request parameters in PHP Symfony?
- How to update PHP Symfony?
- What are the required PHP Symfony extensions?
- How to run a command in PHP Symfony?
- How to use websockets in PHP Symfony?
- How to check PHP Symfony version?
- How to do validation in PHP Symfony?
- How to create tests in Symfony with PHP?
- How to use the validator in PHP Symfony?
- How to process async tasks in PHP Symfony?
See more codes...