> -----Original Message-----
> From: Jimmy George [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 13, 2002 3:03 AM
> To: cgi
> Subject: real beginners stuff
>
>
> Hello World
>
> If I logon to the web via (say) server_a and then start this
> script in server_b
> which has the code in its cgi-bin folder
>
> #! /usr/bin/perl -w
> #
> use CGI qw(:standard);
> #use strict;
> #
> print <<END_of_file;
> Content-type: text/html
>
> <html>
> <head><title>Server Environment</title></head>
> <body>
> <h2>This server is:</h2><br><br>
> Server Name: $ENV{SERVER_NAME}
> Port Number: $ENV{SERVER_PORT}
> Server Software: $ENV{SERVER_SOFTWARE}
> </body></html>
> END_of_file
>
> should I get to see the %ENV details of server_a?
I don't know what you mean by "sever_a" and "server_b". The
environment variables you're referencing are based on the
server actually handling the current request.
>
> I am getting a 500 error. Permissions are set to 711 for the
> script and
> 701 for the folder.
711 is bad. Perl has to be able to read your script to execute it.
Try 777 for the script and 755 for the folder. The script will be
executed under the web server user.
Whenever you get a "500" error, look in the server error log for
additional messages. The "500" is just a "catch-all" generated by
the server saying your script had some kind of problem. I'll wager
that if you check the error log, you'll see some sort of "Permission
denied" message(s).
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]