Web Hosting Talk







View Full Version : cgi-bin internal error 500


gundi
06-02-2002, 07:10 AM
I'm installing perldesk 1.5.5 and when i execute install.cgi i receive an internal-error 500.

I have another cgi script and it's work fine.

I descompressed zxvf perldesk.... I Chmod all .cgi files to 755

I think that i have a litter error, please any idea

Thanks

vito
06-02-2002, 07:30 AM
1. Check your path/to/perl at the top of your scripts
2. Make sure you chmod 755
3. make sure you uploaded cgi scripts in ASCII mode
4. Check to make sure all the required Perl modules are installed

gundi
06-02-2002, 07:41 AM
Originally posted by vito
1. Check your path/to/perl at the top of your scripts
2. Make sure you chmod 755
3. make sure you uploaded cgi scripts in ASCII mode
4. Check to make sure all the required Perl modules are installed

Thanks, I make all do you say, and i have another cgi script who works fine.

I don't understand what happen.

vito
06-02-2002, 07:45 AM
Are your Perldesk cgi scripts located inside your cgi-bin or outside?
Some servers do not like them outside.

gundi
06-02-2002, 10:35 AM
They are inside cgi-bin

ifusayso
06-02-2002, 11:27 AM
If you have access to log files, check them out.

Do you have shell access? If so, I'll gladly check the error(s) out if you want to pm me your login details.

gundi
06-02-2002, 01:26 PM
thanks to all.

Now i ckecked: perl pdesk.cgi

and says: Can't locate DBI.pm in @INC (@INC contains: /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at pdesk.cgi line 27.
BEGIN failed--compilation aborted at pdesk.cgi line 27.

What is DBI.pm. It's necesary. I'm using PLESK

vito
06-02-2002, 02:03 PM
Ask your host to install these perl modules:

DBI
DBD::MySQL

vito
06-02-2002, 02:13 PM
Actually, you can easily double-check what perl modules you are missing to run Perldesk by doing the following:

1. Copy and paste the following code into Notepad (or other text editor) and save it as scheck.pl.
2. Upload it to your cgi-bin and chmod it 755.
3. Point your browser to this file. It will tell you if you have all the modules. And if not, it will let you know which ones are missing.

----------------------------------------------------------------



#!/usr/bin/perl -w
#########################################################
# PerlDesk, www.perldesk.com RELEASE 1.0.2 #
# #
# Author: John Bennett [john@perldesk.com] #
# #
#########################################################
# Please direct bug reports, suggestions or feedback #
# to the perldesk website. #
# #
# PerlDesk is free software, and may be used under the #
# terms of the GNU General Public License as published #
# by the Free Software Foundation. For full details of #
# this license, please see the COPYING file, or visit #
# www.fsf.org or www.gnu.org #
# #
#########################################################
# Please see the README/INSTALL files if you have #
# any problems with this software. #
#########################################################
# #
# CHECK MODULES #
# #
#########################################################
# If you are having trouble installing perldesk it may #
# well be because you are missing some perlmodules. #
# To find out, simply call this script from your web #
# browser. #
#########################################################

my @modules = (
'use DBI;',
'use MIME::Tools;',
'use CGI qw(:standard);',
'use MD5;',
,);

my $errors = 0;
print "Content-Type: text/plain\n\n";

print qq| <HTML><HEAD><TITLE>PerlDesk Modules Check</TITLE></HEAD><BODY>
<br><br><div align="center"><font face=Verdana size=3><b>PERLDESK MODULE CHECK</b><br></font><FONT SIZE=2 Face=verdana>($ENV{'SERVER_NAME'})<br><br><br></FONT>
</div><table wifth="300" align="center"><font face="Verdana" size="2">
|;

for my $module (@modules) {
eval $module;
if($@) {
print "<b><font color=red>ERROR</font></b>: $module is missing<br>\n";
$errors++;
}
}

if(not $errors) {
print "Required Modules [ <font color=green><b>OK</b></font> ]<br><br>Your server has all the required modules to run PerlDesk.\n";
}
else {
print "<br>Before running this script, please ensure all modules are installed.\n";
}

print qq| <br><br><br><br><div align="center">Powered by <a href="http://www.perldesk.com">PerlDesk</a></table></font></div></BODY></HTML> |;

cosmin
06-08-2002, 08:43 PM
Hi!

I receive the same error (500), and I install DBI, DBD, BBC and CNN ;) in my server (With WHM).

I try to run this script scheck.pl but I receive error on lines who start with print qq| ...

What's the exact perl modules to need installed?

Thanks!

vito
06-08-2002, 10:36 PM
You are getting the 500 error when trying to run install.cgi?

Question: Are you using c-panel to create the database?

Vito

2Mhost
06-09-2002, 02:35 PM
if you are sure that all Modules are installed then just run

WHM > Account functions > Fix insecure permissions on cgi scripts. (requires suexec)


this usually fix of mu unknown error 500 issues

cosmin
06-09-2002, 02:40 PM
Really work!

Thank you very much!