The "directory Is Writable By Others" Error

Hello,<br /><br />I am new to TCH. I'm in the process of transferring my old files and scripts to this new server. The particular script I'm trying to access right now is an interactive story located at <a href="http://lk.sugandya.us/lktale/beyond.cgi" target="_blank">http://lk.sugandya.us/lktale/beyond.cgi</a>.<br /><br />I have uploaded my files and set the permissions of the directory (lk/cgi-bin/lktale) as directed:<br />Directory of Script- 777<br />Then, I uploaded the files in text mode, and set permissions to:<br />beyond.cgi - 755 <br />beyondconfig.pl - 755 <br />beyond.txt - 777 <br />oldies.txt - 777 <br />rectime.txt - 777 <br />(other files) - 644 <br /><br />My problem: When I try and visit the script, I get the 500 Internal Server Error. I checked cPanel as directed by one of the messages in my search for help on this board. Here is the exact error line I got:<br /><br /><i>[2003-06-22 12:59:53]: error: directory is writable by others: (/home/sugandy/public_html/lk/lktale)</i><br /><br />I've checked the script itself; all my paths were set properly for my new site. At first, I thought it being located in a subdomain's directory would affect it, but I moved it to other directories, including the top level. I still got the same error in cPanel. <br /><br />Is it illegal to set script directory permissions to 777, although it is required for the script to run? I don't understand what is going on; it worked fine on my old site.<br /><br />My script comes from <a href="http://kompashka.hypermart.net/download/beyond.html" target="_blank">http://kompashka.hypermart.net/download/beyond.html</a>.<!--content-->
Try setting the directory permissions to 755 even if the directions say to set them to 777.<!--content-->
I tried what you said. I tried to run the script, and got the message:<br /><br />Error : "beyondconfig.pl" file execution failed!<br />Check "beyondconfig.pl" file for syntax errors<br />(try : perl -d beyondconfig.pl). <br /><br />So, I used MacPerl to check the syntax and re-uploaded everything. I tested my script; it works! Thanks a lot! <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /><!--content-->
Glad it is working for you now. Usually changing 777 permissions to 755 on cgi scripts and directories containing cgo scripts will run fine if suexec is running on the server.<!--content-->
 
Back
Top