Zum Hauptinhalt springen

Build Environment

The build process offers a few environment variables to adjust it to your use case. See the how to section of the documentation for all available variables.

Configure the web directory

To avoid exposing project files over the web, it is best practice to use a subfolder of your application as web root. A typical location for this is the directory public. Set BP_PHP_WEB_DIR to your web root directory:

--build-env=BP_PHP_WEB_DIR=public

When the web server is Apache HTTPD or NGINX, the web directory defaults to htdocs.

Selecting a Web Server

By default, the PHP built-in web server will be used. For production use cases, we recommend using Apache HTTPD or NGINX:

--build-env=BP_PHP_SERVER=php-server

Additionally, if required, the web server can be customized further by providing your own server-specific config file.

Next Steps

In the next step, we will set up a Symfony project and then configure various storage options for it.