Gossamer Forum
Home : Products : DBMan : Installation :

Correct Version of Perl ?

Quote Reply
Correct Version of Perl ?
I'm receiving the infamous Internal Server Error. According to my Apache Web log I'm recieving a "Premature end of script headers". Looking thought other post I've seen that most likely it's either the path to Perl or binary uploads. I've verified the ASCII upload and the path to Perl. I have another Perl app running on the same server w/ the same path.

Could it be my version of Perl? I'm running Redhat Linux 7.0. and here is my result from test-cgi:

CGI/1.0 test script report:

argc is 0. argv is .

SERVER_SOFTWARE = Apache/1.3.12 (Unix) (Red Hat/Linux) mod_ssl/2.6.6 OpenSSL/0.9.5a mod_perl/1.24
SERVER_NAME = redhat
GATEWAY_INTERFACE = CGI/1.1
SERVER_PROTOCOL = HTTP/1.1
SERVER_PORT = 8181
REQUEST_METHOD = GET
HTTP_ACCEPT = image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, */*
PATH_INFO =
PATH_TRANSLATED =
SCRIPT_NAME = /cgi-bin/test-cgi
QUERY_STRING =
REMOTE_HOST =
REMOTE_ADDR = 216.88.79.221
REMOTE_USER =
AUTH_TYPE =
CONTENT_TYPE =
CONTENT_LENGTH =





Quote Reply
Re: Correct Version of Perl ? In reply to
DBMAN (flat file version) does not work with mod_perl.

What version of regular Perl do you have installed? If you don't have the regular version of Perl installed, then that could be your problem.

Regards,

Eliot Lee
Quote Reply
Re: Correct Version of Perl ? In reply to
Eliot he isn't using mod_perl - although it is installed notice this...

GATEWAY_INTERFACE = CGI/1.1


If mod_perl was being used for cgi/perl scripts it would say....

GATEWAY_INTERFACE = CGI/Perl (or cgi-perl (can't remember))

It is the same on my server - I have mod_perl installed but the Gateway Interface is CGI/1.1


Paul Wilson.
http://www.wiredon.net/gt/
http://www.perlmad.com/
Quote Reply
Re: Correct Version of Perl ? In reply to
Try running the script from telnet and see what it says.

Paul Wilson.
http://www.wiredon.net/gt/
http://www.perlmad.com/
Quote Reply
Re: Correct Version of Perl ? In reply to
uh...

mod_perl/1.24 with no Perl reporting shows me that he does not have regular Perl installed.

Regards,

Eliot Lee
Quote Reply
Re: Correct Version of Perl ? In reply to
RPM reports that I have perl-5.6.09 Installed but when I verify the package I get a "File Mode" error on /usr/bin/perl and /usr/bin/perl5.6.0. I'll try to fix that issue and go from there.
Thanks

Quote Reply
Re: Correct Version of Perl ? In reply to
I know - it is the same on my server.

I have mod_perl installed which is used by apache but not for perl scripts. (RAQ4).

It is specially compiled for RAQs

Paul Wilson.
http://www.wiredon.net/gt/
http://www.perlmad.com/
Quote Reply
Re: Correct Version of Perl ? In reply to
Umm... I'm also running on Apache and RAQ. Below is the info on my perl but I'm running DBMan with no problem. I don't know if this will help.

SERVER_SOFTWARE Apache/1.3.12 Cobalt (Unix) mod_ssl/2.6.4 OpenSSL/0.9.5a PHP/4.0.3pl1
mod_auth_pam/1.0a FrontPage/4.0.4.3 mod_perl/1.24

GATEWAY_INTERFACE CGI/1.1

Julian
Quote Reply
Re: Correct Version of Perl ? In reply to
The path to perl on a RAQ is #!/usr/local/bin/perl by default so check that.

Also make sure the files have the correct ownership and permissions and make sure that the paths are correct.

Should be like....

/home/sites/site5/web/cgi-bin/dbman

Paul Wilson.
http://www.wiredon.net/gt/
http://www.perlmad.com/