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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-05-2005, 08:02 AM
|
#1
|
Member
Registered: Jul 2004
Distribution: Debian x86_64
Posts: 61
Rep:
|
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
|
|
|
02-05-2005, 08:21 AM
|
#2
|
LQ Newbie
Registered: Feb 2005
Location: Beijing,China,Asia
Posts: 12
Rep:
|
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
|
|
|
02-05-2005, 08:30 AM
|
#3
|
Member
Registered: Jul 2004
Distribution: Debian x86_64
Posts: 61
Original Poster
Rep:
|
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
|
|
|
02-05-2005, 08:40 AM
|
#4
|
LQ Newbie
Registered: Feb 2005
Location: Beijing,China,Asia
Posts: 12
Rep:
|
Have your add this directive:
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
|
|
|
02-05-2005, 09:07 AM
|
#5
|
Member
Registered: Jul 2004
Distribution: Debian x86_64
Posts: 61
Original Poster
Rep:
|
I get
"Not Found
The requested URL /cgi-bin/nph-proxy.cgi was not found on this server."
|
|
|
02-05-2005, 09:20 AM
|
#6
|
LQ Newbie
Registered: Feb 2005
Location: Beijing,China,Asia
Posts: 12
Rep:
|
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.
|
|
|
02-05-2005, 09:33 AM
|
#7
|
Member
Registered: Jul 2004
Distribution: Debian x86_64
Posts: 61
Original Poster
Rep:
|
It still doesn't work...
|
|
|
02-06-2005, 05:55 PM
|
#8
|
Member
Registered: Jul 2004
Distribution: Debian x86_64
Posts: 61
Original Poster
Rep:
|
can somebody please help me?
|
|
|
All times are GMT -5. The time now is 04:32 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|