Newsroom Update

Beginning in May, a special Today at Apple series titled “Made for Business” will offer small business owners and entrepreneurs free opportunities to learn how Apple products and services can support their growth and success. Learn more >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

CGI, Perl, FormMail (Application Error)

Hi Folks,

I am in process of setting up a new Tiger Web Server after years of Jaguar. I have been testing in house pulling the pages from an internal IP address. Everything seems to be working well EXCEPT for our CGI Forms. I have dropped our old forms in the CGI Executables and they have read/write access to them, "Everyone" included. I have turned on the Perl Module on the server and added .pl to the CGI (cgi-script) content handlers and when trying to open the form, I get an "Application Error, An error has occurred in the program".

I know I still have some configuration to do on the form, referrers and such but it seems like I can't get to that point with this application error. Can it be the Perl isn't running. I'm kind of a newbie at CGI. Is there a way to test if Perl is running. As I said, I pulled this form from our old Jaguar server and wonder what differences between Jaguar and Tiger in regards to Perl and CGI there might be.

Any help would be appreciated.

thanks,

Tim

Power Mac G4 667 Digital Audio Mac OS X (10.4.8) 1GB RAM, aftermarket Pioneer DVD RW, lots of patience

Posted on Apr 10, 2007 6:12 PM

Reply
3 replies

Apr 10, 2007 8:47 PM in response to McTim

What does the log say?

Any error produced by the CGI will be logged in the Apache log. That will go a long way to explaining what the problem is.

Off hand there are two things to that are likely to cause this - the first is permissions (the .cgi needs read-execute permission, not read-write, and the path to perl, which should be /usr/bin/perl in most cases.

Apr 11, 2007 2:16 PM in response to Camelot

The logs say...

Use of uninitialized value in pattern match (m//) at /Library/WebServer/CGI-Executables/FormMail_attendance.pl line 133.
Use of uninitialized value in pattern match (m//) at /Library/WebServer/CGI-Executables/FormMail_attendance.pl line 135.
Invalid range "˛ÉøøøæÄ-3" in transliteration operator at /Library/WebServer/CGI-Executables/FormMail_attendance.pl line 582.

If I run the script from the command line I get...

"-T" is on the #! line, it must also be used on the command line at /Library/WebServer/CGI-Executables/FormMail_attendance.pl line 1.
at /Library/WebServer/CGI-Executables/FormMail_attendance.pl line 1

I have given the form read/execute and perl is located in /usr/bin/perl

I'm wondering if because this is a test environment and I'm just trying to pull the form internally that that is what is breaking it. I've added the .local name in the referrers list as well as trying both the loopback address and the internal IP I have given it.

Still get "Application Errors" when I submit the form.

Very confusing to me.

Power Mac G4 667 Digital Audio Mac OS X (10.4.9) 1GB RAM, aftermarket Pioneer DVD RW, lots of patience

CGI, Perl, FormMail (Application Error)

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.