Helix Core is now P4. Product user interfaces will be updated soon. Learn more >>

P4 Server Administration Documentation | 2025.1

# Configuration file examples

The following example shows a basic P4 Server (`p4d`) configuration file, `p4dctl.conf` located in the `/etc/perforce` directory.

## Minimal example

    p4d minimum
    {
        Owner = perforce
        Execute = /opt/perforce/sbin/p4d
        Environment

        {
            P4ROOT = /home/perforce/p4-main
            P4PORT = 1666
            PATH = /bin:/usr/bin:/usr/local/bin:/opt/perforce/sbin
        }
    }

## More advanced example

In this more advanced example,

- the PATH environment variable is defined once, globally for both the service (`p4d`) and its proxy (`p4p`)

- the name `test` is used to refer to both the service (`p4d`) and its proxy (`p4p`).

    Environment
    {
        PATH = /bin:/usr/bin:/usr/local/bin:/opt/perforce/sbin
    }

    p4d test
    {
        Owner = perforce
        Execute = /opt/perforce/sbin/p4d

        Environment
        {
            P4ROOT = /home/perforce/p4-main
            P4PORT = "localhost:1667"}
        }
    }

    p4p test
    {
        Owner = perforce
        Execute = /opt/perforce/sbin/p4p

        Environment
        {
            P4ROOT = /home/perforce/proxy-main
            P4PORT = 1666
            P4TARGET = "localhost:1667"
        }
    }

Your search for returned results