TFmail Problem Internal Server Error??? - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

TFmail Problem Internal Server Error???

Hi,
I followed these steps below when I get to the point where I
10.) Open your web browser and go to http://www.yourdomain.com/cgi-bin/TFmail_config.pl

11.) Type in the password you entered above
***Instead of getting an option to type my password in I get a
500 Internal Server Error page!!!

I have went over it a number of times and still have the same problem, and thoughts
Huh

Thanks John


OK, I've decided to re-write this based on some issues I've been seeing while helping people set up their TFMail scripts. A few notes about this tutorial first. Text that appears in blue is text that you will need to change. This is most likely things like usernames or passwords. Text that appears in red are notes that are important along the way.

With that out of the way, here we go.

1.) Download the TFMail.zip file here: http://nms-cgi.sourceforge.net/tfmail.zip

2.) Extract the files

3.) Rename TFmail.pl to anythingelse.pl (I will continue to use TFmail.pl, just substitute whatever you named the file. Also, be sure when you rename the file that it does not have the word mail or contact in it)

4.) Rename TFmail_config to anythingelse_config.pl (I will continue to use TFmail_config.pl, just substitute whatever you named the file. Also, be sure when you rename the file that it does not have the word mail or contact in it)

5.) Open Notepad (or your preferred text editor) and then open TFmail.pl. Configure it so that it looks like the one below (Note that where it says username you will need to put in your lunarpages account name). When you have finished, save the file.
Code:
use constant DEBUGGING => 0;
use constant LIBDIR => '/home/username/tfmail/lib';
use constant MAILPROG => '/usr/sbin/sendmail -oi -t';
use constant POSTMASTER => '[email protected]';
use constant CONFIG_ROOT => '/home/username/tfmail/cfg';
use constant SESSION_DIR => '.';
use constant MAX_DEPTH => 0;
use constant CONFIG_EXT => '.trc';
use constant TEMPLATE_EXT => '.trt';
use constant ENABLE_UPLOADS => 0;
use constant USE_MIME_LITE => 1;
use constant LOGFILE_ROOT => '/home/username/tfmail/log';
use constant LOGFILE_EXT => '.log';
use constant HTMLFILE_ROOT => '/public_html';
use constant HTMLFILE_EXT => '.html';
use constant CHARSET => 'iso-8859-1';

6.) open TFmail_config.pl. Configure it so that it looks like the one below (Note that where it says username you will need to put in your lunarpages account name and where it says yourpassword you will need to enter any password you want). When you have finished, save the file.
Code:
use constant DEBUGGING => 0;
use constant LIBDIR => '/home/username/tfmail/lib';
use constant CONFIG_ROOT => '/home/username/tfmail/cfg';
use constant CONFIG_EXT => '.trc';
use constant LOGFILE_ROOT => '/home/username/tfmail/log';
use constant LOGFILE_EXT => '.log';
use constant CHARSET => 'iso-8859-1';

# The file that the script should use as a lock file and a
# place to count failed password attempts. This should not
# be the name of an existing file - the script will create
# the file itself.
use constant LOCKFILE => '.lock';

# Set the password to some word or phrase that nobody will be
# able to guess. It's important to choose a strong password
# as anybody who guesses it will be able to take control of
# your web site and use your web server to attack other hosts
# on the internet.
use constant PASSWORD => 'yourpassword';

7.) Connect to yourdomain.com and create a folder called tfmail in the root directory (This is the same directory that mail, public_ftp, public_html, etc. is in. Do not create this folder inside public_html). Inside the tfmail folder create a cfg folder, a lib folder, and a log folder.

8.) Upload the following files to the directories specified. Don't worry about any leftover files, they can be safely deleted (Make sure that your FTP client is in ASCII mode when you upload these files).

* TFmail.pl and TFmail_config.pl => /public_html/cgi-bin
* NMSTreq.pm, NMSCharset.pm, and MIME_Lite.pm => /tfmail/lib


9.) Using either your FTP software or the File Manager in CPanel, change the permissions on TFmail.pl and TFmail_config.pl to 755.

10.) Open your web browser and go to http://www.yourdomain.com/cgi-bin/TFmail_config.pl

11.) Type in the password you entered above

