http://www.perlmonks.org?node_id=877346


in reply to Re^2: cgi script is not running from browser but runs from command line
in thread cgi script is not running from browser but runs from command line

Are you able to su to the user that actually runs the script? (Usually "nobody") If so. Try running the script as that user and see what errors you get. Doing this has always been helpful to me.