Z
zhaoningli
I am setting up a web application using apache 2.2 + perl v5.8.8 on
FC5. The application needs to send out email using a SMTP server as
mail relay (MTA). I wrote a test perl script test.cgi. Run the script
as CGI, it always return with errors. The code fails at:
my $smtp=new Net::SMTP($smtpserver, Timeout =>60) || die 'Cannot
connect to smtp server';
The apache server is configured to run at apache:apache. The above
script works well if I use
bash# sudo -u apache perl test.cgi.
Please advise how to fix this. Thanks a lot.
FC5. The application needs to send out email using a SMTP server as
mail relay (MTA). I wrote a test perl script test.cgi. Run the script
as CGI, it always return with errors. The code fails at:
my $smtp=new Net::SMTP($smtpserver, Timeout =>60) || die 'Cannot
connect to smtp server';
The apache server is configured to run at apache:apache. The above
script works well if I use
bash# sudo -u apache perl test.cgi.
Please advise how to fix this. Thanks a lot.