Re: Apache and Perl togheter

2002-01-10 Thread Hans Poo

El Mié 09 Ene 2002 10:00, Alan Civita escribió:
 Hello can some help me pelase?
 i've recently installed Apace 1.3.22...i've configured the
 CGI directive to work as well
 but when i try to execute a CGI script written in perl
 that message appears:

 Internal Server Error
 The server encountered an internal error or
 misconfiguration and was unable to complete your request.
 Please contact the server administrator,
 [EMAIL PROTECTED] and inform them of the time the error
 occurred, and anything you might have done that may have
 caused the error.
 More information about this error may be available in the
 server error log

 The CGI script is a stupid test  hello world CGI script
 ...

 Script written in sh script work.
 Can someone solve my problem please...
 Thx to all
 Alan

As i understand  what you are doing is nothing perl related, what you are 
using is apache module mod_cgi compiled in by default in apache. 

You must check if your script compiles and run from the shell:

#cd youtscritpsdir
#perl -wc myscript.pl
#perl myscript.pl
#chmod 755 myscript.pl
#./myscript .pl

If all this works you defionitely must check your error_log

Hans Poo



Apache and Perl togheter

2002-01-09 Thread Alan Civita


Hello can some help me pelase?
i've recently installed Apace 1.3.22...i've configured the 
CGI directive to work as well
but when i try to execute a CGI script written in perl 
that message appears:

Internal Server Error
The server encountered an internal error or 
misconfiguration and was unable to complete your request.
Please contact the server administrator, 
[EMAIL PROTECTED] and inform them of the time the error 
occurred, and anything you might have done that may have 
caused the error.
More information about this error may be available in the 
server error log

The CGI script is a stupid test  hello world CGI script 
...

Script written in sh script work.
Can someone solve my problem please...
Thx to all
Alan



Re: Apache and Perl togheter

2002-01-09 Thread Matt Sergeant

On Wed, 9 Jan 2002, Alan Civita wrote:

 More information about this error may be available in the
 server error log

Try reading the text :-)

-- 
!-- Matt --
:-Get a smart net/:-




Re: Apache and Perl togheter

2002-01-09 Thread Jon Molin

Alan Civita wrote:
 
 Hello can some help me pelase?
 i've recently installed Apace 1.3.22...i've configured the
 CGI directive to work as well
 but when i try to execute a CGI script written in perl
 that message appears:
 
 Internal Server Error
 The server encountered an internal error or
 misconfiguration and was unable to complete your request.
 Please contact the server administrator,
 [EMAIL PROTECTED] and inform them of the time the error
 occurred, and anything you might have done that may have
 caused the error.
 More information about this error may be available in the
 server error log

have you checked the error log?

/Jon

 
 The CGI script is a stupid test  hello world CGI script
 ...
 
 Script written in sh script work.
 Can someone solve my problem please...
 Thx to all
 Alan



Apache and Perl togheter

2002-01-09 Thread Alan Civita


is it possible that i have to do something special 
in compiling apache to activate the perl mode?



Re: Apache and Perl togheter

2002-01-09 Thread Jon Molin

Alan Civita wrote:
 
 is it possible that i have to do something special
 in compiling apache to activate the perl mode?

have you read at perl.apache.org? or about executing cgi's in apache?

/Jon



Re: Apache and Perl togheter

2002-01-09 Thread Mark Maunder

Alan Civita wrote:

 Surely...
 and I've done all of it...
 ..have i to use sonme particular option during the
 configuration and installation of apache in order to
 use/enable the perl in Apache?
 thx again

Alan,

For basic CGI under apache, you will need to make sure your scripts
print out the following before sending anything else:
Content-type: text/html\n\n

If they dont,  you will get internal server error. Take a look at the
perl CGI module in CPAN. It should get you started with creating some
reasonably complex cgi apps. If you have any problems or questions about
CGI, direct them to the perl beginners list. Once you've mastered the
basics of CGI, check out http://perl.apache.org/guide for an intro to
using mod_perl for increased performance and flexibility.

Please do take a look at the error_log and if you dont understand what
it means, then cut and paste the line you dont understand into Google
and hit search. It will usually come up with an email discussion about
your exact problem. I have included a hello world script that should
work:

#!/usr/bin/perl
print Content-type: text/html\n\n;
print CENTERH1Hello world!/H1/CENTER\n;






Re: Apache and Perl togheter

2002-01-09 Thread Hans Poo

El Mié 09 Ene 2002 10:00, Alan Civita escribió:
 Hello can some help me pelase?
 i've recently installed Apace 1.3.22...i've configured the
 CGI directive to work as well
 but when i try to execute a CGI script written in perl
 that message appears:

 Internal Server Error
 The server encountered an internal error or
 misconfiguration and was unable to complete your request.
 Please contact the server administrator,
 [EMAIL PROTECTED] and inform them of the time the error
 occurred, and anything you might have done that may have
 caused the error.
 More information about this error may be available in the
 server error log

 The CGI script is a stupid test  hello world CGI script
 ...

 Script written in sh script work.
 Can someone solve my problem please...
 Thx to all
 Alan

Alan

As i understand  what you are doing is nothing perl related, what you are 
using is apache module mod_cgi compiled in by default in apache. 

You must check if your script compiles and run from the shell:

#cd youtscritpsdir
#perl -wc myscript.pl
#perl myscript.pl
#chmod 755 myscript.pl
#./myscript .pl

If all this works you defionitely must check your error_log

Hans Poo