P4ROOT

The directory in which the Helix Core Server stores its database files. The versioned filesClosed Source files stored in the depot, including one or more revisions to each file. Also known as archive files, archives, and depot files. Versioned files typically use the naming convention 'filename,v' or '1.changelist.gz'. are also stored in this directory by default, but another location can be configured with the server.depot.root configurable.

Usage Notes

Used by Client? Used by Server? Command-Line Alternative Can be set in P4CONFIG file?

No

Yes

p4d -r directory

N/A

Value if not Explicitly Set

Operating System Value

All

p4d's directory.

Windows administrators running the Helix Core Server back-end process as a service should use p4 set -S svcname P4ROOT=directory to set the value of P4ROOT for the named service.

Notes

Create the server root directory before starting the versioning service (p4d).

Only the account running p4d needs to have read/write permissions in the server root directory.

For more information on setting up a Helix Server installation, see Installing the server in the Helix Core Server Administrator Guide.

Show the value of P4ROOT

All Platforms

Windows only

If the server is running, the p4 info command shows the value of Server root directory.

Whether the server is running or not, the Windows user who is the Windows administrator can see the value of P4ROOT in the output of
p4 set -S Perforce
where Perforce is the service name associated with the Helix Core Server.

In addition to the service name, a Windows service also has a display name. In older versions, such as 2017.1, the display name was also Perforce, but recent versions have Helix Core Server as the service display name.