LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Cgi-bin error 403 Forbidden You do not have permission to access this document. (https://www.linuxquestions.org/questions/linux-newbie-8/cgi-bin-error-403-forbidden-you-do-not-have-permission-to-access-this-document-811202/)

samguy 05-31-2010 01:33 AM

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

smoker 05-31-2010 02:34 AM

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 ?

samguy 05-31-2010 02:43 AM

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

samguy 05-31-2010 02:43 AM

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

smoker 05-31-2010 03:46 AM

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.

samguy 05-31-2010 04:01 AM

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

smoker 05-31-2010 04:42 AM

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

samguy 05-31-2010 06:51 PM

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

smoker 05-31-2010 10:47 PM

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 )

John VV 06-01-2010 12:25 AM

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 .

samguy 06-01-2010 03:24 AM

Found all my solutions we can close this thread now thanks a lot everyone for co-operating

alli_yas 06-01-2010 04:02 AM

Click on "Thread Tools" and mark as SOLVED

smoker 06-01-2010 11:19 AM

Quote:

Originally Posted by John VV (Post 3988153)
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.

alli_yas 06-02-2010 02:04 AM

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 ;)


All times are GMT -5. The time now is 02:21 PM.