lscgid: execve(): Exec format error

I added fast cgi handler in perl. Perl scripts were working even when i haven't added anything for cgi. However they were running seperate processes for each request. I configured the external app like this:

Restarted the server and ran the script. The script still ran in a seperate process. I then removed this line from the top of my perl script "#!/usr/bin/perl" and it gave me this error: "lscgid: execve(): Exec format error"

The server can run .cgi extension files too even though i haven't added cgi extensions as a script handler ? are they added in by default ? How can i run the perl scripts as fast cgi process ?

turn on debug logging and check error.log for configuration problem. Looks like your script is still configured to run as cgi, if you use LSWS with Apache httpd.conf, make sure "pl" is not configured to run CGI script. just remove related configuration.