Help Desk Software & Beyond
May 22, 2012, 12:04:49 AM *
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: Serious Issue w/ mailbox.cgi Script - *solved*  (Read 2663 times)
programguru
Newbie
*

Karma: 0
Posts: 3


View Profile
« on: January 23, 2008, 02:20:09 AM »

Hello,

I have been tweaking configurations for about an hour, and I'm going nuts with this!

I cannot get the mailbox.cgi to "find" the TTX scripts to complete the pipe process.

 
Code:
pipe to |/home/w3009/public_html/cgi-bin/mailbox.cgi
    generated by info@000.com
    local delivery failed

The following text was generated during the delivery attempt:

------ pipe to |/home/w3009/public_html/cgi-bin/mailbox.cgi
       generated by info@000.com ------

Can't locate TTXConfig.pm in @INC (@INC contains: /usr/lib/perl5/5.8.7/i686-linux /usr/lib/perl5/5.8.7 /usr/lib/perl5/site_perl/5.8.7/i686-linux /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6/i686-linux /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl/5.6.2 /usr/lib/perl5/site_perl .) at /home/w3dev/public_html/cgi-bin/mailbox.cgi line 51.
BEGIN failed--compilation aborted at /home/w3dev/public_html/cgi-bin/mailbox.cgi line 51.
« Last Edit: January 23, 2008, 02:07:12 PM by sparky672 » Logged
Alex
Administrator
Hero Member
*****

Karma: 22
Posts: 605



View Profile WWW
« Reply #1 on: January 23, 2008, 02:25:06 AM »

There is nothing to "tweak", just lines 22-23

use lib '/home/w3009/public_html/cgi-bin';
my $cfgdir = '/home/w3009/public_html/cgi-bin';

as per setup instructions.


Logged

Follow me on: LinkedIn
programguru
Newbie
*

Karma: 0
Posts: 3


View Profile
« Reply #2 on: January 23, 2008, 01:36:20 PM »

Hi Alex,
Thanks for the prompt response.

I understand what you are saying, but I think there is something else wrong:

Here is how my system is setup:

home/w3009/public_html/helpdesk
(all TTX and files are located here)

Now I've tried placing mailbox.cgi in almost every directory possible just to test it out, but I can execute .cgi scripts in any folder, so it does not matter. But I currently have it in:

home/w3009/cgi-bin (above public_html)

My current mailbox.cgi config is set to: (and I have verified these paths are correct):

Code:
use lib '/home/w3009/public_html/helpdesk';
# my $cfgdir = '.'; # '/www/cgi-bin/ttx';
my $cfgdir = '.'; # '/home/w3009/public_html/helpdesk';

My email PIPE is set up correctly also:

|/home/w3009/cgi-bin/mailbox.cgi

This is the return email message I am currently receiving with all of the above configs:

A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed:

  pipe to |/home/w3009/cgi-bin/mailbox.cgi
    generated by test@w3009.com

The following text was generated during the delivery attempt:

------ pipe to |/home/w3009/cgi-bin/mailbox.cgi
       generated by test@w3009.com ------

Fatal error: File does not exist [config] at /home/w3009/cgi-bin/mailbox.cgi line 90.

Logged
Sparky
Moderator
Hero Member
*****

Karma: 83
Posts: 2,228


stop pushing all those buttons


View Profile
« Reply #3 on: January 23, 2008, 01:40:45 PM »

My current mailbox.cgi config is set to: (and I have verified these paths are correct):

use lib '/home/w3009/public_html/helpdesk';
# my $cfgdir = '.'; # '/www/cgi-bin/ttx';
my $cfgdir = '.'; # '/home/w3009/public_html/helpdesk';


You forgot to remove the commenting marks "#" from the "my $cfgdir" line...

Quote
my $cfgdir = '/home/w3009/public_html/helpdesk';
« Last Edit: January 23, 2008, 01:50:12 PM by sparky672 » Logged

Did you update the paths in ttxcfg.cgi after moving TTX to your new location?   Undecided
To those seeking help.... please report back when you figure it out.  Cheesy
programguru
Newbie
*

Karma: 0
Posts: 3


View Profile
« Reply #4 on: January 23, 2008, 02:02:36 PM »

Wow! I spent all night testing. That was a simple fix. I missed that one. Working OK now. Thank you!!
Logged
Sparky
Moderator
Hero Member
*****

Karma: 83
Posts: 2,228


stop pushing all those buttons


View Profile
« Reply #5 on: January 23, 2008, 02:04:17 PM »

It has come up before.

I'm making this sticky.

Instead I incorporated this thread into a new Sticky FAQ.
« Last Edit: January 23, 2008, 02:12:16 PM by sparky672 » Logged

Did you update the paths in ttxcfg.cgi after moving TTX to your new location?   Undecided
To those seeking help.... please report back when you figure it out.  Cheesy
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.024 seconds with 19 queries.