Get started with Symfony


The Symfony framework is installed in the frameworks/symfony directory in the installation directory. This directory includes an example application. Application code is in the app/ directory, application configuration files are in the conf/ directory and public files, such as HTML pages, CSS and JavaScript files, images and other media assets are stored in the web/ directory.

Activation and Testing

To enable the example application, edit the Apache configuration file at installdir/apache2/conf/bitnami/bitnami-apps-prefix.conf and uncomment the following line

Include "installdir/frameworks/symfony/conf/httpd-prefix.conf"

Then, restart the Apache server.

$ sudo installdir/ restart apache

Access the example application via your browser at http://localhost/symfony/app_dev.php.

Here is an example of what you might see:

Symfony welcome page


Before using the example application, here are a few important points to consider:

  • If your application will use a database, edit the database settings in the app/config/parameters.yml file.

    database_driver: pdo_mysql
    database_port: 3306
    database_name: database_name
    database_user: user
    database_password: pass

    MySQL support is already available by default. If you plan to use PostgreSQL, enable the php_pdo_pgsql extension in the installdir/php/etc/php.ini file.

  • To move the Symfony application such that it is available at the root URL of the server (without the /symfony URL suffix), follow these steps:

    • Edit the installdir/frameworks/symfony/conf/httpd-prefix.conf file so that it looks like this:

      DocumentRoot "installdir/frameworks/symfony/web/"
      #Alias /symfony/ "installdir/frameworks/symfony/web/"
      #Alias /symfony "installdir/frameworks/symfony/web"
      Include "installdir/frameworks/symfony/conf/httpd-app.conf"
    • Edit the installdir/frameworks/symfony/conf/httpd-app.conf file and replace the AllowOverride None directive with the AllowOverride All directive:

      AllowOverride All
    • Restart the Apache server:

      $ sudo installdir/ restart apache

    You should now be able to access the example application at the root URL of your server.

Upgrading Symfony 2.x

NOTE: The steps below assume that you have already activated the Symfony example application.

  • Log in to your server console.

  • Update the framework by executing the following commands:

    $ cd installdir/frameworks/symfony
    $ sudo composer self-update
    $ sudo composer update
  • Change the permissions of the app/cache directory so that it is writable by the Web server:

    $ cd installdir/frameworks/symfony/app
    $ sudo chown -R bitnami:daemon cache
    $ sudo chmod -R 775 cache

You should now be able to access the example application and verify that it is using the latest version of Symfony, as shown below:

Smarty welcome page

More Information

Learn more about developing applications with Symfony at

Last modification May 9, 2019