Title: Stack services
Author: WordPress VIP Documentation
Published: June 4, 2024
Last modified: December 31, 2025

---

 1. [VIP Local Development Environment](https://docs.wpvip.com/vip-local-development-environment/)
 2. Stack services

#  Stack services

Similar to VIP Platform environments, the VIP Local Development Environment has 
container-based services. Some of the [service containers on the local machine have exposed ports](https://docs.wpvip.com/vip-local-development-environment/networking/#h-port-binding).

 * A list of a local environment’s running services and their accessible URLs can
   be retrieved with the VIP-CLI command: `[vip dev-env info --slug=<slug>](https://docs.wpvip.com/vip-cli/commands/dev-env/info/)`.
 * Logs for a stack service on a running local environment can be retrieved with
   the VIP-CLI command: `[vip dev-env logs --service=<service> --slug=<slug>](https://docs.wpvip.com/vip-cli/commands/dev-env/logs/)`.

## Database

A newly created VIP Local Development Environment is provisioned with a SQL database
that has only the basic tables created during the standard installation of WordPress.
VIP-CLI commands can be used to [sync or import database content to a VIP Local Development Environment](https://docs.wpvip.com/vip-local-development-environment/add-database-content/).

Changes made to the local database will persist if the local environment or the 
host machine is restarted, but will disappear if the environment is destroyed with
the VIP-CLI command `[vip dev-env destroy](https://docs.wpvip.com/vip-cli/commands/dev-env/destroy/)`.

## Object cache

[The same Memcached object cache used in production](https://docs.wpvip.com/caching/object-cache/)
runs in the VIP Local Development Environment. Some database queries are automatically
cached and will not appear in [Query Monitor](https://docs.wpvip.com/performance/query-monitor/).

The local environment’s object cache can be flushed by running the WP-CLI command`
[wp cache flush](https://developer.wordpress.org/cli/commands/cache/flush/)`. The
local object cache for specific network sites on a WordPress multisite can be flushed
by passing the site’s URL with the `--url` argument. `[exec --](https://docs.wpvip.com/vip-local-development-environment/tips/#h-exec)`
must be utilized for the command to run against the local environment and not the
host machine.

    ```wp-block-preformatted
    vip dev-env exec --slug=example-site -- wp cache flush
    ```

## PHP

Local environments can be created with versions of PHP that are currently [eligible for security fixes](https://www.php.net/supported-versions.php)(
8.0, 8.1, 8.2). Users are encouraged to use the VIP Local Development environment
as one of several tools for [preparing application code for a PHP version upgrade](https://docs.wpvip.com/code-scanning-for-php-upgrade/).

### Error logs

PHP error logs for a local environment can be accessed in the terminal with [the `vip dev-env logs` command](https://docs.wpvip.com/vip-cli/commands/dev-env/logs/).
In this example command, logs for PHP are specified with `--service=php`, and they
are configured to continually output by also passing the `--follow` argument:

    ```wp-block-preformatted
    vip dev-env logs --service=php --follow --slug=example-site
    ```

PHP error logs for a local environment can also be [referenced in a browser with Query Monitor](https://docs.wpvip.com/query-monitor/#1-php-errors).

## WordPress

WordPress Core files are accessible for each local environment in a `wordpress` 
directory. For example, for a local environment named `example-site`, this directory
can be found in: 
`~/.local/share/vip/dev-environment/example-site/wordpress/`

Modifications made to WordPress Core files, mapped mu-plugins files, or custom code
that was [`git` cloned](https://docs.wpvip.com/local-development/use-the-vip-local-development-environment/#multisite-mu-plugins-vipdev-vip-go-mu-plugins-client-code)
to the local machine will take immediate effect. The modifications will only affect
the local environment associated with the `wordpress` directory, and will persist
if the environment is stopped and restarted using the `[vip dev-env stop](https://docs.wpvip.com/vip-cli/commands/dev-env/stop/)`
and `[vip dev-env start](https://docs.wpvip.com/vip-cli/commands/dev-env/start/)`
commands.

To revert changes made to the WordPress Core code, run `[vip dev-env destroy --soft](https://docs.wpvip.com/local-development/use-the-vip-local-development-environment/#h-destroying-an-environment)`.
This command will also remove _all_ volumes including the database state.

## Optional services

By default, optional services are disabled. They can be enabled with the `[vip dev-env create](https://docs.wpvip.com/vip-cli/commands/dev-env/create/)`
or the `[vip dev-env update](https://docs.wpvip.com/vip-cli/commands/dev-env/update/)`
commands by either passing their option into the command or by enabling them within
the command’s setup wizard flow.

### Elasticsearch

(Option: `-e`, `--elasticsearch`) The Elasticsearch service must be enabled in order
to [use Enterprise Search on a VIP Local Development Environment](https://docs.wpvip.com/local-development/local-enterprise-search/).

### phpMyAdmin

(Option: `-p`, `--phpmyadmin`) To return the exposed port for the SQL database—and
a web URL for [phpMyAdmin](https://www.phpmyadmin.net/) to access the database—run`
[vip dev-env info](https://docs.wpvip.com/vip-cli/commands/dev-env/info/)` against
a running environment. phpMyAdmin is a useful tool for [exporting database tables from a local environment that can be imported to a WPVIP Platform environment](https://docs.wpvip.com/databases/import/export-a-file-for-migration/).

### Xdebug

(Option: `-x`, `--xdebug`) [Xdebug](https://xdebug.org/) can be enabled in the local
environment with the setup wizard flow or by passing `--xdebug=y` with the `vip 
dev-env create` or `vip dev-env update` commands.

To work with Xdebug in a specific code editor application, pass [the `--editor` option](https://docs.wpvip.com/vip-cli/commands/dev-env/start/#1-options)(
e.g. `--editor=vscode`) when starting the environment with `vip dev-env start`. 
A project file will be generated, and a path to the file will be output in the terminal.

If necessary, `--xdebug_config` can be used to override the [default configuration settings](https://xdebug.org/docs/all_settings)
for setting up Xdebug with a code editor application.

### Mailpit

(Option: `-A`, `--mailpit`) [Mailpit is an SMTP-only email testing tool](https://github.com/axllent/mailpit)
for developers. A local application can be configured to use Mailpit for SMTP delivery,
to view messages in the web UI, and to optionally release messages to real SMTP 
servers for delivery.

### Photon

(Option: `-H`, `--photon`) Enable the built-in service used by the VIP File System
that performs core [image processing and transformation](https://docs.wpvip.com/vip-file-system/image-files/transformations/)
for local development.

### Cron

(Option: `-c`, `--cron`) Enable [WP-Cron provided by WordPress Core](https://docs.wpvip.com/wordpress-on-vip/cron-control/).
A single VIP cron control runner is built into the VIP Local Development Environment,
whereas multiple VIP cron runners are available on VIP Platform WordPress environments.

Last updated: December 31, 2025