Jump to content

Recommended Posts

Posted

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.

Posted

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! :D

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...