Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

basic cgi , apache , FormMail.pl What am I missing?

Status
Not open for further replies.

Advocacy

Technical User
Apr 11, 2001
3
US
I have recently installed apache on my RH7 box. My one Virtual domain is working just fine. What gets me is the cgi. I am trying to configure basic FormMail.pl on this server. The cgi-bin directory is in the /var/www/ My actions on the html form point to /cgi-bin/FormMail.pl . It also includes a recipient.
I read and acted upon the README file that comes with Matt Wrights FormMail. I have the correct path to my perl (which perl) I have the correct path to my sendmail (which sendmail). I also chown'd the dir to nobody, *nope* www, *nope* root *nope* have chmod 755 and also chmod 777 and neither of those work.

I actually had the formmail.pl "semi" - working for a bit. Meaning it would actually parse through and the redirect would get me to the desired page, but when I checked my spool for mail, I had none.

So Naturally I "dinked" around some more and now I don't even get the redirect. Now I'm getting 403 Forbidden "You don't have access". But the permissions are set to 777. sigh

I have been into the httpd.conf made sure the addHandler for .pl present. What idiot switch am I not turning on for this cgi to work correcty? the link is as follows

Any suggestions?
 
It was sendmail not being set as Root uid.

And the host name of the linux box was a different domain than the virtual the form was on. After adding the "other" domain name as a referrer in the perl script it then worked like a champ!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top