LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-09-2006, 02:27 AM   #1
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 490

Rep: Reputation: 30
Red face CGI-Script Problem


Friend,

I have a ".cgi script" in my "/var/www/html/rrdtool" directory. Named "traffic.cgi" . Hence i make some changes
into my "httpd.conf" file . The changes are :


ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

AddHandler cgi-script .cgi

<Directory />
Options FollowSymLinks +ExecCGI
AllowOverride None
</Directory>

DirectoryIndex traffic.cgi index.cgi index.html


Doing the above configuration , when i run my cgi script
"server.example.com/rrdtool/traffic.cgi" then it shows :
"You don't have permission to access /rrdtool/traffic.cgi on this server"

I don't understand the problem . plz help me......................


***My another question is , What is activities of "cgi-bin" Directory ? Which types of information it needs ? And is it necessary for running a ".cgi script" ? Here i mention that my cgi-bin directory is in and it is Empty :

ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
 
Old 05-09-2006, 03:30 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,598

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
Is the script executable? Try:
Code:
chmod +x /var/www/html/rrdtool/traffic.cgi
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PERL: cgi script copy problem from server to another <db> Programming 2 04-16-2006 10:14 PM
Problem excuting cgi script in OpenBSD gani *BSD 3 05-26-2005 07:40 AM
CGI-script problem on Apache2 jkt2000 Linux - Networking 3 01-28-2005 05:38 AM
Apache cgi-script problem palanisaravanan Linux - General 6 02-07-2004 10:41 AM
Apache CGI Problem : Browser not running script Zaknafien Linux - Software 3 12-31-2003 02:16 PM


All times are GMT -5. The time now is 10:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration