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-28, 17:10:07

Author Topic: cgi-bin folder  (Read 8653 times)

0 Members and 1 Guest are viewing this topic.

Offline I<3Kloxo

  • Senior Member
  • *
  • Posts: 205
  • Karma: +0/-0
    • View Profile
cgi-bin folder
« on: 2017-01-03, 00:16:49 »
Hello,

How can be available via browser 'cgi-bin' folder located on the server ?
I need to install a script wich used perl but the problem is that I do not have permission for access 'cgi-bin' folder.

I tried to change permissions (chmod)  'cgi-bin' on 777 but the problem is the same.

I have installed Kloxo-MR 6.5.0.f-2016111301 and  I use apache.


Thanks in advance for response.
« Last Edit: 2017-01-03, 00:21:10 by I<3Kloxo »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: cgi-bin folder
« Reply #1 on: 2017-01-03, 02:34:28 »
Nginx not work with cgi (like perl) under Kloxo-MR 6.5.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline I<3Kloxo

  • Senior Member
  • *
  • Posts: 205
  • Karma: +0/-0
    • View Profile
Re: cgi-bin folder
« Reply #2 on: 2017-01-03, 04:49:34 »


Nginx not work with cgi (like perl) under Kloxo-MR 6.5.


Hello MRatWork,

I do not use Nginx !!!!  As I said before I use Apache. I do not know how to solve this problem with 'cgi-bin' folder.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: cgi-bin folder
« Reply #3 on: 2017-01-03, 05:50:13 »
inform here 'dir -l /etc/httpd/conf.d; httpd -t -D DUMP_MODULES'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline I<3Kloxo

  • Senior Member
  • *
  • Posts: 205
  • Karma: +0/-0
    • View Profile
Re: cgi-bin folder
« Reply #4 on: 2017-01-03, 15:19:20 »
Quote
inform here 'dir -l /etc/httpd/conf.d; httpd -t -D DUMP_MODULES'.

Hello,
This is the result of :



[root@vmi927 ~]# dir -l /etc/httpd/conf.d; httpd -t -D DUMP_MODULES
total 80
-rw-r--r-- 1 root root  112 Aug 31  2014 define.conf
-rw-r--r-- 1 root root 1510 May 12  2015 fastcgi.conf
-rw-r--r-- 1 root root 1510 May 12  2015 fastcgi.conf.rpmnew
-rw-r--r-- 1 root root  346 Nov 28 01:13 fastcgi.conf.rpmsave
-rw-r--r-- 1 root root  455 Jun 19  2015 fcgid.conf
-rw-r--r-- 1 root root  455 Jun 19  2015 fcgid.conf.rpmnew
-rw-r--r-- 1 root root  104 Nov 28 01:13 fcgid.conf.rpmsave
-rw-r--r-- 1 root root 2005 Jan  3 04:25 ~lxcenter.conf
-rw-r--r-- 1 root root  675 Aug 14  2014 php.conf
-rw-r--r-- 1 root root  104 Nov 28 01:13 php.conf.rpmsave
-rw-r--r-- 1 root root  104 Nov 28 01:13 proxy_fcgi.conf
-rw-r--r-- 1 root root  308 Jan  3 04:25 rpaf.conf
-rw-r--r-- 1 root root  104 Nov 28 01:13 ruid2.conf
-rw-r--r-- 1 root root  789 Jan  3 04:25 ssl.conf
-rw-r--r-- 1 root root  789 Jan  2 19:52 ssl.conf.rpmsave
-rw-r--r-- 1 root root 1683 Jun 13  2015 suphp.conf
-rw-r--r-- 1 root root 1683 Jun 13  2015 suphp.conf.rpmnew
-rw-r--r-- 1 root root  104 Nov 28 01:13 suphp.conf.rpmsave
-rw-r--r-- 1 root root   87 Jan  3 04:25 __version.conf
-rw-r--r-- 1 root root  352 Apr 25  2012 webalizer.conf
-bash: httpd: command not found

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: cgi-bin folder
« Reply #5 on: 2017-01-03, 15:42:33 »
Command of 'httpd -t -D DUMP_MODULES' is apache module detect if apache exists.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline I<3Kloxo

  • Senior Member
  • *
  • Posts: 205
  • Karma: +0/-0
    • View Profile
