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 02-05-2005, 08:02 AM   #1
Sevoma
Member
 
Registered: Jul 2004
Distribution: Debian x86_64
Posts: 61

Rep: Reputation: 15
CGI and Apache


I have apache 2 set up on my server and I put a folder cgi-bin in the document root with my cgi scripts. When I go to the file it gives me a 404, and I have the correct url. When I go to the folder it will not allow me to view it. My configuration file is blank and my permissions are okay. I want to be able to execute cgi and pl files. I have perl installed and I thin the problem is in my configuation file.

Thanks for any help, Sevoma
 
Old 02-05-2005, 08:21 AM   #2
Verylinux
LQ Newbie
 
Registered: Feb 2005
Location: Beijing,China,Asia
Posts: 12

Rep: Reputation: 0
I think below article will be helpful:

RedHat's httpd-2.0.46-44 Reference Manual

Your can read it from my website: verylinux.com!

Regards
 
Old 02-05-2005, 08:30 AM   #3
Sevoma
Member
 
Registered: Jul 2004
Distribution: Debian x86_64
Posts: 61

Original Poster
Rep: Reputation: 15
Thanks, your site was very helpful.
So I would use this
<Directory /var/www/cgi-bin>
ExecCGI
</Directory>
Is that correct to enable it?

I think I have to install this also, right? libapache2-mod-scgi
 
Old 02-05-2005, 08:40 AM   #4
Verylinux
LQ Newbie
 
Registered: Feb 2005
Location: Beijing,China,Asia
Posts: 12

Rep: Reputation: 0
Have your add this directive:

ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
 
Old 02-05-2005, 09:07 AM   #5
Sevoma
Member
 
Registered: Jul 2004
Distribution: Debian x86_64
Posts: 61

Original Poster
Rep: Reputation: 15
I get
"Not Found

The requested URL /cgi-bin/nph-proxy.cgi was not found on this server."
 
Old 02-05-2005, 09:20 AM   #6
Verylinux
LQ Newbie
 
Registered: Feb 2005
Location: Beijing,China,Asia
Posts: 12

Rep: Reputation: 0
Note that if you include a trailing / on the url-path then the server will require a trailing / in order to expand the alias.
That is, if you use Alias /cgi-bin/ "/var/www/cgi-bin/" then the url /cgi-bin will not be aliased.

Last edited by Verylinux; 02-05-2005 at 09:21 AM.
 
Old 02-05-2005, 09:33 AM   #7
Sevoma
Member
 
Registered: Jul 2004
Distribution: Debian x86_64
Posts: 61

Original Poster
Rep: Reputation: 15
It still doesn't work...
 
Old 02-06-2005, 05:55 PM   #8
Sevoma
Member
 
Registered: Jul 2004
Distribution: Debian x86_64
Posts: 61

Original Poster
Rep: Reputation: 15
can somebody please help me?
 
  


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
about Apache and CGI kpachopoulos General 1 11-17-2004 04:23 PM
apache and cgi hward Linux - Newbie 5 06-09-2004 03:53 AM
Apache And CGI bmh.01 Linux - Software 2 05-31-2003 11:52 AM
apache v2.0.44 + cgi ; securing cgi-support in apache markus1982 Linux - General 0 01-20-2003 01:03 PM
apache-cgi j-ray Linux - Software 1 12-12-2002 03:31 PM

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

All times are GMT -5. The time now is 04:32 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
Open Source Consulting | Domain Registration