08-05-2002
Server Error 500. Total Newbie. Ugh.
Hi everybody...
I'm trying to run some very simple cgi scripts on my server whilst I learn perl. Today is day 3 of that process, so I apologize in advance for not having enough knowledge to ask the right questions.
Any program I try to execute gives me an Internal Server Error (500) message. Even something as simple as 'helloworld.cgi' or .pl.
I've tried running such a simple program so that I can get one program up and running. My troubleshooting so far:
i. is the computer on?...yup
ii. can i upload HTML files to the server and have them work ?...yup
iii. what are the permissions for the stock cgis on the server ? Do those work for my program ? ....nope.
1. Doublecheck: uploaded in ASCII ? ....yup
2. Correct path to perl ?.....yup, confirmed by sysadmin
3. path to program is cgi-bin/learnperl/helloworld.cgi.
So I chmod the folder learnperl to 755, and the program helloworld.cgi to 755. No dice. Try the both with 751. 777. No dice.
Try them with all combinatorial possibilities for permissions.
Not working.
Anybody out there see what I'm missing ?
I keep putting quarters in the jukebox but nothing's coming out.
Help!
Thanks...
-Pascal
p.s. FTP client is FETCH for the mac.
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm trying to find information to help me switch to UNIX os from Windows98. Is this where I should be? If so, can someone get me started? I have a Compaq Presario 5030 with a USR 56k modem and other peripherials. Sound card is integrated onto the motherboard (I think). So, I need drivers, etc. Any... (2 Replies)
Discussion started by: leohutt
2 Replies
2. Shell Programming and Scripting
Basically i am not looking for you guys to write the script for me but help me understand how to write it and point me in the write direction.
I can see what i want to do, just having trouble putting it into shell.
I have a file Blah.txt with 400 DN's in it. I need to modify two attributes... (1 Reply)
Discussion started by: ph1ngering
1 Replies
3. Shell Programming and Scripting
Hi everyone...
i'm starting to learn kshell scripting... my first task is to write a script that would execute some mysql statements to query some data, to transfer it into a file for record basis...
Anyone has any samples to share? or perhaps some tips here and there?
Thanks in advance...... (2 Replies)
Discussion started by: 12yearold
2 Replies
4. Shell Programming and Scripting
:)Hi,
I am working on perl-cgi script which i wrote on unix server, and now i want to run it from windows.
Have put DNS entry, sybase and apache is running...
But still I am getting 500 Internal Server Error!!!
what could be the reason? (2 Replies)
Discussion started by: darshakraut
2 Replies
5. Web Development
Hi All,
I am seeking some help. While trying to access my website: EDITED (hosted on private server somewhere - don't want to publicize names) - I have a weird behaviour:
I can always get to the site - but some applications get a 500 Internal error.
If I use FireBug (mozilla addon) I can... (2 Replies)
Discussion started by: saariko
2 Replies
6. Shell Programming and Scripting
input
-200 2.4
0 2.6
30 2.8
output
-500 0
-499 0
-488 0
..........
..........
....
-200 2.4
....
...
0 2.6 (6 Replies)
Discussion started by: quincyjones
6 Replies
7. Shell Programming and Scripting
Hi,
I need a quick help from GURUs of PERL.
I moved a website to a new location and got an error "Internal Server Error" instead of specific error. As i don't know PERL so i don't know how to fix it.
Can anybody help me to fix this error or to generate a specific error which i can... (3 Replies)
Discussion started by: shahzad79
3 Replies
8. UNIX for Dummies Questions & Answers
Hey guys,
I'm really new to all this side of computing and have just had this box sort of left with me and it peaked my curiosity. So i would up here in a desperate bid to find out what the hell it is because although its sort of obvious what it is, no where online is able to give me a detailed... (5 Replies)
Discussion started by: anthony346
5 Replies
LEARN ABOUT SUSE
cgi-fcgi
NAME
cgi-fcgi - bridge from CGI to FastCGI
SYNOPSIS
cgi-fcgi -f cmdPath
cgi-fcgi -bind -connect connName
cgi-fcgi -start -connect connName appPath [nServers]
cgi-fcgi -connect connName appPath [nServers]
DESCRIPTION
cgi-fcgi is a CGI/1.1 program that communicates with an
already-running FastCGI application in order to respond to
an
HTTP request. cgi-fcgi is also capable of starting a FastC-
GI
application.
When you invoke cgi-fcgi as
cgi-fcgi -f cmdPath
then cgi-fcgi opens the file at cmdPath and reads its
arguments from that file. cgi-fcgi will skip lines
that begin with the comment character #. The first
non-comment line should contain valid arguments in
one of the other three forms.
The -f form of cgi-fcgi is designed for Unix systems
whose exec(2) family of system calls supports the execution
of
command interpreter files. For instance, if a file with
execute permission contains the text
#! /bin/cgi-fcgi -f
-connect /httpd/root/sock/app /httpd/root/bin/app
the effect is the same as executing
/bin/cgi-fcgi -connect /httpd/root/sock/app
/httpd/root/bin/app
When you invoke cgi-fcgi as
cgi-fcgi -bind -connect connName
the connName argument is either the path name of a Unix do-
main
listening socket or a host:port pair. If connName contains
a colon, it is assumed to be host:port. cgi-fcgi performs
a connect(2) using connName. If the connect succeeds, cgi-
fcgi
forwards the CGI environment variables and stdin data to the
FastCGI application, and forwards the stdout and stderr data
from
the application to cgi-fcgi's stdout (most likely connected
to
a Web server). When the FastCGI application signals the end
of
its response, cgi-fcgi flushes its buffers and
exits, and the Web server completes the http response.
When you invoke cgi-fcgi as
cgi-fcgi -start -connect connName appPath [nServers]
then cgi-fcgi performs the function of starting one or more
FastCGI application processes. The connName argument speci-
fies
either the path name of the Unix domain listening socket
that
cgi-fcgi will create, or is "localhost:NNN" where NNN is the
port
number of the TCP/IP listening socket that cgi-fcgi will
create
on the local machine. (cgi-fcgi will not create processes
on remote machines.) After cgi-fcgi creates the listening
socket,
it forks nServers copies of a process running the executable
file
appPath. If nServers is omitted, the effect is as if the
value "1"
had been specified. The processes share the single listen-
ing socket.
When you invoke cgi-fcgi as
cgi-fcgi -connect connName appPath [nServers]
cgi-fcgi performs -bind and then, if necssary, performs
-start
and repeats the -bind. That is, cgi-fcgi first operates as
if
the command had been
cgi-fcgi -bind -connect connName
If the connect fails, cgi-fcgi tries
cgi-fcgi -start -connect connName appPath [nServers]
and finally retries
cgi-fcgi -bind -connect connName
In this form, cgi-fcgi does not support TCP/IP connections.
ENVIRONMENT VARIABLES
The usual CGI ones, but they are not interpreted by cgi-fc-
gi.
SEE ALSO
FGCI_accept(3)
BUGS
cgi-fcgi doesn't generate useful HTTP responses in case of
error,
and it generates no response at all when run as start-fcgi.
On Digital UNIX 3.0 systems the implementation of Unix Do-
main
sockets does not work when such sockets are stored on NFS
file
systems. Symptom: cgi-fcgi may core dump or may exit with
status 38. Work-around: store sockets in local file systems
(/tmp often works) or use TCP/IP.
On AIX systems the implementation of listening sockets
does not support socket sharing, and the standard FastCGI
application libraries can't synchronize access to AIX lis-
tening
sockets. Work-around: Don't use the nServers argument on
AIX.
HISTORY
Copyright (c) 1996 Open Market, Inc.
See the file "LICENSE.TERMS" for information on usage and
redistribution
of this file, and for a DISCLAIMER OF ALL WARRANTIES.
$Id: cgi-fcgi.1,v 1.1.1.1 1997/09/16 15:36:26 stanleyg Exp $