Reseller Hosting, Shared Hosting, Dedicated Hosting by Vortech Inc.

Go Back   Reseller Hosting, Shared Hosting, Dedicated Hosting by Vortech Inc. > >> General Public > Chit Chat Public
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Chit Chat Public Talk about any thing you want! This forum is public.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-30-2002, 12:24 AM
Wilburt Wilburt is offline
Vortech Inc. Customer
Vortech Inc. Customer
 
Send a message via ICQ to Wilburt
cgi scripts

I know that different web hosting companies have there systems setup different on how to access sendmail in cgi and that. I was wondering how this is setup on your servers. Anybody the paths that I would need for sending mail and that?

Thanks,
Reply With Quote
  #2  
Old 10-30-2002, 05:25 AM
Garreg's Avatar
Garreg Garreg is offline
Resident Optimist
Vortech Inc. Customer
 
Location: UK - Mon to Fri. Mars - all Weekend
Wilburt, try -

/usr/sbin/sendmail -t -i
__________________
Regards to all
Reply With Quote
  #3  
Old 10-30-2002, 03:30 PM
Wilburt Wilburt is offline
Vortech Inc. Customer
Vortech Inc. Customer
 
Send a message via ICQ to Wilburt
I tried using that, but it is giving me an Interal Server Error. Stating the server encountered an internal error or misconfiguration and was unable to complete the request. The script works, it was on another server, but when I moved it does not work anymore. I know I needed to change the locations of where sendmail and perl were located at. I changed them to.

/usr/bin/perl
/usr/sbin/sendmail.

these are both correct aren't they? Thanks for the help.
Reply With Quote
  #4  
Old 10-30-2002, 04:35 PM
Garreg's Avatar
Garreg Garreg is offline
Resident Optimist
Vortech Inc. Customer
 
Location: UK - Mon to Fri. Mars - all Weekend
Wilburt,

/usr/sbin/sendmail works for me.... but just to be 'sure' have you tried running a phpinfo file? It wil ltell every location you need.
__________________
Regards to all
Reply With Quote
  #5  
Old 10-30-2002, 04:43 PM
Wilburt Wilburt is offline
Vortech Inc. Customer
Vortech Inc. Customer
 
Send a message via ICQ to Wilburt
No I haven't tried to run the phpinfo file. How do I go about that? I know nothing about php.

Thanks, appreciate all the help.
Reply With Quote
  #6  
Old 10-30-2002, 05:00 PM
Garreg's Avatar
Garreg Garreg is offline
Resident Optimist
Vortech Inc. Customer
 
Location: UK - Mon to Fri. Mars - all Weekend
Wilbert check you PM box, Ill send you the file etc....
__________________
Regards to all
Reply With Quote
  #7  
Old 12-19-2002, 12:41 PM
frederickah
Guest
 
same here

i encounter the same problem as well.

have you guys managed to solve this problem?
Reply With Quote
  #8  
Old 12-19-2002, 12:53 PM
hostnet
Guest
 
Problem??

Well since I have not seen a support ticket on the as of yet then the problem has not been fixed. Please submit a support ticket with a link to the non working script and I will be happy to check it out for you.
Reply With Quote
  #9  
Old 12-19-2002, 02:30 PM
sandgnat sandgnat is offline
Web Goddess
Vortech Inc. Customer
 
Location: Georgia coast!
My scripts work fine. I use the following paths:

/usr/bin/perl
/usr/sbin/sendmail

Is your script requiring any other paths to be specified?
Reply With Quote
  #10  
Old 12-19-2002, 09:09 PM
frederickah
Guest
 
it works fine now, after i sent a trouble ticket to maxtrix. they said it's a folder permission problem

nevertheless, the recipient can only be the email address within the domain. can it be external email address as well?
Reply With Quote
  #11  
Old 12-19-2002, 09:39 PM
sandgnat sandgnat is offline
Web Goddess
Vortech Inc. Customer
 
