su - httpd # set uid to httpd user, assuming that you are the # root user and no password is required # run your cgi script from the command line. # you don't need to use a browser to test the cgi script.