Re: cgi-bin folder
« Reply #6 on: 2017-01-03, 16:07:54 »

Command of 'httpd -t -D DUMP_MODULES' is apache module detect if apache exists.

Thanks for your reply.

Still I do not know how to make folder 'cgi-bin' accessible via web browser ?
For example: www.mywebsite.com/cgi-bin/
« Last Edit: 2017-01-03, 16:13:27 by I<3Kloxo »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: cgi-bin folder
« Reply #7 on: 2017-01-03, 16:18:00 »
If you can't run 'httpd -v' that mean no apache in your server. So, inform here 'sh /script/sysinfo'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline I<3Kloxo

  • Senior Member
  • *
  • Posts: 205
  • Karma: +0/-0
    • View Profile
Re: cgi-bin folder
« Reply #8 on: 2017-01-03, 16:44:18 »
Now I switched to Apache, before that I was in Nginx.
I give you the details of command :

Quote
dir -l /etc/httpd/conf.d; httpd -t -D DUMP_MODULES

[root@vmi927 ~]# dir -l /etc/httpd/conf.d; httpd -t -D DUMP_MODULES
total 92
-rw-r--r-- 1 root root  112 Aug 31  2014 define.conf
-rw-r--r-- 1 root root 1510 May 12  2015 fastcgi.conf
-rw-r--r-- 1 root root 1510 May 12  2015 fastcgi.conf.rpmnew
-rw-r--r-- 1 root root  346 Nov 28 01:13 fastcgi.conf.rpmsave
-rw-r--r-- 1 root root  455 Jun 19  2015 fcgid.conf
-rw-r--r-- 1 root root  455 Jun 19  2015 fcgid.conf.rpmnew
-rw-r--r-- 1 root root  104 Nov 28 01:13 fcgid.conf.rpmsave
-rw-r--r-- 1 root root 2005 Jan  3 15:34 ~lxcenter.conf
-rw-r--r-- 1 root root  675 Aug 14  2014 php.conf
-rw-r--r-- 1 root root  104 Nov 28 01:13 php.conf.rpmsave
-rw-r--r-- 1 root root  566 Dec  5  2005 proxy_ajp.conf
-rw-r--r-- 1 root root  104 Nov 28 01:13 proxy_fcgi.conf
-rw-r--r-- 1 root root  392 Jul 23  2015 README
-rw-r--r-- 1 root root  308 Jan  3 15:34 rpaf.conf
-rw-r--r-- 1 root root  104 Nov 28 01:13 ruid2.conf
-rw-r--r-- 1 root root  789 Jan  3 15:34 ssl.conf
-rw-r--r-- 1 root root  789 Jan  2 19:52 ssl.conf.rpmsave
-rw-r--r-- 1 root root 1683 Jun 13  2015 suphp.conf
-rw-r--r-- 1 root root 1683 Jun 13  2015 suphp.conf.rpmnew
-rw-r--r-- 1 root root  104 Nov 28 01:13 suphp.conf.rpmsave
-rw-r--r-- 1 root root   87 Jan  3 15:34 __version.conf
-rw-r--r-- 1 root root  352 Apr 25  2012 webalizer.conf
-rw-r--r-- 1 root root  299 Sep  9  2004 welcome.conf
Loaded Modules:
 core_module (static)
 mpm_prefork_module (static)
 http_module (static)
 so_module (static)
 auth_basic_module (shared)
 auth_digest_module (shared)
 authn_file_module (shared)
 authn_alias_module (shared)
 authn_anon_module (shared)
 authn_dbm_module (shared)
 authn_default_module (shared)
 authz_host_module (shared)
 authz_user_module (shared)
 authz_owner_module (shared)
 authz_groupfile_module (shared)
 authz_dbm_module (shared)
 authz_default_module (shared)
 ldap_module (shared)
 authnz_ldap_module (shared)
 include_module (shared)
 log_config_module (shared)
 logio_module (shared)
 env_module (shared)
 ext_filter_module (shared)
 mime_magic_module (shared)
 expires_module (shared)
 deflate_module (shared)
 headers_module (shared)
 usertrack_module (shared)
 setenvif_module (shared)
 mime_module (shared)
 dav_module (shared)
 status_module (shared)
 autoindex_module (shared)
 info_module (shared)
 dav_fs_module (shared)
 vhost_alias_module (shared)
 negotiation_module (shared)
 dir_module (shared)
 actions_module (shared)
 speling_module (shared)
 userdir_module (shared)
 alias_module (shared)
 rewrite_module (shared)
 proxy_module (shared)
 proxy_balancer_module (shared)
 proxy_ftp_module (shared)
 proxy_http_module (shared)
 proxy_connect_module (shared)
 cache_module (shared)
 suexec_module (shared)
 disk_cache_module (shared)
 file_cache_module (shared)
 mem_cache_module (shared)
 version_module (shared)
 define_module (shared)
 fastcgi_module (shared)
 fcgid_module (shared)
 php5_module (shared)
 proxy_ajp_module (shared)
 rpaf_module (shared)
 ssl_module (shared)
 suphp_module (shared)
