LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 01:27 AM   #1
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 504

Rep: Reputation: 31
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, 02:30 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

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


Reply



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 09:14 PM
Problem excuting cgi script in OpenBSD gani *BSD 3 05-26-2005 06:40 AM
CGI-script problem on Apache2 jkt2000 Linux - Networking 3 01-28-2005 04:38 AM
Apache cgi-script problem palanisaravanan Linux - General 6 02-07-2004 09:41 AM
Apache CGI Problem : Browser not running script Zaknafien Linux - Software 3 12-31-2003 01:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:37 PM.

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
Open Source Consulting | Domain Registration