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-04-27, 21:49:25

Author Topic: Unable to run cgi scripts like Lstat  (Read 10735 times)

0 Members and 1 Guest are viewing this topic.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Unable to run cgi scripts like Lstat
« on: 2016-05-26, 23:24:23 »
Please help - we are using Linuxstat (Lstat) to monitor our servers.

http://lstat.sourceforge.net/

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Unable to run cgi scripts like Lstat
« Reply #1 on: 2016-05-27, 03:45:26 »
For security reason, cgi module for apache possible disabled. Nginx doesn't handling cgi.

Next time, cgi handling via fastcgi (aka spawning like php-fpm) and make possible cgi running under nginx. No target release for it.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Wibowo

  • Master
  • **
  • Posts: 391
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Re: Unable to run cgi scripts like Lstat
« Reply #2 on: 2016-05-27, 04:59:28 »
so cgi script currently can't run in kloxomr?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Unable to run cgi scripts like Lstat
« Reply #3 on: 2016-05-27, 05:22:00 »
so cgi script currently can't run in kloxomr?
No running in nginx and apache (if disable cgi module). But running in hiawatha and lighttpd.
..:: 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: Unable to run cgi scripts like Lstat
« Reply #4 on: 2016-06-01, 13:31:28 »
It seems there were changes to this and now my Lstat shows 404 error.

Quote
#Include for LinuxStat (http://lstat.sf.net)
AddHandler cgi-script .cgi
Alias "/lstat/" "/usr/local/lstat/www/"
<Directory "/usr/local/lstat/www/">
AllowOverride None
Options +ExecCGI
Require all granted
Allow from all

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Unable to run cgi scripts like Lstat
« Reply #5 on: 2016-06-01, 14:43:32 »
Change 'cgi-script' to 'x-suphp-cgi' (need enable 'secondary php').

But, make sure 'suPHP_AddHandler x-suphp-cgi' inside '/etc/httpd/conf.d/suphp2.conf'.
« Last Edit: 2016-06-01, 14:56:26 by MRatWork »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Unable to run cgi scripts like Lstat
« Reply #6 on: 2016-06-01, 14:59:14 »
Instead using 'AddHandler cgi-script .cgi', try:
Code: [Select]
<FilesMatch \.cgi$>
SetHandler fcgid-script
</FilesMatch>
..:: 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: Unable to run cgi scripts like Lstat
« Reply #7 on: 2016-06-01, 23:13:50 »
Instead using 'AddHandler cgi-script .cgi', try:
Code: [Select]
<FilesMatch \.cgi$>
SetHandler fcgid-script
</FilesMatch>

Still 404 error

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Unable to run cgi scripts like Lstat
« Reply #8 on: 2016-06-02, 02:26:44 »
Sorry, I mean 'x-suphp-cgi' instead 'fcgid-script'.
..:: 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: Unable to run cgi scripts like Lstat
« Reply #9 on: 2016-06-03, 00:09:58 »
Sorry, I mean 'x-suphp-cgi' instead 'fcgid-script'.

Still the same - 404 Error

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Unable to run cgi scripts like Lstat
« Reply #10 on: 2016-06-03, 01:46:48 »
Using apache or nginx-proxy?.
..:: 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: Unable to run cgi scripts like Lstat
« Reply #11 on: 2016-06-04, 20:07:47 »
Using apache or nginx-proxy?.

nginx-proxy+httpd 2.4

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Unable to run cgi scripts like Lstat
« Reply #12 on: 2016-06-04, 20:34:57 »
Using apache or nginx-proxy?.

nginx-proxy+httpd 2.4
Nginx already running cgi (but still trouble with awstats). Read /opt/configs/nginx/conf/globals/cgi.conf about cgi setting for nginx.
..:: 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: Unable to run cgi scripts like Lstat
« Reply #13 on: 2016-06-11, 13:25:31 »
Should I create a special config for lstat ?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Unable to run cgi scripts like Lstat
« Reply #14 on: 2016-06-11, 13:34:02 »
Should I create a special config for lstat ?
Yes. Try explore cgi.conf and stats_awstats.conf.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


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

Page created in 0.067 seconds with 18 queries.

web stats analysis