Syntax OK



Quote
httpd -v

[root@vmi927 ~]# httpd -v
Server version: Apache/2.2.31 (Unix)
Server built:   Jul 23 2015 05:50:27




Quote
sh /script/sysinfo
[root@vmi927 ~]# sh /script/sysinfo

A. Kloxo-MR: 6.5.0.f-2016111301

B. OS: CentOS release 6.8 (Final) x86_64

C. Apps:
   1. MySQL: mysql55-5.5.53-1.ius.el6.x86_64
   2. PHP: php53u-5.3.29-1.ius.el6.x86_64
   3. Httpd: httpd-2.2.31-1.mr.el6.x86_64
   4. Lighttpd: --uninstalled--
   5. Nginx: --uninstalled--
   6. Qmail: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
      - with: courier-imap-toaster-4.1.2-1.3.20.mr.el6.x86_64
   7. Dns: bind-9.9.7-1.mr.el6.x86_64

D. Php-type (for Httpd/proxy): php-fpm_event

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: cgi-bin folder
« Reply #9 on: 2017-01-03, 17:03:41 »
Try install mod_perl with 'yum install mod_perl -y'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline I<3Kloxo

  • Senior Member
  • *
  • Posts: 205
  • Karma: +0/-0
    • View Profile
Re: cgi-bin folder
« Reply #10 on: 2017-01-03, 21:19:02 »
Try install mod_perl with 'yum install mod_perl -y'.

Hello,

I installed over command 'yum install mod_perl -y' but I have the same problem.
When I want to go on website:  mywebsite.com/cgi-bin/
I get this (see picture below):



So the problem is the same and I have on server 'cgi-bin' folder which have CHMOD 777.


« Last Edit: 2017-01-03, 21:24:03 by I<3Kloxo »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: cgi-bin folder
« Reply #11 on: 2017-01-04, 01:21:16 »
Try add 'index.html' file inside.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline I<3Kloxo

  • Senior Member
  • *
  • Posts: 205
  • Karma: +0/-0
    • View Profile
Re: cgi-bin folder
« Reply #12 on: 2017-01-04, 03:21:11 »
Try add 'index.html' file inside.

Hello,

Its same thing. See picture :




Probably something should be replaced in the configuration of Apache, or in another file related to Apache.



« Last Edit: 2017-01-04, 03:24:43 by I<3Kloxo »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: cgi-bin folder
« Reply #13 on: 2017-01-04, 05:25:12 »
Try execute perl file in document root instead in cgi-bin subdir.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline I<3Kloxo

  • Senior Member
  • *
  • Posts: 205
  • Karma: +0/-0
    • View Profile
Re: cgi-bin folder
« Reply #14 on: 2017-01-04, 05:48:25 »
Try execute perl file in document root instead in cgi-bin subdir.

I changed one setting in 'httpd.conf'
Now when I want to enter in the folder 'cgi-bin' , means mywebsite.com/cgi-bin/
I get this message (see picture below) :


 


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

Page created in 0.033 seconds with 18 queries.

web stats analysis