P4Web Release 2006.2 User Guide
[Getting Started]  [How To...]  [Browser Tips]  [Glossary]  [Road Map]  

Overview of P4Web

P4Web is a Perforce client program that runs on any platform. It can be used either in Standard mode or Viewer mode:

P4Web communicates with the Perforce server using the Perforce C++ API. It also communicates with your web browser, sending HTML and receiving URL requests and form input. To your web browser, P4Web looks like a web server. To a Perforce server, P4Web looks like any other Perforce client program.

Installing P4Web

P4Web is available for Macintosh, Windows, and Unix. For download information, please go to the Perforce Downloads page.

Starting P4Web

On Windows, you can start the P4Web you configured during installation by clicking Start>Programs>Perforce>P4Web. You can also start a P4Web with an alternate configuration using the p4web command, as described below. Run p4web in the Start>Run window or by issuing the p4web command at the DOS prompt.

If you are running P4Web as a service on Windows, P4Web is started immediately after you install it. To verify that it has started, go to the Windows Control Panel. Under Administrative Tools>Component Services, click on Services and find Perforce Web. If it is not started, click Start the service in the left-hand column.

On Mac OSX and Unix, start the P4Web program by issuing the p4web command, as described below.

The 'p4web' Command

To start an instance of P4Web, issue the p4web command . When P4Web starts, it displays the Perforce user, client, and server port it is using, and the URL to be used by browsers to connect to the instance. The p4web command syntax is:

p4web [-w port] [-b or -B] [-l] [global_options] [-h] [-V]

Connecting to P4Web

To connect to an instance of P4Web, enter the following URL in the addess bar of your browser:

http://localhost:nnnn/   (where nnnn is your P4Web's port address.)
The port address is set in the environment variable P4PORT, unless you are running P4Web as a service on Windows. If you are running P4Web as a service, the port address is set in the environment variable P4WEBPORT.

Note: If your browser and P4Web are runing on different machines,specify the name of the machine where P4Web is running instead of "localhost".

When prompted, enter your Perforce username and password (if any).

How to Stop P4Web

To stop a P4Web program running on:

User Documentation

After you've pointed your browser to P4Web, use its Help links to access the P4Web user documentation. You can also access the same documentation on our web site:


Copyright 2006 Perforce Software. All rights reserved.
$Id: //depot/live/www/perforce/doc.062/manuals/p4web/help/index.html#1 $


Copyright 2006 Perforce Software. All rights reserved.