Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-05-02, 10:27:50

Author Topic: Perl stopped working after latest updates  (Read 2370 times)

0 Members and 1 Guest are viewing this topic.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Perl stopped working after latest updates
« on: 2014-09-05, 15:26:47 »
How to reactivate it again ?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Perl stopped working after latest updates
« Reply #1 on: 2014-09-05, 16:13:20 »
What's you mean?. Perl in apache?.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Perl stopped working after latest updates
« Reply #2 on: 2014-09-05, 18:14:18 »
Perl in nginxproxy (nginx + apache). It throws Internal Server Error on all perl scripts while it was working fine before.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Perl stopped working after latest updates
« Reply #3 on: 2014-09-05, 19:59:37 »
I didn't found this issue with this code:
Code: [Select]
#!/usr/bin/perl
# test.cgi by Bill Weinman [http://bw.org/]
# Copyright 1995-2008 The BearHeart Group, LLC
# Free Software: Use and distribution under the same terms as perl.

use strict;
use warnings;
use CGI;

print foreach (
    "Content-Type: text/plain\n\n",
    "BW Test version 5.0\n",
    "Copyright 1995-2008 The BearHeart Group, LLC\n\n",
    "Versions:\n=================\n",
    "perl: $]\n",
    "CGI: $CGI::VERSION\n"
);

my $q = CGI::Vars();
print "\nCGI Values:\n=================\n";
foreach my $k ( sort keys %$q ) {
    print "$k [$q->{$k}]\n";
}

print "\nEnvironment Variables:\n=================\n";
foreach my $k ( sort keys %ENV ) {
    print "$k [$ENV{$k}]\n";
}
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Perl stopped working after latest updates
« Reply #4 on: 2014-09-06, 00:12:16 »
It throws:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@galeriaportali.pl 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.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Perl stopped working after latest updates
« Reply #5 on: 2014-09-06, 01:16:48 »
File perl must chmod 0755. Run 'sh /script/fix-chownchmod'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Perl stopped working after latest updates
« Reply #6 on: 2014-09-06, 12:35:05 »
File perl must chmod 0755. Run 'sh /script/fix-chownchmod'.

It's putted inside cgi-bin and it has chmod 0755.

Only such simple file works:

#!/usr/bin/perl
use CGI::Carp qw( fatalsToBrowser );

 print "Content-type: text/html\n\n";
 print "<html><head><title>Test Page</title></head><body>";
 print "Hello World!";
 print "</body></html>";

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine

Page created in 0.041 seconds with 19 queries.

web stats analysis