BatCave: PHP Configuration

Configuring the BatCave Web Server

The BatCave uses a web server in combination with PHP to display the Alfred data. It is assumed that you already have a web server set up and PHP is installed.  In addition, the GD Graphics Library is required for some Metrics graphics displays.

Configuring BatCave Security

There are two areas of the BatCave that you might want to protect from unauthorized access.  These areas are contained in separate subdirectories in the BatCave PHP files.  Although not required, setting up password-protected access to these directories is suggested. 

If you are using an Apache Web Server, you can add the commands below to the httpd.conf file to set up secured access to these directories.  

<Directory "/var/www/html/batcave/admin">
AuthType Basic
AuthName "BatCave Admin"
AuthUserFile /usr/local/lib/webpasswd/batcave
Require user batcave_admin

<Directory "/var/www/html/batcave/control">
AuthType Basic
AuthName "BatCave Control"
AuthUserFile /usr/local/lib/webpasswd/batcave
Require user batcave_control

In this particular example, the BatCave PHP files are located in /var/www/html/batcave. The admin subdirectory requires a login authorization as the user batcave_admin.  The password for this user is located in the file /usr/local/lib/webpasswd/batcave.

In a similar manner, the control subdirectories require a login authorization as the user batcave_control; the password is located in the same password file, which is created with the Apache program htpasswd.  More information on configuring authorization for an Apache web server can be found at

Note: If your site uses a different web server, such as IIS on Windows, please consult the appropriate documentation for securing these directories.


Pixar Animation Studios
(510) 752-3000 (voice)   (510) 752-3151 (fax)
Copyright © 1996- Pixar. All rights reserved.
RenderMan® is a registered trademark of Pixar.