Comments

  • johnnyfortunejohnnyfortune Posts: 3Member
    Fixed no need to reply..
    Thanks though for looking at my post


    Hi,
    : I followed these steps below when I get to the point where I
    : 10.) Open your web browser and go to
    : http://www.yourdomain.com/cgi-bin/TFmail_config.pl
    :
    : 11.) Type in the password you entered above
    : ***Instead of getting an option to type my password in I get a
    : 500 Internal Server Error page!!!
    :
    : I have went over it a number of times and still have the same
    : problem, and thoughts
    : Huh
    :
    : Thanks John
    :
    :
    : OK, I've decided to re-write this based on some issues I've been
    : seeing while helping people set up their TFMail scripts. A few
    : notes about this tutorial first. Text that appears in blue is text
    : that you will need to change. This is most likely things like
    : usernames or passwords. Text that appears in red are notes that are
    : important along the way.
    :
    : With that out of the way, here we go.
    :
    : 1.) Download the TFMail.zip file here:
    : http://nms-cgi.sourceforge.net/tfmail.zip
    :
    : 2.) Extract the files
    :
    : 3.) Rename TFmail.pl to anythingelse.pl (I will continue to use
    : TFmail.pl, just substitute whatever you named the file. Also, be
    : sure when you rename the file that it does not have the word mail or
    : contact in it)
    :
    : 4.) Rename TFmail_config to anythingelse_config.pl (I will continue
    : to use TFmail_config.pl, just substitute whatever you named the
    : file. Also, be sure when you rename the file that it does not have
    : the word mail or contact in it)
    :
    : 5.) Open Notepad (or your preferred text editor) and then open
    : TFmail.pl. Configure it so that it looks like the one below (Note
    : that where it says username you will need to put in your lunarpages
    : account name). When you have finished, save the file.
    : Code:
    : use constant DEBUGGING => 0;
    : use constant LIBDIR => '/home/username/tfmail/lib';
    : use constant MAILPROG => '/usr/sbin/sendmail -oi -t';
    : use constant POSTMASTER => '[email protected]';
    : use constant CONFIG_ROOT => '/home/username/tfmail/cfg';
    : use constant SESSION_DIR => '.';
    : use constant MAX_DEPTH => 0;
    : use constant CONFIG_EXT => '.trc';
    : use constant TEMPLATE_EXT => '.trt';
    : use constant ENABLE_UPLOADS => 0;
    : use constant USE_MIME_LITE => 1;
    : use constant LOGFILE_ROOT => '/home/username/tfmail/log';
    : use constant LOGFILE_EXT => '.log';
    : use constant HTMLFILE_ROOT => '/public_html';
    : use constant HTMLFILE_EXT => '.html';
    : use constant CHARSET => 'iso-8859-1';
    :
    : 6.) open TFmail_config.pl. Configure it so that it looks like the
    : one below (Note that where it says username you will need to put in
    : your lunarpages account name and where it says yourpassword you will
    : need to enter any password you want). When you have finished, save
    : the file.
    : Code:
    : use constant DEBUGGING => 0;
    : use constant LIBDIR => '/home/username/tfmail/lib';
    : use constant CONFIG_ROOT => '/home/username/tfmail/cfg';
    : use constant CONFIG_EXT => '.trc';
    : use constant LOGFILE_ROOT => '/home/username/tfmail/log';
    : use constant LOGFILE_EXT => '.log';
    : use constant CHARSET => 'iso-8859-1';
    :
    : # The file that the script should use as a lock file and a
    : # place to count failed password attempts. This should not
    : # be the name of an existing file - the script will create
    : # the file itself.
    : use constant LOCKFILE => '.lock';
    :
    : # Set the password to some word or phrase that nobody will be
    : # able to guess. It's important to choose a strong password
    : # as anybody who guesses it will be able to take control of
    : # your web site and use your web server to attack other hosts
    : # on the internet.
    : use constant PASSWORD => 'yourpassword';
    :
    : 7.) Connect to yourdomain.com and create a folder called tfmail in
    : the root directory (This is the same directory that mail,
    : public_ftp, public_html, etc. is in. Do not create this folder
    : inside public_html). Inside the tfmail folder create a cfg folder,
    : a lib folder, and a log folder.
    :
    : 8.) Upload the following files to the directories specified. Don't
    : worry about any leftover files, they can be safely deleted (Make
    : sure that your FTP client is in ASCII mode when you upload these
    : files).
    :
    : * TFmail.pl and TFmail_config.pl => /public_html/cgi-bin
    : * NMSTreq.pm, NMSCharset.pm, and MIME_Lite.pm => /tfmail/lib
    :
    :
    : 9.) Using either your FTP software or the File Manager in CPanel,
    : change the permissions on TFmail.pl and TFmail_config.pl to 755.
    :
    : 10.) Open your web browser and go to
    : http://www.yourdomain.com/cgi-bin/TFmail_config.pl
    :
    : 11.) Type in the password you entered above
    :

  • JCJC Posts: 1Member
    I have installed TFmail.pl and TFmail_config on my server. To get it to work as far as the initial page asking fo password, I had to use ./tfmail/lib, etc for directory directions.

    After bringing up the first page on my browser, entering my password and continue, I get the following:

    An error has occurred in the program

    open >>.lock: Permission denied at /home/-----/cgi-bin/TFmail_config.pl line 122.

    Help please

    JC

    Problem solved

    JC
Sign In or Register to comment.