Sponsored Content
Full Discussion: 500 Internal Server Error
Top Forums Shell Programming and Scripting 500 Internal Server Error Post 302238337 by darshakraut on Friday 19th of September 2008 03:41:53 PM
Old 09-19-2008
500 Internal Server Error

SmilieHi,
I am working on perl-cgi script which i wrote on unix server, and now i want to run it from windows.
Have put DNS entry, sybase and apache is running...

But still I am getting 500 Internal Server Error!!!

what could be the reason?
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Mail fail to find internal server

I am getting a "connection to the server has failed" error when trying send out internal email. this will be like this for maybe four hours then it will start working for no reason. then it will stop again. the only constant i have is if i reboot the server the send mail will work for about an... (1 Reply)
Discussion started by: jrblanton
1 Replies

2. UNIX for Dummies Questions & Answers

Server Error 500. Total Newbie. Ugh.

Hi everybody... I'm trying to run some very simple cgi scripts on my server whilst I learn perl. Today is day 3 of that process, so I apologize in advance for not having enough knowledge to ask the right questions. Any program I try to execute gives me an Internal Server Error (500) message.... (4 Replies)
Discussion started by: paqi the black
4 Replies

3. Web Development

weird 500 Internal server error

Hi All, I am seeking some help. While trying to access my website: EDITED (hosted on private server somewhere - don't want to publicize names) - I have a weird behaviour: I can always get to the site - but some applications get a 500 Internal error. If I use FireBug (mozilla addon) I can... (2 Replies)
Discussion started by: saariko
2 Replies

4. Shell Programming and Scripting

Fill the values between -500 to 500 -awk

input -200 2.4 0 2.6 30 2.8 output -500 0 -499 0 -488 0 .......... .......... .... -200 2.4 .... ... 0 2.6 (6 Replies)
Discussion started by: quincyjones
6 Replies

5. Shell Programming and Scripting

500 internal server error

Hi, I need a quick help from GURUs of PERL. I moved a website to a new location and got an error "Internal Server Error" instead of specific error. As i don't know PERL so i don't know how to fix it. Can anybody help me to fix this error or to generate a specific error which i can... (3 Replies)
Discussion started by: shahzad79
3 Replies

6. UNIX for Dummies Questions & Answers

Wget retry on 500 internal error

Hello Guys, I am trying to generate static site, I have perl script that wget the url, so the problem is sometimes wget has 500 internal error, this is failing to get that page. So I am thinking of retrying that url with 500 response. system $command = 'wget ... -i inputfile -o outfile" Is... (2 Replies)
Discussion started by: neal
2 Replies

7. Linux

CentOS release 6.7 - Internal Server Error

Hi #cat /etc/redhat-release CentOS release 6.7 (Final) 1. Installed one application and when access from web browser http..... it returns below error. ------------------------------------------------------- Internal Server Error The server encountered an internal error or... (1 Reply)
Discussion started by: iqtan
1 Replies

8. Shell Programming and Scripting

Bash Script to pull ipa server name on 500 servers

Hello All, I need help writing a bash script that will run on 500 LINUX servers and do the following: 1. Capture the ipa_server name from /etc/sssd/sssd.conf on a list of 500 servers in the ipahosts file. 2. Write to a file outputing only server name and IPA server name. Root ssh keys... (3 Replies)
Discussion started by: vtowntechy
3 Replies
apache_mod_perl-108~358::mod_perl-2.0.7::docs::api::ModPUser:Contribapache_mod_perl-108~358::mod_perl-2.0.7::docs::api::ModPerl::RegistryLoader(3)

NAME
ModPerl::RegistryLoader - Compile ModPerl::RegistryCooker scripts at server startup Synopsis # in startup.pl use ModPerl::RegistryLoader (); use File::Spec (); # explicit uri => filename mapping my $rlbb = ModPerl::RegistryLoader->new( package => 'ModPerl::RegistryBB', debug => 1, # default 0 ); $rlbb->handler($uri, $filename); ### # uri => filename mapping using a helper function sub trans { my $uri = shift; $uri =~ s|^/registry/|cgi-bin/|; return File::Spec->catfile(Apache2::ServerUtil::server_root, $uri); } my $rl = ModPerl::RegistryLoader->new( package => 'ModPerl::Registry', trans => &trans, ); $rl->handler($uri); ### $rlbb->handler($uri, $filename, $virtual_hostname); Description This modules allows compilation of scripts, running under packages derived from "ModPerl::RegistryCooker", at server startup. The script's handler routine is compiled by the parent server, of which children get a copy and thus saves some memory by initially sharing the compiled copy with the parent and saving the overhead of script's compilation on the first request in every httpd instance. This module is of course useless for those running the "ModPerl::PerlRun" handler, because the scripts get recompiled on each request under this handler. Methods new() When creating a new "ModPerl::RegistryLoader" object, one has to specify which of the "ModPerl::RegistryCooker" derived modules to use. For example if a script is going to run under "ModPerl::RegistryBB" the object is initialized as: my $rlbb = ModPerl::RegistryLoader->new( package => 'ModPerl::RegistryBB', ); If the package is not specified "ModPerl::Registry" is assumed: my $rlbb = ModPerl::RegistryLoader->new(); To turn the debugging on, set the debug attribute to a true value: my $rlbb = ModPerl::RegistryLoader->new( package => 'ModPerl::RegistryBB', debug => 1, ); Instead of specifying explicitly a filename for each uri passed to handler(), a special attribute trans can be set to a subroutine to perform automatic remapping. my $rlbb = ModPerl::RegistryLoader->new( package => 'ModPerl::RegistryBB', trans => &trans, ); See the handler() item for an example of using the trans attribute. handler() $rl->handler($uri, [$filename, [$virtual_hostname]]); The handler() method takes argument of "uri" and optionally of "filename" and of "virtual_hostname". URI to filename translation normally doesn't happen until HTTP request time, so we're forced to roll our own translation. If the filename is supplied it's used in translation. If the filename is omitted and a "trans" subroutine was not set in new(), the loader will try using the "uri" relative to the "ServerRoot" configuration directive. For example: httpd.conf: ----------- ServerRoot /usr/local/apache Alias /registry/ /usr/local/apache/cgi-bin/ startup.pl: ----------- use ModPerl::RegistryLoader (); my $rl = ModPerl::RegistryLoader->new( package => 'ModPerl::Registry', ); # preload /usr/local/apache/cgi-bin/test.pl $rl->handler(/registry/test.pl); To make the loader smarter about the URI->filename translation, you may provide the "new()" method with a "trans()" function to translate the uri to filename. The following example will pre-load all files ending with .pl in the cgi-bin directory relative to "ServerRoot". httpd.conf: ----------- ServerRoot /usr/local/apache Alias /registry/ /usr/local/apache/cgi-bin/ startup.pl: ----------- { # test the scripts pre-loading by using trans sub use ModPerl::RegistryLoader (); use File::Spec (); use DirHandle (); use strict; my $dir = File::Spec->catdir(Apache2::ServerUtil::server_root, "cgi-bin"); sub trans { my $uri = shift; $uri =~ s|^/registry/|cgi-bin/|; return File::Spec->catfile(Apache2::ServerUtil::server_root, $uri); } my $rl = ModPerl::RegistryLoader->new( package => "ModPerl::Registry", trans => &trans, ); my $dh = DirHandle->new($dir) or die $!; for my $file ($dh->read) { next unless $file =~ /.pl$/; $rl->handler("/registry/$file"); } } If $virtual_hostname argument is passed it'll be used in the creation of the package name the script will be compiled into for those registry handlers that use namespace_from_uri() method. See also the notes on $ModPerl::RegistryCooker::NameWithVirtualHost in the "ModPerl::RegistryCooker" documentation. Also explained in the "ModPerl::RegistryLoader" documentation, this only has an effect at run time if $ModPerl::RegistryCooker::NameWithVirtualHost is set to true, otherwise the $virtual_hostname argument is ignored. Implementation Notes "ModPerl::RegistryLoader" performs a very simple job, at run time it loads and sub-classes the module passed via the package attribute and overrides some of its functions, to emulate the run-time environment. This allows to preload the same script into different registry environments. Authors The original "Apache2::RegistryLoader" implemented by Doug MacEachern. Stas Bekman did the porting to the new registry framework based on "ModPerl::RegistryLoader". SEE ALSO
"ModPerl::RegistryCooker", "ModPerl::Registry", "ModPerl::RegistryBB", "ModPerl::PerlRun", Apache(3), mod_perl(3) perl v5.16.2 apache_mod_perl-108~358::mod_perl-2.0.7::docs::api::ModPerl::RegistryLoader(3)
All times are GMT -4. The time now is 09:50 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy