I tried going to lunarpages live chat help and the tech's there said my best bet would be to come here and post the script.
To give you a bit of better understanding...I have a main act lets call it abc.com and it has a formmail script in the cgi-bin folder. Its working just fine and has been for about 1 year.
I created a add-on domain lets call it xyz.com. In the folder of the addon is another cgibin folder. Before uploading the script I opened it in notepad and saved it, so as to create the ASCII format. Then I uploaded the formmail script into the addon cgi folder. I changed the permission on the script to 755 and also made sure the cgi folder was set to 755.
I also noticed that in the main act cgi-bin (working) folder, there are a few other files, like cgiecho, andcgiemail. Should I have these files also in the other addon cgi folder?
The contact website is http://www.allcitycontracting.com/home_stucco.html
The Problem is I keep getting a:**
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, firstname.lastname@example.org and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.33 Server at www.allcitycontracting.com
Port 80 **
The techs from live chat tried looking at what they could and said it seems like there is an error in the script. I asked them if its ok to post the whole script here and they said it was ok...so please dont get all pissy.
Here it is:
# NMS FormMail Version 3.14c1
use vars qw(
$DEBUGGING $emulate_matts_code $secure %more_config
$allow_empty_ref $max_recipients $mailprog @referers
@allow_mail_to @recipients %recipient_alias
@valid_ENV $date_fmt $style $send_confirmation_mail
$confirmation_text $locale $charset $no_content
$double_spacing $wrap_text $wrap_style $postmaster
# PROGRAM INFORMATION
# FormMail.pl Version 3.14c1
# This program is licensed in the same way as Perl
# itself. You are free to choose between the GNU Public
# License <http://www.gnu.org/licenses/gpl.html> or
# the Artistic License
# For help on configuration or installation see the
# README file or the POD documentation at the end of
# this file.
# USER CONFIGURATION SECTION
# Modify these to your own settings. You might have to
# contact your system administrator if you do not run
# your own web server. If the purpose of these
# parameters seems unclear, please see the README file.
$DEBUGGING = 1;
$secure = 1;
$allow_empty_ref = 1;
$max_recipients = 5;
$mailprog = '/usr/sbin/sendmail -oi -t';
$postmaster = '';
@referers = qw(allcitycontracting.com localhost);
@allow_mail_to = qw(email@example.com localhost);
@recipients = ();
%recipient_alias = ();
@valid_ENV = qw(REMOTE_HOST REMOTE_ADDR REMOTE_USER HTTP_USER_AGENT);
$locale = '';
$charset = 'iso-8859-1';
$date_fmt = '%A, %B %d, %Y at %H:%M:%S';
$style = '/css/nms.css';
$no_content = 0;
$double_spacing = 1;
$wrap_text = 0;
$wrap_style = 1;
$address_style = 0;
$send_confirmation_mail = 0;
$confirmation_text = <<'END_OF_CONFIRMATION';
Subject: form submission
Thank you for your form submission.
# You may need to uncomment the line below and adjust the path.
# use lib './lib';
# USER CUSTOMISATION SECTION
# Place any custom code here
# USER CUSTOMISATION << END >>
Well I could not post the whole thing...so if there is anything else that needs to be posted please let me know. I truly appreciate anyones help in this and want to thank you so much for taking the time to help a fellow lunarpages bro out.