CGI Development

Moderators: Jonathan
Number of threads: 57
Number of posts: 124

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
TFmail Problem Internal Server Error??? Posted by johnnyfortune on 20 Aug 2007 at 1:19 PM
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 => 'webmaster@yourdomain.com';
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
Thread Tree
johnnyfortune TFmail Problem Internal Server Error??? on 20 Aug 2007 at 1:19 PM
johnnyfortune Re: TFmail Problem Internal Server Error??? on 20 Aug 2007 at 1:52 PM
JC Error after password accepted on 1 May 2009 at 8:09 AM



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.