Judging from the error message you found in your
error_log it certainly looks like a file permissions problem. You ran your test on
service_lookup.cgi as
root but your httpd is running under the user
nobody. Make sure
nobody has permission to read the necessary libraries.
--
vek
--