LinuxQuestions.org
Review your favorite Linux distribution.
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 05-13-2002, 02:50 AM   #1
Mackeral
LQ Newbie
 
Registered: May 2002
Distribution: Mandrake 8.2
Posts: 2

Rep: Reputation: 0
no access to cgi-bin within Apache


Morning, can somebody help me with this problem, I've got Mandrake 8.2 running on my system with Apache setup and running quite happily, the only stumbling block is that Apache does not have access to the cgi-bin which is where I'm wanting to throw my perl scripts.

I've checked ownership/group of the cgi-bin, it was originally root and I've changed it to apache and still no luck.

Speedy help would be appreciated 'cos I can't get any further with my HNC web design assignment and it's got to be finished real soon.

Thanks in advance

Mackeral
 
Old 05-13-2002, 03:00 AM   #2
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
have you uncommented the add handler for cgi execution in the /etc/httpd/httpd.conf? if not do that. script alias should be set correct by default or did you change the directory of the cgi-bin? cheers
jens
 
Old 05-13-2002, 03:03 AM   #3
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
(forgot that) try to set chmod 0777 to cgi-bin or 0755
 
Old 05-13-2002, 12:29 PM   #4
Mackeral
LQ Newbie
 
Registered: May 2002
Distribution: Mandrake 8.2
Posts: 2

Original Poster
Rep: Reputation: 0
I've set cgi-bin to 0777 and still no joy, I still get the message:
You don't have permission to access /cgi-bin/form.pl on this server.

Not sure where the 'add handler' is in the httpd.conf file, and not sure what try try next really, any more suggestions??

The html directory and pages work ok but as soon as the page call to go to perl script from the cgi-bin I just get the above message.

Ta

Mackeral
 
Old 05-13-2002, 01:58 PM   #5
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
in my conf (/usr/local/apache/etc/hhtpd.conf) it is in line 831. that should look like:
AddHandler cgi-script cgi pl plx
it's important that the script (form.pl) is executable (chmod 0755 or 0777)
i'm not sure whether or not i forget sth important, but try that, if it doesn't work i'll have a closerl look at it again
cheers jens
 
Old 05-13-2002, 02:09 PM   #6
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
that's the trick:
<Directory "/home/jens/webs/perl/cgi-bin">
Options +ExecCGI
</Directory>
put that to the httpd.conf, name the directory correct, that should work if you have the cgi-bin in your home directory
jens
 
Old 05-14-2002, 05:15 AM   #7
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
to make it clearer:
go to the section `script alias' in httpd.conf. there you might find a line
Options none
replace the 'none' with '+ExecCGI'
i`m sorry i guess i made it more complicated than necessary yesterday
good luck
jens
 
  


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
Can not access cgi-bin from browser. Spreegem Linux - Software 6 11-07-2005 07:22 PM
Ftp access To Cgi-bin redhatlover Red Hat 3 05-04-2004 04:32 AM
How do i access the files in my CGI-BIN rhuser Linux - Software 2 03-04-2003 03:33 PM
no access to cgi-bin j-ray Linux - General 0 04-01-2002 07:40 AM
apache cgi-bin roadie Linux - General 6 06-16-2001 07:15 PM

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

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