Magnolia Posted June 22, 2003 Posted June 22, 2003 Hello, 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 http://lk.sugandya.us/lktale/beyond.cgi. I have uploaded my files and set the permissions of the directory (lk/cgi-bin/lktale) as directed: Directory of Script- 777 Then, I uploaded the files in text mode, and set permissions to: beyond.cgi - 755 beyondconfig.pl - 755 beyond.txt - 777 oldies.txt - 777 rectime.txt - 777 (other files) - 644 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: [2003-06-22 12:59:53]: error: directory is writable by others: (/home/sugandy/public_html/lk/lktale) 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. 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. My script comes from http://kompashka.hypermart.net/download/beyond.html. Quote
TCH-Rick Posted June 22, 2003 Posted June 22, 2003 Try setting the directory permissions to 755 even if the directions say to set them to 777. Quote
Magnolia Posted June 22, 2003 Author Posted June 22, 2003 I tried what you said. I tried to run the script, and got the message: Error : "beyondconfig.pl" file execution failed! Check "beyondconfig.pl" file for syntax errors (try : perl -d beyondconfig.pl). So, I used MacPerl to check the syntax and re-uploaded everything. I tested my script; it works! Thanks a lot! Quote
TCH-Rick Posted June 22, 2003 Posted June 22, 2003 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.