I've encountered a problem of Internal Server Error which doesn't seem told on this page...
I have a perl file which runs perfectly through my computer on the Unix server... but when I run it on a browser on my computer, it returns the 500 Internal Server Error...
1) chmod 755 is set for all required files, other files are running on the browser no problem. Thus, there should be no misconfiguration problem.
2) The perl file calls an ASP file from another server to generate some data for the perl file to create a text file on the Unix server.
3) I don't know why the 3 error logs mentioned above I found on the server, are all blank text files... probably the path to them are set wrongly.
I'm thinking if it's the "HTTP request->GET" problem which needed to be changed when running on browser rather than server?
Roy
August 22, 2006 9:19 PM
Here's the file which has problem running on a browser.
#!/usr/bin/perl -w
use CGI::Carp qw( fatalsToBrowser );
use warnings;
use strict;
use CGI qw(:standard);
use CGI qw/escape/;
use LWP::UserAgent;
my $cgi_object = CGI->new();
my $url = 'http://mywords.ust.hk/STU/games/game_getdata_storyman.asp';
my $file = 'eotw_word_lists_storyman';
my $ua = LWP::UserAgent->new();
#$ua->agent("Mozilla/7.0");
#$ua->proxy('http', 'http://10.1.0.1:8080/' );
my $req = $ua->request(HTTP::Request->new( GET => $url ));
my $content = $req->content;
my @lines = split("\n",$content);
chomp(@lines);
my $line;
#Sent to a text file
unlink($file);
sysopen (OUT, $file, 0755, 0755);
foreach $line (@lines){
print OUT "$line\n";
}
close(OUT);
pop
October 12, 2006 7:42 AM
Thank You Very Much For Having A Simple Explanation For A Simple Problem .
pop
s.mahalingam
October 13, 2006 6:54 AM
mu cgi script does perfectly its function by sending the users input to the guestbook to my mail address but the response page to the user through html page is not getting dispalyed on their browser. It displays "HTTP 500 Internal Error".
While checking my server's error log report shows an information as follows,
"guestbook.cgi did not produce a valid header (name without value: got line "can't ignore signal child, forcing to derault."
Please help me in debugging this error and to solve this issue for which I shall be more thankful to you.
s.mahalingam
CCMB,Hyderabad, India.
Shraddha
January 13, 2007 4:04 AM
Hi,
i have configure drupal on my domain,i give the proper username,password of the database and the drupal installation path.but it gives the following error:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, and inform them of the time the error occurred and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
please, help me for this error
Meggie
February 11, 2007 10:59 AM
I may not understand a whole lot of what is going on with the whole internal error deal. I know I have one and it entails,
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Not exactly sure what to do....
peter
March 11, 2007 5:31 AM
I have an Internal Server Error in my php script,
it is the script of a forum I just downloaded.
www.modvillage.net/burningboard/wbblite/index.php
what can I do about it?
Daniel Yoon
July 8, 2007 7:45 PM
I tried to log on to aim on my phone but it doesnt let me saying that theres the internal server error...
is there ANY way i can avoid.
is this the same to every other sn>?
cuz some of my friends are mobile.
Bhargav.K
July 11, 2007 11:46 PM
i also have the same error and the only information available about the error is as follows...
Internal Server Error
The requested URL /etc/medialib/id.Par.0004.File.tmp/Guide%20for%20Importers.html resulted in an error.
there is no information in the log files also, can anyone please tell me what may be the reason for this and help he sort this out ???
thanks in advance...
BigMantra.Com
July 14, 2007 9:27 AM
www.bigmantra.com
If you will .htaccess file and place the following code then your 500 error will get resolved
Comments
Read the article that everyone's commenting on.
August 22, 2006 9:17 PM
I've encountered a problem of Internal Server Error which doesn't seem told on this page...
I have a perl file which runs perfectly through my computer on the Unix server... but when I run it on a browser on my computer, it returns the 500 Internal Server Error...
1) chmod 755 is set for all required files, other files are running on the browser no problem. Thus, there should be no misconfiguration problem.
2) The perl file calls an ASP file from another server to generate some data for the perl file to create a text file on the Unix server.
3) I don't know why the 3 error logs mentioned above I found on the server, are all blank text files... probably the path to them are set wrongly.
I'm thinking if it's the "HTTP request->GET" problem which needed to be changed when running on browser rather than server?
August 22, 2006 9:19 PM
Here's the file which has problem running on a browser.
#!/usr/bin/perl -w
use CGI::Carp qw( fatalsToBrowser );
use warnings;
use strict;
use CGI qw(:standard);
use CGI qw/escape/;
use LWP::UserAgent;
my $cgi_object = CGI->new();
my $url = 'http://mywords.ust.hk/STU/games/game_getdata_storyman.asp';
my $file = 'eotw_word_lists_storyman';
my $ua = LWP::UserAgent->new();
$ua->credentials(
'lc.ust.hk:22',
'Language Centre',
'mywords' => 'mmyywwoo'
);
#$ua->agent("Mozilla/7.0");
#$ua->proxy('http', 'http://10.1.0.1:8080/' );
my $req = $ua->request(HTTP::Request->new( GET => $url ));
my $content = $req->content;
my @lines = split("\n",$content);
chomp(@lines);
my $line;
#Sent to a text file
unlink($file);
sysopen (OUT, $file, 0755, 0755);
foreach $line (@lines){
print OUT "$line\n";
}
close(OUT);
October 12, 2006 7:42 AM
Thank You Very Much For Having A Simple Explanation For A Simple Problem .
pop
October 13, 2006 6:54 AM
mu cgi script does perfectly its function by sending the users input to the guestbook to my mail address but the response page to the user through html page is not getting dispalyed on their browser. It displays "HTTP 500 Internal Error".
While checking my server's error log report shows an information as follows,
"guestbook.cgi did not produce a valid header (name without value: got line "can't ignore signal child, forcing to derault."
Please help me in debugging this error and to solve this issue for which I shall be more thankful to you.
s.mahalingam
CCMB,Hyderabad, India.
January 13, 2007 4:04 AM
Hi,
i have configure drupal on my domain,i give the proper username,password of the database and the drupal installation path.but it gives the following error:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, and inform them of the time the error occurred and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
please, help me for this error
February 11, 2007 10:59 AM
I may not understand a whole lot of what is going on with the whole internal error deal. I know I have one and it entails,
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Not exactly sure what to do....
March 11, 2007 5:31 AM
I have an Internal Server Error in my php script,
it is the script of a forum I just downloaded.
www.modvillage.net/burningboard/wbblite/index.php
what can I do about it?
July 8, 2007 7:45 PM
I tried to log on to aim on my phone but it doesnt let me saying that theres the internal server error...
is there ANY way i can avoid.
is this the same to every other sn>?
cuz some of my friends are mobile.
July 11, 2007 11:46 PM
i also have the same error and the only information available about the error is as follows...
Internal Server Error
The requested URL /etc/medialib/id.Par.0004.File.tmp/Guide%20for%20Importers.html resulted in an error.
there is no information in the log files also, can anyone please tell me what may be the reason for this and help he sort this out ???
thanks in advance...
July 14, 2007 9:27 AM
www.bigmantra.com
If you will .htaccess file and place the following code then your 500 error will get resolved
#php_flag lines
To post a comment on "What's an "Internal Server Error" and how do I fix it?", please return to that article's main page.