Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rename, and then rename it the old name cause trouble?

Status
Not open for further replies.

Cadwalader

IS-IT--Management
Feb 12, 2002
297
US
I renamed a file webdata_trials.pl to old_webdata_trials.pl. What I was trying to do was rename another one with all teh field info in it. Right after I did that, I realized what I did, and changed the name back to "webdata_trials.pl" jsut like it was less than 30 seconds before. I go to log in to test it (knowing something would happen like this), and I get the 404. I didn't change anything in that file. I DLed it and looked at it, and I realized it was 5300 lines long, I almost fell out of the chair. I haven't messed with that file, other than changing the name and then changing it right back.

I did change the name of the file I wanted to change, uplaoded the new one with the fewer lines (it's for fields, like name, age, bla, bla. It was from another website that was put here, and all it needed were a few less fields because they didn't apply to this site.) Any way, it was working ealier, and it's not now.

So the question is: By renaming a .pl file in the cgi-bin, and then changing the name back, have I instigated some sort of security thing that is preventing the script from running? Or does that kind of stuff just happen like that?

Thaks for the help, if you can't tell by now, I am now to cgi's and oblivious to perl and unix. Hope I was of some help...
--OR--
Thanks for the help...
--Rich

 
Yeah. All the files in that cgi-bin are in all lower case except the FormMail.cgi. I never went anywhere near that one. Hope I was of some help...
--OR--
Thanks for the help...
--Rich

 
Do you get any errors in your error log? If the case is correct and you are accessing it the way you are supposed to, and you get no errors, I have no idea what could be wrong. //Daniel
 
I can telnet into it. I am using CuteFTP (hmm, sould that be the problem? heh). This is intresting: it has root access. I can get all the way back to the /
I the other virtual domains, I can't. Hope I was of some help...
--OR--
Thanks for the help...
--Rich

 
Oh, where would the error logs be?
Hope I was of some help...
--OR--
Thanks for the help...
--Rich

 
That depends on the UNIX variant you are using. On RedHat it is /var/log/httpd but the standard is /usr/local/apache/logs //Daniel
 
One other wacky thing:
I use Developer's Pad. It has a neato little thing where you can hit the F4 key and it pops up a browser so you can see what you'r doing as you go. The form to log in, the one that leads to the 5300 line file I renamed and changed back to the original name, will work in this browser. Whene I try to log in from IE (6 I think, this is not my machine, I am at work), I get the 404 error "page not found" bleh...

What is up with that? I don't dare check it in NN! (jsut kidding, I will) 99.2% of our visitors use IE, so the boss isn't too woried about cross-browser compat.

Thanks in a advance... Hope I was of some help...
--OR--
Thanks for the help...
--Rich

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top