Gossamer Forum
Home : Products : DBMan : Installation :

CGI Error!!!

Quote Reply
CGI Error!!!
Hi, I know you get a lot these I've been reading the other entries. I've got this error.

Internal Server Error

malformed header from script. Bad header=Illegal character \015 (carria

I've upload the files and gave them the correct permissions.

$db_dir_url = "/usr/local/www/htdocs/enigma-ent/cgi-bin/dbman";

$db_script_path = ".";

That's how it looks now. That's really all I've done. How can I move on? (Thank you in advance)
Quote Reply
Re: CGI Error!!! In reply to
Try deleting and uploading the files again. You'll also have to reset the permissions.

It would help to have the complete error message, though. Not all of the environment variables, but just the full sentence. I'd like to know what file was causing the problem.

If you have the same problem after uploading again, please let us know, with the whole error message sentence. Smile

Almost submitted this before I realized one problem.

Quote:
$db_dir_url = "/usr/local/www/htdocs/enigma-ent/cgi-bin/dbman";

This must be a URL, not a path. It must start with http:// and be the URl you use to access the file, except for the /db.cgi part.

If you use http://www.server.com/cgi-bin/dbman/db.cgi to access the script, then $db_dir_url would be http://www.server.com/cgi-bin/dbman.


------------------
JPD





Quote Reply
Re: CGI Error!!! In reply to
well, I've done what you asked and I'm still getting this half error.

malformed header from script. Bad header=Illegal character \015 (carria

That's exactly how I see it.

this is how I did it...

$db_dir_url = "http://www.enigma-ent.com/cgi-bin/cgiwrap?user=enigma-ent&

interspeed told me to do it that way...either way I'm still getting that message.
Quote Reply
Re: CGI Error!!! In reply to
Can you give me the URL you are using to access the database?



------------------
JPD





Quote Reply
Re: CGI Error!!! In reply to
Hi!
I'm very new at programming perl but I noticed when I was editing my pages under windows and then used a ftp to upload the files it gave the same error!
But when I edited text in the program manager of the service provider (www.webprovider.com) and saved it, it didn't give the error anymore! (Server is running Apache)
This might be due to the difference between UNIX and Windows/dos.. correct me if I'm wrong!!
So what you have to do is save the document under UNIX system and not in your windows notepad (that is if you are using windows..)
That helped me..

good luck

------------------
-Dealer-
Quote Reply
Re: CGI Error!!! In reply to
You shouldn't use Notepad at all. Or Wordpad. You really should use a text editor that is designed for use with scripts. There's a listing of a couple of them (one free and the other very reasonably priced) on my tutorial pages at http://www.jpdeni.com/dbman/tutorial1.html .


------------------
JPD





Quote Reply
Re: CGI Error!!! In reply to
What url do I type in to see the demo? I typed in the db.cgi and I'm getting a error.

CGIWrap Error: Execution of this script not permitted



Execution of (/usr/local/www/htdocs/enigma-ent/cgi-bin/db.cgi) is not permitted for the following
reason:

Script is not executable. Issue 'chmod 755 filename'

Server Data:

Server Administrator/Contact: [no address given]
Server Name: enigma-ent.com
Server Port: 80
Server Protocol: HTTP/1.0

Request Data:

User Agent/Browser: Mozilla/4.61 [en] (Win95; I)
Request Method: GET
Remote Address: 198.85.52.252
Remote Port: 2193
Query String: user=enigma-ent&script=db.cgi&

what now?
Quote Reply
Re: CGI Error!!! In reply to
It looks like you need to change the permission for the db.cgi file.

I really need to know the full URL you used to access the file.

It may be that you will not be able to use DBMan on this server, if you are required to use
user=enigma-ent&script=db.cgi&



------------------
JPD





Quote Reply
Re: CGI Error!!! In reply to
http://www.enigma-ent.com/cgi-bin/cgiwrap?user=enigma-ent&script=db.cgi&

That's the address I've used. I now have a new dilemma.


CGI ERROR
==========================================
Error Message : Error loading required libraries.
Check that they exist, permissions are set correctly and that they compile.
Reason: Can't locate default.cfg in @INC (@INC contains: . /usr/local/lib/perl5/sun4-solaris/5.00404 /usr/local/lib/perl5 /usr/local/lib/perl5/site_perl/sun4-solaris /usr/local/lib/perl5/site_perl .) at /usr/local/www/htdocs/enigma-ent//cgi-bin/db.cgi line 51.

Script Location : /usr/local/www/htdocs/enigma-ent//cgi-bin/db.cgi
Perl Version : 5.00404
Setup File : default.cfg

Form Variables
-------------------------------------------
script : db.cgi
user : enigma-ent

Environment Variables
-------------------------------------------
DOCUMENT_ROOT : /usr/local/www/htdocs/enigma-ent
GATEWAY_INTERFACE : CGI/1.1
HTTP_ACCEPT : image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*
HTTP_ACCEPT_CHARSET : iso-8859-1,*,utf-8
HTTP_ACCEPT_ENCODING: gzip
HTTP_ACCEPT_LANGUAGE: en
HTTP_CONNECTION : Keep-Alive
HTTP_HOST : www.enigma-ent.com
HTTP_PRAGMA : no-cache
HTTP_USER_AGENT : Mozilla/4.61 [en] (Win95; I)
PATH : /bin:/usr/bin:/usr/ucb:/etc:/usr/openwin/bin:/usr/etc:/sbin:/usr/sbin:/usr/local/www/ssl/bin:/usr/ccs/bin:/usr/local/bin:/usr/local/scripts: /shared/var/common:.
PATH_INFO :
PATH_TRANSLATED : /usr/local/www/htdocs/enigma-ent
QUERY_STRING : user=enigma-ent&script=db.cgi&
REMOTE_ADDR : 198.85.52.252
REMOTE_PORT : 2329
REQUEST_METHOD : GET
REQUEST_URI : /cgi-bin/cgiwrap?user=enigma-ent&script=db.cgi&
SCRIPT_FILENAME : /usr/local/www/cgi-bin/cgiwrap
SCRIPT_NAME : /cgi-bin/cgiwrap/enigma-ent/db.cgi
SERVER_ADMIN : [no address given]
SERVER_NAME : enigma-ent.com
SERVER_PORT : 80
SERVER_PROTOCOL : HTTP/1.0
SERVER_SOFTWARE : Apache/1.3.2 (Unix) FrontPage/3.0.4.2
TZ : US/Pacific
Quote Reply
Re: CGI Error!!! In reply to
Well, I went to the URL you mentioned and I got "CGIWrap Error: Script File Not Found!"

You need to set the permissions for the db.cgi file. I think.

I have no experience at all with "CGIWrap." I just looked at some documentation for it, but I don't really understand how it works. I don't know if I can help you.

I really think you need to talk to your ISP and make sure that you can run this script. For one thing, you need to be sure that you are allowed to run a script that will create and write to files.


------------------
JPD





Quote Reply
Re: CGI Error!!! In reply to
Where do I put the db.cgi file? Currently I have it in my /cgi-bin/ while I have everything else in my /cgi-bin/dbman/ what exactly do I call up? (db.cgi?)

When I call up the db.cgi I get a the afore mentioned error. How do I tell it to go into the dbman folder to get everything else?

Thank you,

I hope I'm not being a total pain in your side. (We'd like to use if for our Alumni Dept.)
Quote Reply
Re: CGI Error!!! In reply to
Ok, I finally got to see the demo... whew!

However, (you knew that was coming) when I log in under either...admin, author, or guest I'm unable to go anywhere else because I get this error.

CGIWrap Error: Execution of this script not permitted



Execution of (/usr/local/www/htdocs/enigma-ent/cgi-bin/dbman) is not permitted for the following
reason:

Script is not a regular file

Server Data:

Server Administrator/Contact: [no address given]
Server Name: enigma-ent.com
Server Port: 80
Server Protocol: HTTP/1.0

Request Data:

User Agent/Browser: Mozilla/4.61 [en] (Win95; I)
Request Method: GET
Remote Address: 198.85.52.252
Remote Port: 2535
Query String: user=enigma-ent&script=/dbman/db.cgi?db=default&uid=guest.93620614570746
Extra Path Info: /db.cgi?db=default
Referring Page:
http://www.enigma-ent.com/cgi-bin/cgiwrap?user=enigma-ent&script=/dbman/db.cgi


Please help!!