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, 18:08:56

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

0 Members and 1 Guest are viewing this topic.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: cgi-bin folder
« Reply #15 on: 2017-01-04, 12:04:01 »
What's you mean ' changed one setting in 'httpd.conf''?
..:: 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 #16 on: 2017-01-04, 15:32:42 »
What's you mean ' changed one setting in 'httpd.conf''?

Hello,

'httpd.conf' file wich is located here :
/etc/httpd/conf/httpd.conf

In it I found this part:
#LoadModule cgi_module modules/mod_cgi.so

... and I i just deleted ' # '

So, now that part looks like
LoadModule cgi_module modules/mod_cgi.so

After that I restart apache via Shell.
Now when I want to enter through the browser on:  mywebsite.com/cgi-bin/

I get the following message (see picture below) :


So now comes the message that I do not have permission to access '/cgi-bin/'
and I not get more message 'Not Found /cgi-bin/'





Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: cgi-bin folder
« Reply #17 on: 2017-01-04, 18:27:20 »
Con't use mod_cgi but enough mod_perl. For your situation, try copy/rename '/home/apache/tpl/domains.conf.tpl' to 'custom.domains.conf.tpl' and then change '#ScriptAlias /cgi-bin/' to 'ScriptAlias /cgi-bin/' inside 'custom.domains.conf.tpl'. And then run 'sh /script/fixweb'.
..:: 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 #18 on: 2017-01-04, 21:43:35 »
Hello,

I've done exactly what you told me.
I went to: '/home/apache/tpl/domains.conf.tpl'
I copied the file 'domains.conf.tpl' to my desktop and edited it in a way that you told.
1.) I changed the name on : 'custom.domains.conf.tpl'
2.) I replaced it : '#ScriptAlias /cgi-bin/' to 'ScriptAlias /cgi-bin/'

Then I uploaded the file 'custom.domains.conf.tpl' to the server, here: '/home/apache/tpl/'.
After that I entered this command :  'sh /script/fixweb'.

In the end the problem is again the same, when I want to enter on: mywesite.com/cgi-bin/
get out this message :

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

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: cgi-bin folder
« Reply #19 on: 2017-01-05, 03:39:37 »
Did you add tried add index.pl or index.html in cgi-bin?.
..:: 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 #20 on: 2017-01-05, 15:46:46 »
Did you add tried add index.pl or index.html in cgi-bin?.

Now I tried and I see that I get 'Internal Server Error'
See image below :







Offline I<3Kloxo

  • Senior Member
  • *
  • Posts: 205
  • Karma: +0/-0
    • View Profile
Re: cgi-bin folder
« Reply #21 on: 2017-01-08, 20:32:02 »
If you can help please ?!  :(




Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: cgi-bin folder
« Reply #22 on: 2017-01-08, 21:07:25 »
Inform here 10 lines of your perl code.

Try access to http://xl2.mratwork.com/cgi-bin/test.pl
..:: 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 #23 on: 2017-01-08, 21:17:57 »
Inform here 10 lines of your perl code.

Try access to http://xl2.mratwork.com/cgi-bin/test.pl


Yes, I can visit without problems :
http://xl2.mratwork.com/cgi-bin/test.pl

I want to install again CentOS 6 64bits with fresh Kloxo-MR panel 6.5.0.f
Can you tell me the steps what to do to have a 'cgi-bin' folder accessible ?




Offline I<3Kloxo

  • Senior Member
  • *
  • Posts: 205
  • Karma: +0/-0
    • View Profile
Re: cgi-bin folder
« Reply #24 on: 2017-01-08, 22:00:14 »

Hello,

Ok, I finally solved the problem !!!
I installed a new 'CentOS 6 64bits' on my server, then I installed the new fresh panel 'Kloxo-MR 6.5.0.f'.

I have configured my domain (www.mywebsite.com) to Kloxo-MR Panel and DNS Template.
Finally, I edited the file 'domains.conf.tpl' which is located in '/home/apache/tpl/'.
I have edited :
'#ScriptAlias /cgi-bin/' to 'ScriptAlias /cgi-bin/'

Then I created a new file with a name 'custom.domains.conf.tpl'
and the inside of the file 'custom.domains.conf.tpl' is the same as 'domains.conf.tpl'.

File 'custom.domains.conf.tpl' I put in the same place '/home/apache/tpl/'.

In the end I wrote :
'sh /script/fixweb'.

That's all !!!

I like to leave the solution of the case therefore if someone has the same problem In this post can find how to do it,
while google search engine will better indexed this case, better tell the case with 'cgi-bin' folder.


Thank you mratwork !  :D

« Last Edit: 2017-01-08, 22:03:58 by I<3Kloxo »

 


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

Page created in 0.076 seconds with 18 queries.

web stats analysis