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

P4 Server Administration Documentation | 2025.2

# 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 `p4d` service and its `p4p` proxy.

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

    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