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 create a model in PHP Symfony?
- How to generate a model in PHP Symfony?
- How to create a migration in PHP Symfony?
- How to create a backend with PHP Symfony?
- How to install Symfony on Windows?
- How to use websockets in PHP Symfony?
- Unit testing in PHP Symfony example
- How to create tests in Symfony with PHP?
- How to use Monolog in PHP Symfony?
- How to upload a file in PHP Symfony?
See more codes...