LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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
 
LinkBack Search this Thread
Old 05-31-2010, 01:33 AM   #1
samguy
LQ Newbie
 
Registered: May 2010
Posts: 8

Rep: Reputation: 0
Cgi-bin error 403 Forbidden You do not have permission to access this document.


Hello,

I am getting this error
Quote:
Cgi-bin error 403 Forbidden You do not have permission to access this document
. When i try to access cgi-bin via browser example mysitename.com/cgi-bin and when i try access mysitename.com/cgi-bin/online.cgi via browser i get the error
Quote:
500 Internal Server Error
. and when i try to access sitename.com/cgi-bin/testcgi.pl i get
Quote:
error 404 file not found
. I beleive my cgi-bin is not configured properly ? Please let me know anything i can do to fix this problem i am trying to install a video script that requires cgi-bin to run a file named ubr_upload.pl. I have a dedicated linux server with fedora 11 installed.

Thanks
 
Old 05-31-2010, 02:34 AM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 248Reputation: 248Reputation: 248
The first error is because cgi-bin is not browsable by default. This is normal.

The second error is due to a misconfigured script, or the script not having correct permissions, try
Code:
chmod 755 online.cgi
The third error is obvious, there is no script with that name.

If you are trying to run a script called ubr_upload.pl why are you trying to access everything but ubr_upload.pl ?

Last edited by smoker; 05-31-2010 at 02:35 AM.
 
Old 05-31-2010, 02:43 AM   #3
samguy
LQ Newbie
 
Registered: May 2010
Posts: 8

Original Poster
Rep: Reputation: 0
Hello,

Yes all these files that i am trying to browse to exist in cgi-bin folder and i do have the correct file permissions of the cgi-bin folder and all the files that resided in it. i did try browsing sitename.com/cgi-bin/ubr_upload.pl and it gives me the same error [quote]error 404 file not found[quote]. What else can be done?

Thanks
 
Old 05-31-2010, 02:43 AM   #4
samguy
LQ Newbie
 
Registered: May 2010
Posts: 8

Original Poster
Rep: Reputation: 0
Hello,

Yes all these files that i am trying to browse to exist in cgi-bin folder and i do have the correct file permissions of the cgi-bin folder and all the files that resided in it. i did try browsing sitename.com/cgi-bin/ubr_upload.pl and it gives me the same error
Quote:
error 404 file not found.
What else can be done?

Thanks
 
Old 05-31-2010, 03:46 AM   #5
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 248Reputation: 248Reputation: 248
Firstly, you can edit your posts if you make a mistake, don't make a new post.

Secondly, please provide a directory listing of the cgi-bin concerned. Post it in code tags please.
 
Old 05-31-2010, 04:01 AM   #6
samguy
LQ Newbie
 
Registered: May 2010
Posts: 8

Original Poster
Rep: Reputation: 0
I am sorry i couldnt understand what you meant by "Post it in code tags please." I tried "Tags" it was something else anyways here is my cgi-bin dir structure

/httpdocs/cgi-bin/online.cgi

/httpdocs/cgi-bin/ubr_upload.pl

Hope i answered your question properly.

And the file permission is set correctly to the folder and the files 755
Also the video script i am using uses ubr_upload.pl when i upload the videos it gives me the following error

ERROR: Failed to find flength file and gives me the referenced site http://uber-uploader.sourceforge.net/?section=flength
i have tried that but no use and still trying to find the solution on net. If the name of script will help somehow then its called clipshare

Last edited by samguy; 05-31-2010 at 04:24 AM.
 
Old 05-31-2010, 04:42 AM   #7
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 248Reputation: 248Reputation: 248
I suggest that the script is not configured correctly, and that you should post on a more suitable forum, ie. the uber upload help forum.
http://sourceforge.net/projects/uber...s/forum/497768
 
Old 05-31-2010, 06:51 PM   #8
samguy
LQ Newbie
 
Registered: May 2010
Posts: 8

