verifycgi tests a CGI script's environment to verify that it is called from the HTTP server.
To use it, place "/usr/local/etc/httpd/apache/tools/verifycgi" in the first line of your script as the interpreter for the script.
For example:
#!/usr/local/etc/httpd/apache/tools/verifycgi /usr/local/bin/perl
When run from the command line, the result is
verifycgi: parent process not found