NMS FormMail.pl

dsilvera

Verified User
Joined
Jan 22, 2006
Messages
22
Hi -

Have installed Version 3.14c1 of NMS FormMail, set perms to 755

I then get the ever popular internal server error - error logs show the below



BEGIN failed--compilation aborted at (eval 3) line 4.
BEGIN failed--compilation aborted at FormMail.pl line 3267.
[Thu Feb 9 18:28:14 2006] [error] [client 82.153.117.167] Premature end of script headers: /home/user/domains/domain.co.uk/public_html/cgi-bin/FormMail.pl
[Thu Feb 9 18:28:14 2006] [error] [client 82.153.117.167] File does not exist: /home/user/domains/domain.co.uk/public_html/500.shtml
Can't locate CGI.pm in @INC (@INC contains: /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0) at (eval 3) line 4.


....n.b. Matts FormMail V1.92 works fine?

Thanks for any help

Dave
 
Thanks skruf, yeah already looked - thats the version im having probs woth

Dave
 
Make sure the file was uploaded as ascii, and that it's got th right ownership and permissions.

The version I've posted here is just as secure as the NMS version and works fine on DirectAdmin.

But so should the NMS version, once you've figured out the problem.

:)

Jeff
 
I had this problem also... Here is how I fixed it:
PHP:
#
#-----[ OPEN ]-------------
#

FormMail.pl

#
#-----[ FIND ]--------------
# LINE 1

#!/usr/bin/perl -wT

#
#-----[ REPLACE WITH ]---
#

#!/usr/bin/perl5.8.4 -wT

#
#-----[ FIND ]----------------
# LINE 45

/usr/lib/sendmail

#
#-----[ REPLACE WITH ]---
#

/usr/sbin/sendmail

#
#-----[ SAVE AND CLOSE FILE ]--------
#

Then see if that works.
 
The error message looks like the CGI perl module was not found. Try doing
Code:
perl -MCPAN -e 'install CGI'
 
toml said:
The error message looks like the CGI perl module was not found. Try doing
Code:
perl -MCPAN -e 'install CGI'
My CGI Perl module was installed, and it gave me the same error.

The fix that I posted above is what I used to fix it and it's working great for me right now.
 
Back
Top