Help Desk Software & Beyond
May 21, 2012, 11:09:28 PM *
Welcome, Guest. Please login or register.
To post messages you need to register. We apologize for inconvenience, but this is to prevent spam.
Registration is instant (no email verification) and we do not ask for any personal information.

Login with username, password and session length
News: Welcome to Help Desk Software forum!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Mail module install/setup problem  (Read 2541 times)
Amateurfool
Jr. Member
**

Karma: 3
Posts: 75



View Profile
« on: August 30, 2007, 10:57:47 AM »

Hi, fantastic piece of software, however i am having issues getting the mail submission module working.

mailbox.cgi (and mailboxpro.cgi) are located in /var/www/cgi-bin , permissions are set to 775, however when trying to access mailbox.cgi via browser i get "Error 500, Internal server error".

The last section of the error log reads as follows :-

-----------------------------------
[Thu Aug 30 14:08:00 2007] [error] [client 192.168.0.139] (2)No such file or directory: exec of '/var/www/cgi-bin/mailbox.cgi' failed
[Thu Aug 30 14:08:00 2007] [error] [client 192.168.0.139] Premature end of script headers: mailbox.cgi
[Thu Aug 30 14:57:47 2007] [error] [client 192.168.0.139] (2)No such file or directory: exec of '/var/www/cgi-bin/mailbox.cgi' failed
[Thu Aug 30 14:57:47 2007] [error] [client 192.168.0.139] Premature end of script headers: mailbox.cgi
[Thu Aug 30 14:58:40 2007] [error] [client 192.168.0.139] (2)No such file or directory: exec of '/var/www/cgi-bin/mailbox.cgi' failed
[Thu Aug 30 14:58:40 2007] [error] [client 192.168.0.139] Premature end of script headers: mailbox.cgi
[Thu Aug 30 15:00:57 2007] [error] [client 192.168.0.139] (2)No such file or directory: exec of '/var/www/cgi-bin/mailbox.cgi' failed
[Thu Aug 30 15:00:57 2007] [error] [client 192.168.0.139] Premature end of script headers: mailbox.cgi
[Thu Aug 30 15:02:05 2007] [error] [client 192.168.0.139] (2)No such file or directory: exec of '/var/www/cgi-bin/mailbox.cgi' failed
[Thu Aug 30 15:02:05 2007] [error] [client 192.168.0.139] Premature end of script headers: mailbox.cgi
[Thu Aug 30 15:03:23 2007] [error] [client 192.168.0.139] (2)No such file or directory: exec of '/var/www/cgi-bin/mailbox.cgi' failed
[Thu Aug 30 15:03:23 2007] [error] [client 192.168.0.139] Premature end of script headers: mailbox.cgi
[Thu Aug 30 15:05:10 2007] [error] [client 192.168.0.139] (2)No such file or directory: exec of '/var/www/cgi-bin/mailbox.cgi' failed
[Thu Aug 30 15:05:10 2007] [error] [client 192.168.0.139] Premature end of script headers: mailbox.cgi
[Thu Aug 30 15:06:43 2007] [error] [client 192.168.0.139] (2)No such file or directory: exec of '/var/www/cgi-bin/mailbox.cgi' failed
[Thu Aug 30 15:06:43 2007] [error] [client 192.168.0.139] Premature end of script headers: mailbox.cgi
[Thu Aug 30 15:07:51 2007] [error] [client 192.168.0.139] (2)No such file or directory: exec of '/var/www/cgi-bin/mailbox.cgi' failed
[Thu Aug 30 15:07:51 2007] [error] [client 192.168.0.139] Premature end of script headers: mailbox.cgi
[Thu Aug 30 15:09:01 2007] [error] [client 192.168.0.139] (2)No such file or directory: exec of '/var/www/cgi-bin/mailbox.cgi' failed
[Thu Aug 30 15:09:01 2007] [error] [client 192.168.0.139] Premature end of script headers: mailbox.cgi
[Thu Aug 30 15:32:38 2007] [error] [client 192.168.0.139] (2)No such file or directory: exec of '/var/www/cgi-bin/mailbox.cgi' failed
[Thu Aug 30 15:32:38 2007] [error] [client 192.168.0.139] Premature end of script headers: mailbox.cgi
-----------------------------------

Which says to me that i have entered the wrong path in mailbox.cgi , i have tried /cgi-bin/ /www/cgi-bin/ /var/www/cgi-bin/ however none of these make any difference.

I also put a copy of mailbox.cgi in /etc/smrsh/ and get the same results.

Current entries in mailbox.cgi in both locations are :-

use lib '/var/www/cgi-bin/';
my $cfgdir = '/var/www/cgi-bin/';

Any help would be appreciated.
Logged

"You hit me. Picard never hit me."

If you post here requesting help, please come back and let us know if you solve the problem.
Amateurfool
Jr. Member
**

Karma: 3
Posts: 75



