Gossamer Forum
Home : Products : DBMan : Installation :

Content Type Output?

Quote Reply
Content Type Output?
According to my provider's all-too brief cgi FAQ, the "output must be preceded by a content type and a white line."

Where do I check/change that?

Reason I ask is that I get a 500 error. The files were uploaded in ascii, and permissions set according to JP's tutorial.

My site has a virtual domain name, and cgi scripts must be uploaded to a directory called WWW.cgi (not cgi-bin). I have set the directory as follows:

$db_dir_url = "http://www.apologeticsindex.org/home/a/ahein/WWW.cgi/dbman";

The provider uses perl5.

Anton
http://www.apologeticsindex.org/

Quote Reply
Re: Content Type Output? In reply to
It looks like you mixing physical/absolute diretory path with your virtual path.

It should be the following:

Code:
$db_dir_url = "http://www.apologeticsindex.org/WWW.cgi/dbman";

If this doesn't work, please save your default.cfg and db.cgi files as text files and upload them to a publicly accessible directory. Then post the URL where we can see the files.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: Content Type Output? In reply to
I have uploaded db.txt and default.txt to

http://www.apologeticsindex.org/test/

I tried this line:

$db_dir_url = "http://www.apologeticsindex.org/WWW.cgi/dbman";

also with

$db_dir_url = "http://xs4all.nl/ahein/home/a/ahein/WWW.cgi/dbman";

and with

$db_dir_url = "home/a/ahein/WWW.cgi/dbman";

Thanks,

Anton
http://www.apologeticsindex.org/





Quote Reply
Re: Content Type Output? In reply to
Now I get a 500 error.

Are you sure you uploaded in ASCII mode?



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





Quote Reply
Re: Content Type Output? In reply to
When I tried to access your script, using
http://www.apologeticsindex.org/WWW.cgi/dbman/db.cgi

I got

You don't have permission to access /WWW.cgi/dbman/db.cgi on this server

Are you sure your permissions are set correctly?


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





Quote Reply
Re: Content Type Output? In reply to
Yes, they are set according to the instructions in your manual.

I must access scripts on my site as follows:

<blockquote>http://cgi.apologeticsindex.org/[script name]</blockquote>

Anton
Quote Reply
Re: Content Type Output? In reply to
Yes, they were uploaded in ascii mode. To be sure, I have just uploaded them again (forced ascii in CuteFTP). But when I go to

http://cgi.apologeticsindex.org/dbman/db.cgi

I get the internal service error...

Anton
Quote Reply
Re: Content Type Output? In reply to
I don't know if I missed this before or if you've changed it, but the first line of your db.cgi file says

#!/usr/local/bin/perl5#


It needs to say

#!/usr/local/bin/perl5

That extra # will give you an error that probably wouldn't be picked up on my compiler.

One other thing. You said

Quote:
I must access scripts on my site as follows:

<blockquote>http://cgi.apologeticsindex.org/[script name]</blockquote>

But your default.cfg file has

$db_dir_url = "http://www.apologeticsindex.org/WWW.cgi/dbman";

From what you said, it should be

$db_dir_url = "http://cgi.apologeticsindex.org/dbman";

I would fix the things above and change your $db_script_path back to the default:

$db_script_path = ".";

I have rarely seen anyone need to change that at all.


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





Quote Reply
Re: Content Type Output? In reply to
Well, after applying both patience and coffee, I learned that the this line should read:

$db_dir_url = "/home/a/ahein/WWW.cgi/dbman";

Previously I had followed my ISP's instructions by adding full domain name.

Now I got to the admin login page, but the login did not work. I followed your instructions (delete entries in .pass file, etc.) and uploaded the default.cfg and default.pass files in ascii. Permissions are set correctly.

To access the script, I use this URL:

http://cgi.apologeticsindex.org/dbman/db.cgi?db=default&uid=default

That brings up the

Database Manager Demo: Main Menu

But then I am stuck again, because when I click on admin, or any other menu item, I get a "page not found" error.

All permissions are set according the instructions in JPs manual.
Quote Reply
Re: Content Type Output? In reply to
Never mind. Turns our the problem was with the fact that on my server, cgi scripts must be called like so:

cgi.domain.com

After adding the full user script path in db.cgi it works. I got to the sample database Smile

Next I'll check out the bells and whistles. I'll be looking for a forum where I can ask questions regarding my intended use for the database (news articles).

Anton Hein
http://www.apologeticsindex.org/