Linked Questions
61 questions linked to/from How can I troubleshoot my Perl CGI script?
1 vote
0 answers
483 views
Perl+Apache+Postgre SQL on CentOS 7 [duplicate]
I have to configure Apache + Perl + PostgreSQL on CentOS 7 which kernel's version is 3.10.0-514.el7.x86-64. Because the server I have to configure is separated from WAN, I downloaded Everything ISO ...
1 vote
1 answer
105 views
What am I doing wrong with my CGI Script? [duplicate]
I am still fairly new to this and I am trying to run this CGI Script on my apache server. When I go to the webpage all I get is a blank page. What am I doing wrong? #!/usr/bin/perl use CGI qw(:...
0 votes
1 answer
93 views
Using perl to learn HTML forms [duplicate]
I followed my book and I - 1 - Installed Abyss Web server, personal edition. 2 - Copied the book's echo.pl file to the htdocs folder of the webserver. Restarted the webserver. 3 - Installed ...
0 votes
0 answers
62 views
Apache forbidden error when trying to run a Perl script [duplicate]
I'm running an old-fashioned HTML web page with a simple Perl script on a shared server so I have no access to the main httpd.conf file. Suddenly, after several years, I'm getting a "Forbidden You ...
1 vote
0 answers
50 views
500 error on binary compiled CGI script after migration to new servers [duplicate]
I recently migrated to a new hosting company. I am pretty new to linux and apache as far as configuration is involved. I can't execute a binary CGI script on the new server. I get a 500 server ...
35 votes
13 answers
195k views
"End of script output before headers" error in Apache
Apache on Windows gives me the following error when I try to access my Perl script: Server error! The server encountered an internal error and was unable to complete your request. Error message: ...
31 votes
9 answers
98k views
How do I run a Perl script from within a Perl script?
I've got a Perl script that needs to execute another Perl script. This second script can be executed directly on the command line, but I need to execute it from within my first program. I'll need to ...
1 vote
7 answers
5k views
Why doesn't my Perl CGI script work?
I really do not get how to run a Perl file. I have uploaded my .pl to the cgi-bin then chmod to 755. Then when i go to run the file i just get a 500 internal server error. **/cgi-bin/helloworld.pl** #...
13 votes
1 answer
5k views
In perl, what is the difference between $DB::single = 1 and 2?
What is the difference between putting $DB::single=1 and $DB::single=2 in your code? Both seem to have the identical effect of halting execution at the statement following the assignment when I do a '...
3 votes
4 answers
5k views
How can I wrap lines to 45 characters in a Perl program?
I have this text I am writing in a Perl CGI program: $text = $message; @lines = split(/\n/, $text); $lCnt .= $#lines+1; $lineStart = 80; $lineHeight = 24; I want to force a return after 45 characters....
2 votes
2 answers
16k views
Perl Location on Mac OSX
I'm beginning to write a simple Perl program on my Mac, and I understand that the first line needs to be the location of Perl itself, every example or tutorial I find tells me the first line should be:...
2 votes
3 answers
4k views
Premature end of script headers - What, I have no idea!
I try to execute a simple perl script on my server and I get an internal 500 server and when I check the error logs it shows: Premature end of script headers: test.pl Here is the perl script: #!/...
3 votes
4 answers
13k views
Why does my Perl CGI script cause a 500 internal server error?
I get a 500 internal server error when I try to run the code below in a web server which supports perl: #! /usr/bin/perl use LWP; my $ua = LWP::UserAgent->new; $ua->agent("TestApp/0.1 "); $ua-...
4 votes
3 answers
14k views
How to get query string from URL - perl
I'm not aware of how to grab the query string from the URL using Perl. I've tried a couple of ways, example: my $qs = $ENV{'QUERY_STRING'}; my @d = split(/&/, $qs); if ( $d[1] eq 'reports' ) { ...
3 votes
2 answers
9k views
Why do I get a "Bad Gateway" error with my Perl CGI program on IIS?
I'm trying to run sample Perl script on Windows 7 and I configured IIS 7 to allow ActivePerl to run but I'm getting this error: HTTP Error 502.2 - Bad Gateway The specified CGI application misbehaved ...