Here are the configuration options, set to the default values, for this recipe's Landofile. If you are unsure about where this goes or what this means, we highly recommend scanning the recipes documentation to get a good handle on how the magicks work.
recipe: joomla config: php: '7.2' composer_version: '2.0.7' via: apache:2.4 webroot: . database: mysql:5.7 xdebug: false config: database: SEE BELOW php: SEE BELOW server: SEE BELOW vhosts: SEE BELOW
Note that if the above config options are not enough, all Lando recipes can be further extended and overriden.
Choosing a php version
The recipe config to set the Joomla recipe to use
7.1 is shown below:
recipe: joomla config: php: '7.1'
Choosing a composer version
You can set
composer_version to any version that is available in our php service.
recipe: joomla config: composer_version: '1.10.1'
Choosing a web server
By default, this recipe will be served by the default version of our apache service but you can also switch this to use
nginx. We highly recommend you check out both the apache and nginx services before you change the default
With Apache (default)
recipe: joomla config: via: apache
recipe: joomla config: via: nginx
Choosing a database backend
By default, this recipe will use the default version of our mysql service as the database backend but you can also switch this to use
mariadb or 'postgres' instead. Note that you can also specify a version as long as it is a version available for use with lando for either
Also note that like the configuration of the
php version, you should consult the Joomla requirements to make sure the
version you select is actually supported by Joomla itself.
Using MySQL (default)
recipe: joomla config: database: mysql
recipe: joomla config: database: mariadb
recipe: joomla config: database: postgres
Using a custom version
recipe: joomla config: database: postgres:9.6
Connecting to your database
Lando will automatically set up a database with a user and password and also set an environment variable called
LANDO INFO that contains useful information about how your application can access other Lando services.
The default database connection information for a Joomla site is shown below:
Note that the
host is not
database: joomla username: joomla password: joomla host: database # for mysql port: 3306 # for postgres # port: 5432
You can get also get the above information, and more, by using the
lando info command.
Using custom config files
You may need to override our default Joomla config with your own.
If you do this, you must use files that exist inside your application and express them relative to your project root as shown below:
Note that the default files may change based on how you set both
via. Also note that the
server config will be either for
nginx depending on how you set
via. We highly recommend you check out both the apache and nginx if you plan to use a custom
A hypothetical project
Note that you can put your configuration files anywhere inside your application directory. We use a
config directory but you can call it whatever you want such as
.lando in the example below:
./ |-- config |-- default.conf |-- my-custom.cnf |-- php.ini |-- server.conf |-- index.php |-- .lando.yml
Landofile using custom joomla config
recipe: joomla config: config: database: config/my-custom.cnf php: config/php.ini server: config/server.conf vhosts: config/default.conf