I transferred my sites from a web server (apache) to another one and I found a very strange problem.
My cgi files works only if they are executed many times else I get the next error (HTTP/1.1 500 Internal Server Error Date: Mon, 30 Sep 2002 11:41:24 GMT Server: Apache/1.3.26 (Unix) PHP/4.2.2 mod_perl/1.26 Connection: close Transfer- Encoding: chunked Content-Type: text/html; charset=iso-8859-1 201).

But what is very strange, if I rename the file which not works with the name d.cgi it works always. The crash is always at the line in which I call a perl procedure that connect to MySql database.

Don't advise me to rename all the files with the name d.cgi.