How to delete my avatar?
setting up apache to accept cgi
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What can I do?
• What to Read?
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Зарегистрируйся!

QAIX > Apache HTTP Server > setting up apache to accept cgi 3 July 2002 13:53:27

  Recent blog posts: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Moderators:

setting up apache to accept cgi

John Green 3 July 2002 13:53:27
 hi

I am used to writing perl/cgi programs at uni where i had a public_html
directory for my html, and a cgi-bin directory for my cgi scripts, but have
little experience of setting up apache on my new system to allow cgi.

I have installed mandrake 7.2 and installed the apache module.I don't
currently have a domain name as i have yet to decide what isp to setup, but
i want to write perl/cgi programs as standalone on my machine at home.

I have looked at the apache conf information and faqs, but still not sure,
as i am very new to apache.

my http.conf file has the line scriptalias cgi-bin /var/www/cgi-bin and my
test cgi script as well as the test script by apache is located in this
directory.

it also has the code in the http.conf:

<directory /var/www/protected-­cgi-bin>
allow from localhost

the Exec option is set so the directory /var/www/cgi-bin should be fine to
accept cgi scripts.

I tried in my web broswer putting http://localhost/cg­i-bin/printenv

with printenv being the cgi test script.
when i do this it comes up with the error forbidden access to
/cgi-bin/printenv

i am not sure what i am doing wrong,

if anyone can see where i am going wrong, or give any advice to setting my
machine up to accept cgi-scripts i would be very greateful.

Thank you
dave

___________________­____________________­____________________­______
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.­com
Add comment
Rich Bowen 3 July 2002 13:53:27 permanent link ]
 On Wed, 3 Jul 2002, John Green wrote:
<directory /var/www/protected-­cgi-bin>> allow from localhost>
the Exec option is set so the directory /var/www/cgi-bin should be fine to> accept cgi scripts.>
I tried in my web broswer putting http://localhost/cg­i-bin/printenv>
with printenv being the cgi test script.> when i do this it comes up with the error forbidden access to> /cgi-bin/printenv>
i am not sure what i am doing wrong,>
if anyone can see where i am going wrong, or give any advice to setting my> machine up to accept cgi-scripts i would be very greateful.

Step one is (and this is always the case when you encounter an error)
look in the error logs.

Here's a hint, however. By default, printenv comes without the execute
bits set. This is just for general security reasons - every Apache
server everywhere has this CGI program installed, and so in a default
config, it's just made inaccessible so as to not give crackers any more
information than necessary. So, just try making sure that the file is
executable.

--
Rich Bowen
Apache - mod_perl - Perl - CGI
http://www.ApacheAd­min.com/
Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или УК РФ.


QAIX > Apache HTTP Server > setting up apache to accept cgi 3 July 2002 13:53:27

see also:
Permafrost problem
Publish Web Page to Virtual Hosting
How do I link two web pages using…
пройди тесты:
see also:
baz-baz-baz-baz pam-parabaram baz-b...

  Copyright © 2001—2008 QAIX
Idea: Miсhael Monashev
Помощь и задать вопросы можно в сообществе support.qaix.com.
Сообщения об ошибках оставляем в сообществе bugs.qaix.com.
Предложения и комментарии пишем в сообществе suggest.qaix.com.
Информация для родителей.
Write us at:
If you would like to report an abuse of our service, such as a spam message, please .