in reply to MySQL CGI script not working in browser
Assuming you've checked the other stuff listed above and it's still breaking, make sure that you have DBD::mysql installed. I've seen this behaviour with a mod_perl server that had DBI but not DBD::mysql. The scripts work great in the shell, but cause a segfault when they're run in Apache.