LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-13-2004, 03:36 PM   #1
jon_k
Member
 
Registered: Jul 2003
Location: Fort Worth, Texas
Distribution: Mepis Linux 2004
Posts: 547

Rep: Reputation: 30
Getting CGI to work in apache


I recently installed tdiary, and orginally http://192.168.0.4/blog/index.rb would show contents of the file.

I added the line AddHandler cgi-script .cgi .sh .pl .rb

to httpd.conf and now I get forbidden.

The files are chowned 755.

How can I get these to execute?

I'm also getting
[Sat Nov 13 14:53:39 2004] [error] [client 192.168.0.2] Options ExecCGI is off in this directory: /var/www/blog/index.rb
[Sat Nov 13 14:53:39 2004] [error] [client 192.168.0.2] File does not exist: /var/www/favicon.ico

in error.log

How can I get this to work,?

Last edited by jon_k; 11-13-2004 at 03:54 PM.
 
Old 11-13-2004, 03:42 PM   #2
hallamigo
Member
 
Registered: Feb 2004
Location: Utah, USA
Distribution: Debian
Posts: 230

Rep: Reputation: 31
You do have Ruby installed on your server, correct?
 
Old 11-13-2004, 03:51 PM   #3
jon_k
Member
 
Registered: Jul 2003
Location: Fort Worth, Texas
Distribution: Mepis Linux 2004
Posts: 547

Original Poster
Rep: Reputation: 30
Yes, I do.

Basic perl scripts don't work neither.
 
Old 11-13-2004, 04:46 PM   #4
ninmonkeys
LQ Newbie
 
Registered: Nov 2004
Distribution: Slackware 10
Posts: 28

Rep: Reputation: 15
Quote:
Originally posted by jon_k
Options ExecCGI is off in this directory: /var/www/blog/index.rb
That says you have CGI disabled in that directory.

Check out this tutorial(docs come with apache) http://httpd.apache.org/docs-2.0/howto/cgi.html
 
Old 11-13-2004, 05:06 PM   #5
jon_k
Member
 
Registered: Jul 2003
Location: Fort Worth, Texas
Distribution: Mepis Linux 2004
Posts: 547

Original Poster
Rep: Reputation: 30
Thank you!

I added this to my .conf in the <IfModule mod_alias.c> section.

<Directory /var/www>
Options +ExecCGI
</Directory>
 
  


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
cgi won't work in apache davidk Linux - Networking 9 10-16-2004 08:09 AM
CGI to work out side of cgi-bin? crashedspine Linux - Newbie 13 09-02-2004 09:49 PM
Apache And CGI bmh.01 Linux - Software 2 05-31-2003 12:52 PM
apache v2.0.44 + cgi ; securing cgi-support in apache markus1982 Linux - General 0 01-20-2003 02:03 PM
CGI program not work in Apache Manuel Tejada Linux - General 3 10-31-2002 09:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:43 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