Location: Georgia coast!
This depends on how your script is written. What script are you using?
Reply With Quote
  #12  
Old 12-19-2002, 09:50 PM
frederickah
Guest
 
The script below is placed in root folder of mydomain.com

<body>
<form name="formmail" action="/cgi-bin/formmail/formmail.cgi" method="post">
<input type=hidden name="recipient" value="webmaster@mydomain.com">
<!--
blah blah blah
-->
<p><b>Subject:</b><br>
</form>
</body>

whenever i change the recipient to any external email address like webmaster@yourdomain.com, it will return script error : Internal Server Error. it works great as long as i use email address within the mydomain.com.

what other parameters that i need to pass to the formmail cgi inorder to accept external email address as recipient?

million thanks~
Reply With Quote
  #13  
Old 12-19-2002, 10:14 PM
sandgnat sandgnat is offline
Web Goddess
Vortech Inc. Customer
 
Location: Georgia coast!
I'm not a programmer, but I know the script I use (see below - it's free), the recipients are specified within the script and not within the HTML form (keeps spammers from your email). You also have to specify the reffering domain.

Goto NMS Sendmail (it's suppose to be a more secure version of Matt Wright's formmail script).

I have used this scirpt and the folks at NMS even provide support for a FREE script if you can imagine that!

It would be hard to help you without actually seeing how your script is written.
Reply With Quote
  #14  
Old 12-23-2002, 02:12 AM
frederickah
Guest
 
cgi-bin

hi sandgnat,

how do you resolve the file permission issue in cgi-bin? i have tried upload other cgi scripts in the cgi-bin folder, however, it always returns "permission denied issue", refer below :-

fopen: Permission denied
[Mon Dec 23 02:01:38 2002] [error] [client 192.169.41.37] Premature end of script headers: /hsphere/local/home/bizlite/demo.com/cgi-bin/referralhub.cgi
[Mon Dec 23 02:02:55 2002] [error] [client 192.169.41.37] Premature end of script headers: /hsphere/local/home/bizlite/demo.com/cgi-bin/referralhub.cgi
[Mon Dec 23 02:04:21 2002] [error] [client 192.169.41.37] Premature end of script headers: /hsphere/local/home/bizlite/demo.com/cgi-bin/referralhub.cgi
failed to open log file
fopen: Permission denied
[Mon Dec 23 02:06:08 2002] [error] [client 192.169.41.37] Premature end of script headers: /hsphere/local/home/bizlite/demo.com/cgi-bin/referralhub.cgi

i have chmod to -rwxr-xr-x, follow exactly like the integrated formmail, but it doesn't work..

regards,
frederick
Reply With Quote
  #15  
Old 12-23-2002, 11:08 AM
sandgnat sandgnat is offline
Web Goddess
Vortech Inc. Customer
 
Location: Georgia coast!
Are you using the NMS Sendmail script? If so, once you place the FormMail.pl script in your cgi-bin, you must set the permission for the script to 755.

Within the script, you must specify certain things. Here's the settings I used:

$DEBUGGING = 1;
$emulate_matts_code= 0;
$secure = 1;
$allow_empty_ref = 1;
$max_recipients = 1;
$mailprog = '/usr/sbin/sendmail -oi -t';
@referers = qw(yourdomain.com);
@allow_mail_to = qw(you@yourdomain.com);
@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 = ();
$no_content = 0;
$double_spacing = 1;
$wrap_text = 0;
$wrap_style = 1;
$send_confirmation_mail = 0;

If you want to see how I set up the HTML form, I made you a page to look at
here. Just view the source code.

If this doesn't help. Let me know.

-Martha
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Path for CGI scripts ewsonline Chit Chat Public 1 12-22-2005 07:14 PM


All times are GMT -5. The time now is 10:45 PM.


Powered by vBulletin Version 3.5.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Vortech Inc. ©2009
Page generated in 0.51017 seconds with 15 queries
[Output: 107.30 Kb. compressed to 98.33 Kb. by saving 8.97 Kb. (8.36%)]