Original Poster
Rep: Reputation: 0
The script is fine it works great for other people. Ok i will explain things in more details now, I am using plesk control panel and Fastcgi for the php support. The only problem is that i am not able to read the file that resides in cgi-bin via the browser. I guess there could be something messed up in my apache server files? I am guessing it could be the permission error, not the Chmod permission but the system owner permission perhaps. I dont know much about linux. When i browse to sitename.com/cgi-bin/cgi-bin/online.cgi it gives me " 500 Internal Server Error " and when i browse to sitename.com/cgi-bin/ubr_upload.pl it gives me error " 400 Not Found ". I know for a fact that these files are perfect and working fine on my other shared hosting server but not just on this dedicated server.

Thanks
 
Old 05-31-2010, 10:47 PM   #9
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 248Reputation: 248Reputation: 248
The script is not configured correctly. You can't just move a script from one machine to another and expect it to work. The path to perl may be different, the local settings for other variables may be different and many other possibilities.

Have you actually read the scripts concerned ? They usually tell you what to do to install it.


php is irrelevant.

You also say the script is called clipshare but you have shown that there is no file called clipshare in your cgi-bin. Try reading your apache error logs. ( /var/log/httpd/error_log )
 
Old 06-01-2010, 12:25 AM   #10
John VV
Guru
 
Registered: Aug 2005
Posts: 12,140

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
samguy also BE ADVISED that all support for fedora 11 will end in about 20 days

after that there will NEVER be any updates to it ever. none .

if you are going to use fedora on a server then you WILL NEED to reinstall a NEW version EVERY 6 months -- on ifs ands or butts --

you MUST stay up to date .

or use a long life distro that has a 5 to 7 year life span .
 
Old 06-01-2010, 03:24 AM   #11
samguy
LQ Newbie
 
Registered: May 2010
Posts: 8

Original Poster
Rep: Reputation: 0
Found all my solutions we can close this thread now thanks a lot everyone for co-operating
 
Old 06-01-2010, 04:02 AM   #12
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 91
Click on "Thread Tools" and mark as SOLVED
 
Old 06-01-2010, 11:19 AM   #13
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 248Reputation: 248Reputation: 248
Quote:
Originally Posted by John VV View Post
if you are going to use fedora on a server then you WILL NEED to reinstall a NEW version EVERY 6 months
That is simply not true. You get roughly 13 months of updates with Fedora.

Each version comes to end of life around a month after the release of version x + 2

So F11 is coming to the end of life but F12 will still be supported until a month after F14 is released - about 13 months.

In my experience, it is never a good idea to jump straight on the upgrade bandwagon, because you essentially become a beta tester for the rest of us. Fine on a play machine but not on a server. So skip a generation, or wait until the current generation has been around a few months.


As for the OPs problems all being solved, it would be nice to know what the problems were and how they were fixed.

Last edited by smoker; 06-01-2010 at 11:22 AM.
 
Old 06-02-2010, 02:04 AM   #14
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 91
Quote:
In my experience, it is never a good idea to jump straight on the upgrade bandwagon, because you essentially become a beta tester for the rest of us. Fine on a play machine but not on a server. So skip a generation, or wait until the current generation has been around a few months.
Agree with smoker - in my humble opinion, on a server Fedora isn't the way to go - even a 13 month support cycle is not good enough. For desktops and play machines - its great since it allows for one to experiment with the latest features; which will eventually make its way into RHEL.

Thus I'd say stick to RHEL or CentOS for servers
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache2 cgi-bin Forbidden Access cluckshot Linux - Software 5 01-09-2009 12:26 PM
403 forbidden :You don't have permission to access /hi.html on this server. av.dubey Linux - Newbie 3 12-21-2007 12:10 AM
CGI-bin Directory Request = 403 Forbidden King4lex Linux - Server 1 04-10-2007 09:43 PM
403 Forbidden when accessing http://mydomain/cgi-bin/openwebmail/openwebmail.pl mtsolutions Linux - Software 3 10-27-2006 08:31 AM
403 Forbidden access to web with php and cgi scripts tonyboy Linux - Software 3 03-17-2004 07:45 AM


All times are GMT -5. The time now is 10:33 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration