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-04, 18:34:48

Author Topic: Perl scripts in cgi-bin folder  (Read 4097 times)

0 Members and 1 Guest are viewing this topic.

Offline BigWeb.EU

  • Valuable Member
  • *
  • Posts: 114
  • Karma: +0/-0
    • View Profile
Perl scripts in cgi-bin folder
« on: 2016-12-05, 22:50:24 »
Hi Mustafa !

I had an upgrade from 6.1 kloxo to 7 .

All seems be working good , however one of the sites was using perl file inside cgi-bin folder, which was working fine earlier.

It looks it works with suphp on ver 7, but doesnt work under php-fpm (downloads as a text file). IS it possible making perl work with php-fpm ? (I guess this is also an issue with awstats.pl - when it brings file for download instead of executing it ?)

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Perl scripts in cgi-bin folder
« Reply #1 on: 2016-12-06, 02:51:36 »
Inform here 'sh /script/sysinfo'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline BigWeb.EU

  • Valuable Member
  • *
  • Posts: 114
  • Karma: +0/-0
    • View Profile
Re: Perl scripts in cgi-bin folder
« Reply #2 on: 2016-12-06, 10:27:36 »
Code: [Select]
A. Control Panel:
   - Kloxo-MR: 7.0.0.b-2016120401
   - Web: hiawatha-10.4.0-f.1.mr.el6.i686
   - PHP: php54s-5.4.45-1.ius.el6 (fpm mode)
B. Plateform:
   - OS: CentOS release 6.8 (Final) i686
   - Hostname: {HIDDEN BY ME}
C. Services:
   1. MySQL: MariaDB-server-10.0.28-1.el6.i686
   2. PHP:
      - Installed:
        - Branch: php54-cli-5.4.45-1.ius.el6.i686
        - Multiple:
          * php52m-5.2.17-102.mr.el6
          * php53m-5.3.29-1.ius.el6
          * php54m-5.4.45-1.ius.el6
          * php55m-5.5.38-1.ius.el6
          * php56m-5.6.28-1.ius.el6
          * php70m-7.0.13-1.w6
      - Used: php56m-fpm
      - Multiple: enable
   3. Web Used: apache
     - Hiawatha: hiawatha-10.4.0-f.1.mr.el6.i686
     - Lighttpd: lighttpd-1.4.43-2.el6.i686
     - Nginx: nginx-1.11.6-1.el6.ngx.i386
     - Apache: httpd24u-2.4.23-2.ius.el6.i686
       - PHP Type: suphp_worker
       - Secondary PHP: off
   4. WebCache: none
     - ATS: --uninstalled--
     - Squid: --uninstalled--
     - Varnish: --uninstalled--
   5. Dns: bind
     - Bind: bind-9.9.7-1.mr.el6.i386
     - DJBDns: --uninstalled--
     - NSD: --uninstalled--
     - PowerDNS: --uninstalled--
     - Yadifa: --uninstalled--
   6. Mail: qmail-toaster-1.03-1.3.55.mr.el6.i386
      - pop3/imap4: courier-imap-toaster-4.1.2-1.3.20.mr.el6.i686
      - smtp: qmail-toaster-1.03-1.3.55.mr.el6.i386
      - spam: bogofilter-1.2.4-1.el6.i686
   7. Stats: webalizer
D. Memory:
                total       used       free     shared    buffers     cached
   Mem:          4048       2037       2010          0          0          0
   -/+ buffers/cache:       2037       2010
   Swap:          512          0        512
E. Disk Space:
   Filesystem      Size  Used Avail Use% Mounted on
   /dev/simfs      245G  107G  139G  44% /


*** Process Time: 00:00:00:21.21015 (dd:hh:mm:ss:xxxxxx) ***

* Note: run 'sh /script/sysinfo -y' if you want run 'fix-service-list' also
        (importance after Kloxo-MR update)


Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Perl scripts in cgi-bin folder
« Reply #3 on: 2016-12-06, 19:39:19 »
Try tick 'enable cgi' in 'limit' for target client.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline BigWeb.EU

  • Valuable Member
  • *
  • Posts: 114
  • Karma: +0/-0
    • View Profile
Re: Perl scripts in cgi-bin folder
« Reply #4 on: 2016-12-11, 18:27:00 »
Enable CGI - is enabled . However with php-fpm pl files are not processed . Awstats as well.

Could it ba that in config files you have <ifmodule mod_suphp.c> ?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Perl scripts in cgi-bin folder
« Reply #5 on: 2016-12-11, 18:33:30 »
What's appear if accessing stats.yourdomain.com?.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline BigWeb.EU

  • Valuable Member
  • *
  • Posts: 114
  • Karma: +0/-0
    • View Profile
Re: Perl scripts in cgi-bin folder
« Reply #6 on: 2016-12-11, 19:13:10 »
a file is downloading awstats.pl as a text file

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix
Click Here

Page created in 0.035 seconds with 21 queries.

web stats analysis