View Full Version : (Cpanel) Removing an authorization error page


marymaier1
07-20-2003, 01:57 AM
I tried to install a CGI script, but when i try to view the page in the cgi-bin, a 403 error comes up (not allowed to view blah blah blah for some reason). I know in cpanel you can create custom pages, but i dont know if I can or how i can remove it. I tried changing the file's chmod to 777/666, but it only works if the 'other' write or execute isn't checked. 664 is the preference. any ideaS?

djdaz
07-20-2003, 12:32 PM
if the error you are getting is a 403 permission denied, try to change the chmod to 755. That should work.

DisneyFan25863
07-22-2003, 03:48 AM
Okayedae, I had this same promblem a few days ago :)

First off, check to make sure your CGI-BIN is CHMODed to 755.
If that dosn't resolve the promblem make sure that the first line in every CGI script is your path to perl (it should be somthing like #!/usr/bin/perl but your host can give you the correct one). Also, you should make sure you are uploading all CGI and .pl files in ASCII mode in your FTP client. Finally, most hosts will only run CGI files with a CHMOD of 755, so make sure that you have CHMODed it to that. ;)