To setup apache for use with the web database access scripts use: ServerAdmin webmaster@mydomain.com DocumentRoot /var/www/userdir-ldap ServerName db.mydomain.com DirectoryIndex /search.cgi Options +ExecCGI AllowOverride All AddHandler cgi-script .cgi