Probo provides LAMP (Linux, Apache, MySQL, and PHP) stack configuration options to make it easier to set up your .probo.yaml
file to mimic your production environment. To use the Probo LAMP plugin you must declare plugin: LAMPApp
in your .probo.yaml
file, or add these options to one of the other available LAMP based Probo plugins.
The Probo Drupal plugin, Probo WordPress plugin, and other LAMP based Probo plugins inherit these options. This allows for these configuration options to be easily used in conjunction with those plugins.
Database Configuration
-
database
{string}The file name of the database to import if specified. Note that this database must be added to the assets array separately.
Example
-
databaseName
{string}The name of the database to use.
Example
-
databaseUser
{string}The username of the database to use.
Example
-
databaseGzipped
{boolean}Whether the database was sent gzipped and whether it should therefore be gunzipped before importing.
Example
-
databaseBzipped
{boolean}Whether the database was sent bzipped and whether it should therefore be bunzipped before importing.
Example
-
mysqlCnfOptions
{hash}A hash of MySQL configuration options.
Example
-
restartMysql
{boolean}Whether to restart MySQL. If
mysqlCnfOptions
is set, MySQL will be restarted automatically, so you probably won’t need to use this.Example
PHP Configuration
-
phpIniOptions
{hash}Probo builds have their own isolated
php.ini
files. Specific PHP options for your build can be modified using the this configuration option.Example
-
phpConstants
{hash}Define a hash of PHP Constants and they will be available in any PHP script you run in your Probo Build. This setting will overwrite any other
auto_prepend_file
directives in your php.ini.Example
Apache Configuration
-
apacheMods
{array}An array of Apache modules to enable (should be installed via
installPackages
if needed).Example
-
restartApache
{boolean}Whether to restart Apache. If
phpIniOptions
,phpConstants
,phpMods
, orapacheMods
are set, Apache will be restarted automatically, so you probably won’t need to use this.Example
Additional Options
-
subDirectory
{string}The directory of the actual web root (defaults to ‘docroot’).
Example
-
cliDefines
{hash}A hash of defines.
Example
-
installPackages
{array}Install additional apt packages in your build on top of the apt packages that come installed on all Probo Docker images.
Example
-
varnish
{hash}A hash of options to configure the Varnish HTTP cache.
enable
: A boolean that indicates whether or not to enable Varnish. Defaults to false.pathToVcl
: A string that indicates the path to your Varnish configuration file relative to the container root.Example
Probo LAMP Plugin Example examples
Using the LAMPApp
Plugin to Test a PHP/MySQL Based Application
Setting LAMPApp
PHP Configuration Options
Setting LAMPApp
PHP Configuration Options on a Drupal Installation
Setting LAMPApp
Varnish Configuration Options