View Profile
« Reply #1 on: September 03, 2007, 06:23:34 AM »

I have dug a little further.

It appears to be the path to perl that mailbox.cgi is having trouble with. The strange thing is, the perl path is the same in mailbox.cgi as it is in setup.cgi (and that works).

#!/usr/bin/perl

[root@webdev cgi-bin]# ./mailbox.cgi
: bad interpreter: No such file or directory
[root@webdev cgi-bin]#

Any ideas.....
Logged

"You hit me. Picard never hit me."

If you post here requesting help, please come back and let us know if you solve the problem.
Amateurfool
Jr. Member
**

Karma: 3
Posts: 75



View Profile
« Reply #2 on: September 03, 2007, 09:04:55 AM »

Problem solved, even though the ttxmail222.zip file went nowhere near a windows machine, mailbox.cgi (and mailboxpro.cgi) were in dos format. Running dos2unix on the files fixed the problem.

It looks like whoever created the current ttxmail222.zip download, did it on a windows pc, "corrupting" the .cgi files.

Logged

"You hit me. Picard never hit me."

If you post here requesting help, please come back and let us know if you solve the problem.
Magnus Wester
Full Member
***

Karma: 2
Posts: 116



View Profile WWW
« Reply #3 on: September 04, 2007, 12:36:40 AM »

The installation instructions in ttxmail222.zip explicitly state
Quote
Upload the mailbox.cgi or mailboxpro.cgi script to your Trouble Ticket
Express scripts directory in ASCII mode.
...which would be the natural setting for any script format anyway.

If you really used ASCII mode and it still didn't work, I believe the problem lies with your FTP program. A decent FTP program should understand that any combination of CR or LF in an ASCII file constitutes a new line sequence, and upload the file correctly to the server regardless of its origin.
Logged
Amateurfool
Jr. Member
**

Karma: 3
Posts: 75



View Profile
« Reply #4 on: September 04, 2007, 03:44:32 AM »

The Zip file was downloaded directly to the server (RedHat ES 4.0), and then extracted, the files never hit a windows machine. I even re-downloaded the zip file, extracted mailbox.cgi, and then opened it in Vi.

"mailbox.cgi" [dos] 581L, 17324C

Logged

"You hit me. Picard never hit me."

If you post here requesting help, please come back and let us know if you solve the problem.
Magnus Wester
Full Member
***

Karma: 2
Posts: 116



View Profile WWW
« Reply #5 on: September 04, 2007, 04:21:48 AM »

Many Perl scripts are written to support various operating environments - at least Apache and IIS. If you cannot find an explicit Apache version for download, you just cannot assume that every ZIP file on the Internet is in native Linux format.
Logged
Amateurfool
Jr. Member
**

Karma: 3
Posts: 75



View Profile
« Reply #6 on: September 04, 2007, 09:47:50 AM »

Well, considering all of the other modules that i have installed have all been in a native Linux format, i (stupid of me really  Roll Eyes ) automatically assumed that this one would be as well.

ttxfile222.zip (linux native)
ttxgroups222.zip (linux native)
ttxlayout222.zip (linux native)
ttxmysql222.zip (linux native)
ttxmail222.zip (windows native)  Huh

You would think that a common format would be used for an application and associated modules.
Logged

"You hit me. Picard never hit me."

If you post here requesting help, please come back and let us know if you solve the problem.
Alex
Administrator
Hero Member
*****

Karma: 22
Posts: 605



View Profile WWW
« Reply #7 on: September 06, 2007, 04:15:19 AM »

All modules are in "windows native" format. However it does not matter as long as the module is *.pm file. The mail module is *.cgi scripts. You must either transfer these using ftp ASCII transfer mode or convert using dos2unix command.
Logged

Follow me on: LinkedIn
Amateurfool
Jr. Member
**

Karma: 3
Posts: 75



View Profile
« Reply #8 on: September 06, 2007, 08:17:55 AM »

Now that makes more sense. You may want to mention "convert using dos2unix command" in the setup.txt file for ttxmail***.zip or create a separate ttxmail***.tar archive for Linux users (especially those of us who are not 100% au fait with Linux).

Logged

"You hit me. Picard never hit me."

If you post here requesting help, please come back and let us know if you solve the problem.
Amateurfool
Jr. Member
**

Karma: 3
Posts: 75



View Profile
« Reply #9 on: September 11, 2007, 09:26:56 AM »

Just updated to new version, no problem at all. I missed the bit in the version log about "Ticket deletion and transfer permissions on per operator base", boy did that give me a heart attack.  Grin

Have you ever thought about doing a TTXSetup for dummies document.
Logged

"You hit me. Picard never hit me."

If you post here requesting help, please come back and let us know if you solve the problem.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1 RC3 | SMF © 2001-2006, Lewis Media Valid XHTML 1.0! Valid CSS!
Page created in 0.029 seconds with 17 queries.