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-06-04, 04:44:36

Author Topic: Allow public cgi-bin access  (Read 3452 times)

0 Members and 1 Guest are viewing this topic.

Offline I<3Kloxo

  • Senior Member
  • *
  • Posts: 205
  • Karma: +0/-0
    • View Profile
Allow public cgi-bin access
« on: 2015-10-16, 23:25:56 »
Hello,

I have installed Kloxo version  'Kloxo-MR 6.5.0.f-2015083001'
I want to install a script which requires allow public cgi-bin access. When I go on: www.mywebsite.com/cgi-bin/

  I get this message:
Code: [Select]
Forbidden

You don't have permission to access /cgi-bin/ on this server.

Apache/2.2.31 (CentOS) Server at xxxxxx.com Port 80

I tried to change CHMOD of 'cgi-bin' to 777 but the problem is the same.

I have installed CentOS 6 64bits.
Can I get some help how to solve this problem.

Thanks
« Last Edit: 2015-10-16, 23:46:35 by I<3Kloxo »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Allow public cgi-bin access
« Reply #1 on: 2015-10-17, 03:05:42 »
Copy /home/apache/tpl/domains.conf.tpl to custom.domains.conf.tpl and then change '#ScriptAlias /cgi-bin/ "/home/<?php echo $user; ?>/<?php echo $domainname; ?>/cgi-bin/"' to 'ScriptAlias /cgi-bin/ "/home/<?php echo $user; ?>/<?php echo $domainname; ?>/cgi-bin/"' inside custom.domains.conf.tpl. After that, run 'sh /script/fixweb; sh /script/restart-web'.
..:: 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: Allow public cgi-bin access
« Reply #2 on: 2015-10-17, 21:28:20 »
Hello MRatWork,

First thank you for your reply.

I have not understood  this section:
Quote
Copy /home/apache/tpl/domains.conf.tpl to custom.domains.conf.tpl

when I go to
'/home/apache/tpl/'
there I have 'domains.conf.tpl' but I do not have 'custom.domains.conf.tpl'. If you could explain that part please?
« Last Edit: 2015-10-17, 21:30:00 by I<3Kloxo »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Allow public cgi-bin access
« Reply #3 on: 2015-10-18, 02:28:37 »
Kloxo-MR will use custom.domains.conf.tpl instead domains.conf.tpl if exists. Yes, you need copy this custom.domains.conf.tpl from domains.conf.tpl.
..:: 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: Allow public cgi-bin access
« Reply #4 on: 2015-10-18, 15:33:13 »
Hello,

I did what you said and again I have the same problem, when I want to visit www.mywebsite.com/cgi-bin/   I get the same message as before

Messege:
Code: [Select]
Forbidden

You don't have permission to access /cgi-bin/ on this server.

Apache/2.2.31 (CentOS) Server at xxxxxxx.com Port 80

The steps that I made is these:
1. I installed a new CentOS 6 64 bits on my VPS
2. I installed Kloxo-MR (Kloxo-MR 6.5.0.f-2015083001), instructions through this link:
https://github.com/mustafaramadhan/kloxo/blob/dev/how-to-install.txt
3. I entered in '/home/apache/tpl/' and there I found only 'domains.conf.tpl'
4. After that I created new file 'custom.domains.conf.tpl' which has the same code as 'domains.conf.tpl'
5. I have changed this part in 'custom.domains.conf.tpl'
Code: [Select]
#ScriptAlias /cgi-bin/ "/home/<?php echo $user?>/<?php echo $domainname?>/cgi-bin/"
to

Code: [Select]
ScriptAlias /cgi-bin/ "/home/<?php echo $user?>/<?php echo $domainname?>/cgi-bin/"
After that I run:
sh /script/fixweb
sh /script/restart-web

But the problem is still the same. I also rebooted VPS but the problem is the same.

I leave a picture of '/home/apache/tpl/' and I leave in the attachment my 'custom.domains.conf.tpl'



« Last Edit: 2015-10-18, 15:40:18 by I<3Kloxo »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Allow public cgi-bin access
« Reply #5 on: 2015-10-19, 03:01:13 »
Cgi file must have permissions 755. Try 'sh /script/fix-chownchmod'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


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

Page created in 0.032 seconds with 22 queries.

web stats analysis