Scorpio Posted July 29, 2002 Share Posted July 29, 2002 This is where to submit your questions about Perl/CGI. Please answer any of the questions if you know the answer. Link to comment Share on other sites More sharing options...
Scorpio Posted July 29, 2002 Author Share Posted July 29, 2002 I have some scripts that would allow a user to upload a file to a server but I have never got it to work. These are straight from books so I know they work. I have the CHMOD right. I am wondering, does anyone think that a server can restrict a certain script and if so how can I be sure before I spend a bunch of money on a server. If anyone knows why this might not be working please respond. Thanks Link to comment Share on other sites More sharing options...
blike Posted July 30, 2002 Share Posted July 30, 2002 I know you said you checked this, but it sure sounds like a CHMOD problem to me. What do you have the directory chmod to? Link to comment Share on other sites More sharing options...
fafalone Posted July 30, 2002 Share Posted July 30, 2002 If you're going to pay alot of money for the server, then make sure it has good support and ask them. Link to comment Share on other sites More sharing options...
Scorpio Posted July 30, 2002 Author Share Posted July 30, 2002 I think I had the directory at 777 and the cgi script at 766 the html file was 777 also I believe. What do you think they should be? Link to comment Share on other sites More sharing options...
blike Posted July 30, 2002 Share Posted July 30, 2002 777. try changing them all to that (just to see). Link to comment Share on other sites More sharing options...
Scorpio Posted July 30, 2002 Author Share Posted July 30, 2002 At one point I did CHMOD them all to 777. Do you think the server could be restricting me from uploading files? Or do you have any idea how else I can allow a user to upload a file to a website? Link to comment Share on other sites More sharing options...
blike Posted July 30, 2002 Share Posted July 30, 2002 Try another upload script. I don't think the server should reject it for any reasons, as long as the permissions are 777.. wierd. Link to comment Share on other sites More sharing options...
Guest Syntax Posted October 23, 2002 Share Posted October 23, 2002 For security issues, a server may restrict it for some gay reasons, if you have a panel, allow uploads from someone other than you. Also, check the script on another server, if it doesn't work on your server, then call tech support. Link to comment Share on other sites More sharing options...
fafalone Posted October 23, 2002 Share Posted October 23, 2002 Again, beautiful response time. Link to comment Share on other sites More sharing options...
Guest Syntax Posted October 23, 2002 Share Posted October 23, 2002 once again stfu, I will take my DAMN time responding, oh and um make sure perl works period, before testing the file upload script, because sometimes files get uploaded as binary, and don't work. try reuploading Link to comment Share on other sites More sharing options...
dudels Posted October 31, 2002 Share Posted October 31, 2002 I know that you asked for Perl, but if your server supports PHP then I think I have a working script lying around somewhere that you could use. Link to comment Share on other sites More sharing options...
Scorpio Posted November 4, 2002 Author Share Posted November 4, 2002 It does support PHP and I would like the script, but I really was wondering why the it wasnt working. I uploaded it about 20 times. Making small changes to it. I took the code straight from a book even, to be sure that there would be no mistakes. I uploaded it in ASCII form and I know that the perl works because I made a counter. So let me say it one more time, "What the deal yo?!?" Link to comment Share on other sites More sharing options...
dudels Posted November 5, 2002 Share Posted November 5, 2002 I shall try and dig it out for you. I have had no experiance with Perl so I'm afraid I won't be able to help you with it. Link to comment Share on other sites More sharing options...
Ahmad Posted January 4, 2003 Share Posted January 4, 2003 Can you please provide more information about the error message you are getting? Also, what kind of configuration you have on the server? Link to comment Share on other sites More sharing options...
Scorpio Posted January 4, 2003 Author Share Posted January 4, 2003 It says error 500. Link to comment Share on other sites More sharing options...
Ahmad Posted January 6, 2003 Share Posted January 6, 2003 Hmmm. That's not much of a help. Try to visit the page, and when error 500 appears, get the last 5 lines in your error log. You know how to access your error log? It is basicly a file called error_log. If you need more specific information or commands I'll try my best. Link to comment Share on other sites More sharing options...
Scorpio Posted January 6, 2003 Author Share Posted January 6, 2003 I have set it up so it will print the errors but it never prints them. It is as if the script is not be executed. If it is possible, the server may have restricted file uploads. I can make the script create a file, as in a counter but I can not make it upload a file. I worked on this for a week and a half and decided it was useless. There arent enough people with CGI or Perl knowledge to get help. -Scorpio Link to comment Share on other sites More sharing options...
Ahmad Posted January 9, 2003 Share Posted January 9, 2003 You set what to print the errors? You mean it is an option in the script? This is obviously a problem in the execution of the script itself. Anyway, I might be able to help you if you get me the error messages. Just look for the file: $ locate error_log If you find it for example in: /var/log/apache/error_log, then you should print the last 6 lines of the file: $ tail -6 /var/log/apache/error_log Then copy these files and paste them here. It might be very easy to solve. Link to comment Share on other sites More sharing options...
Scorpio Posted January 9, 2003 Author Share Posted January 9, 2003 I had it so it would print any errors in text on the page and tell me waht the problem was, but instead I got an error 500 and I have no idea what that means. The owners of the site are not helpful and if I mail them all i get is an automatic response that doesnt address the problem... Great customer service. -Scorpio Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now