Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Squid3+Lightsquid–>500 – Internal Server Error-->Solved

    Scheduled Pinned Locked Moved pfSense Packages
    2 Posts 2 Posters 4.1k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      meets21jp
      last edited by

      My pfsense version is
      2.0.3-RELEASE (amd64)
      built on Fri Apr 12 10:27:15 EDT 2013
      FreeBSD 8.1-RELEASE-p13

      At first, I installed the squid 2.7.9 pkg v.4.3.3 and Lightsquid 1.8.2 pkg v.2.32.
      Then I open the Proxy report–>Lightsquid Report-->Graph Report, it's working fine.

      After that, I installed the squid 3.1.20 pkg 2.0.6.
      Then I open the Graph Report but it's not working, the error message is 500 – Internal Server Error.

      However, finally I got the solution of solving this problem.
      1:  cd /usr/local/www/lightsquid

      2: ./check-setup.pl
      LightSquid Config Checker, (c) 2005-9 Sergey Erokhin GNU GPL

      LogPath  : /var/squid/logs
      reportpath: /var/lightsquid/report
      Lang      : /usr/local/share/lightsquid/lang/eng
      Template  : /usr/local/www/lightsquid/tpl/base
      Ip2Name  : /usr/local/libexec/lightsquid/ip2name.ip

      no: GD.PM found, please install or set $graphreport=0 to disable

      3: ls -al /usr/bin/perl*
      lrwxr-xr-x  1 root  wheel  25 Jul 21 23:14 /usr/bin/perl -> /usr/local/bin/perl5.12.4
      lrwxr-xr-x  1 root  wheel  25 Jul 21 23:14 /usr/bin/perl5 -> /usr/local/bin/perl5.12.4

      4: ls -al /usr/local/bin/perl5*
      lrwxr-xr-x  1 root  wheel    25 Jul 21 23:14 /usr/local/bin/perl5 -> /usr/local/bin/perl5.12.4
      -rwxr-xr-x  2 root  wheel  7328 Jun 27  2012 /usr/local/bin/perl5.12.4
      -rwxr-xr-x  1 root  wheel  7424 Mar  6 23:18 /usr/local/bin/perl5.14.2

      5: unlink /usr/bin/perl

      6: unlink /usr/bin/perl5

      7: unlink /usr/local/bin/perl5

      8:  ./check-setup.pl
      ./check-setup.pl: Command not found.

      9:  ls -al /usr/bin/perl*
      ls: No match.

      10:  ls -al /usr/bin/perl5*
      ls: No match.

      11:  ls -al /usr/local/bin/perl5*
      -rwxr-xr-x  2 root  wheel  7328 Jun 27  2012 /usr/local/bin/perl5.12.4
      -rwxr-xr-x  1 root  wheel  7424 Mar  6 23:18 /usr/local/bin/perl5.14.2

      12: ln -s /usr/local/bin/perl5.14.2 /usr/bin/perl

      13: ln -s /usr/local/bin/perl5.14.2 /usr/bin/perl5

      14: ln -s /usr/local/bin/perl5.14.2 /usr/local/bin/perl5

      15: ls -al /usr/bin/perl*
      lrwxr-xr-x  1 root  wheel  25 Jul 21 23:25 /usr/bin/perl -> /usr/local/bin/perl5.14.2
      lrwxr-xr-x  1 root  wheel  25 Jul 21 23:25 /usr/bin/perl5 -> /usr/local/bin/perl5.14.2

      16: ls -al /usr/bin/perl5*
      lrwxr-xr-x  1 root  wheel  25 Jul 21 23:25 /usr/bin/perl5 -> /usr/local/bin/perl5.14.2

      17: ls -al /usr/local/bin/perl5*
      lrwxr-xr-x  1 root  wheel    25 Jul 21 23:25 /usr/local/bin/perl5 -> /usr/local/bin/perl5.14.2
      -rwxr-xr-x  2 root  wheel  7328 Jun 27  2012 /usr/local/bin/perl5.12.4
      -rwxr-xr-x  1 root  wheel  7424 Mar  6 23:18 /usr/local/bin/perl5.14.2

      18: ./check-setup.pl
      LightSquid Config Checker, (c) 2005-9 Sergey Erokhin GNU GPL

      LogPath  : /var/squid/logs
      reportpath: /var/lightsquid/report
      Lang      : /usr/local/share/lightsquid/lang/eng
      Template  : /usr/local/www/lightsquid/tpl/base
      Ip2Name  : /usr/local/libexec/lightsquid/ip2name.ip

      WARNING: $skipurl variable contain unescaped '.' char !!!
      WARNING: if you use . as regular expression metacharacter please use '' instead "" and escape . via .
      WARNING: $skipurl now ->zzz.zzz<

      all check passed, now try access to cgi part in browser

      If there is above message, you can see the Graph Report.

      1 Reply Last reply Reply Quote 0
      • F
        FredrickGarrett
        last edited by

        @meets21jp:

        My pfsense version is
        2.0.3-RELEASE (amd64)
        built on Fri Apr 12 10:27:15 EDT 2013
        FreeBSD 8.1-RELEASE-p13

        At first, I installed the squid 2.7.9 pkg v.4.3.3 and Lightsquid 1.8.2 pkg v.2.32.
        Then I open the Proxy report–>Lightsquid Report-->Graph Report, it's working fine.

        After that, I installed the squid 3.1.20 pkg 2.0.6.
        Then I open the Graph Report but it's not working, the error message is 500 – Internal Server Error.

        However, finally I got the solution of solving this problem.
        1:  cd /usr/local/www/lightsquid

        2: ./check-setup.pl
        LightSquid Config Checker, (c) 2005-9 Sergey Erokhin GNU GPL

        LogPath   : /var/squid/logs
        reportpath: /var/lightsquid/report
        Lang      : /usr/local/share/lightsquid/lang/eng
        Template  : /usr/local/www/lightsquid/tpl/base
        Ip2Name   : /usr/local/libexec/lightsquid/ip2name.ip

        no: GD.PM found, please install or set $graphreport=0 to disable

        3: ls -al /usr/bin/perl*
        lrwxr-xr-x  1 root  wheel  25 Jul 21 23:14 /usr/bin/perl -> /usr/local/bin/perl5.12.4
        lrwxr-xr-x  1 root  wheel  25 Jul 21 23:14 /usr/bin/perl5 -> /usr/local/bin/perl5.12.4

        4: ls -al /usr/local/bin/perl5*
        lrwxr-xr-x  1 root  wheel    25 Jul 21 23:14 /usr/local/bin/perl5 -> /usr/local/bin/perl5.12.4
        -rwxr-xr-x  2 root  wheel  7328 Jun 27  2012 /usr/local/bin/perl5.12.4
        -rwxr-xr-x  1 root  wheel  7424 Mar  6 23:18 /usr/local/bin/perl5.14.2

        5: unlink /usr/bin/perl

        6: unlink /usr/bin/perl5

        7: unlink /usr/local/bin/perl5

        8:  ./check-setup.pl
        ./check-setup.pl: Command not found.

        9:  ls -al /usr/bin/perl*
        ls: No match.

        10:  ls -al /usr/bin/perl5*
        ls: No match.

        11:  ls -al /usr/local/bin/perl5*
        -rwxr-xr-x  2 root  wheel  7328 Jun 27  2012 /usr/local/bin/perl5.12.4
        -rwxr-xr-x  1 root  wheel  7424 Mar  6 23:18 /usr/local/bin/perl5.14.2

        12: ln -s /usr/local/bin/perl5.14.2 /usr/bin/perl

        13: ln -s /usr/local/bin/perl5.14.2 /usr/bin/perl5

        14: ln -s /usr/local/bin/perl5.14.2 /usr/local/bin/perl5

        15: ls -al /usr/bin/perl*
        lrwxr-xr-x  1 root  wheel  25 Jul 21 23:25 /usr/bin/perl -> /usr/local/bin/perl5.14.2
        lrwxr-xr-x  1 root  wheel  25 Jul 21 23:25 /usr/bin/perl5 -> /usr/local/bin/perl5.14.2

        16: ls -al /usr/bin/perl5*
        lrwxr-xr-x  1 root  wheel  25 Jul 21 23:25 /usr/bin/perl5 -> /usr/local/bin/perl5.14.2

        17: ls -al /usr/local/bin/perl5*
        lrwxr-xr-x  1 root  wheel    25 Jul 21 23:25 /usr/local/bin/perl5 -> /usr/local/bin/perl5.14.2
        -rwxr-xr-x  2 root  wheel  7328 Jun 27  2012 /usr/local/bin/perl5.12.4
        -rwxr-xr-x  1 root  wheel  7424 Mar  6 23:18 /usr/local/bin/perl5.14.2

        18: ./check-setup.pl
        LightSquid Config Checker, (c) 2005-9 Sergey Erokhin GNU GPL

        LogPath   : /var/squid/logs
        reportpath: /var/lled lightingightsquid/report
        Lang      : /usr/local/share/lightsquid/lang/eng
        Template  : /usr/local/www/lightsquid/tpl/base
        Ip2Name   : /usr/local/libexec/lightsquid/ip2name.ip

        WARNING: $skipurl variable contain unescaped '.' char !!!
        WARNING: if you use . as regular expression metacharacter please use '' instead "" and escape . via .
        WARNING: $skipurl now ->zzz.zzz<

        all check passed, now try access to cgi part in browser

        If there is above message, you can see the Graph Report.

        Thanks for sharing information.. Internal server error is a big problem so thanks for sharing solution..

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.