Script Help Please

They have: 10 posts

Joined: Jan 2002

I am trying to use a free upload file utility (PSUpload) and am receiving the following error:

error 500: Internal Server Error
The server encountered an unexpected condition which prevented it from fulfilling the request.

This can be see here (http://www.animateit.co.uk/psupload.html)

I am 100% sure that all the parameters are correct in the upload.cgi file and relevant directories have the correct CHMOD settings.

Any advise would be greatly appreciated.

They have: 601 posts

Joined: Nov 2001

OK. A few basic things to try.

First off, give us more information. I can't stress this enough. What kind of script is this? Is it a Perl, PHP, ASP, .NET, Java, Python, C++, Rubel, WebObjects, ColdFusion? You see the possibilites that we have to work with?

Secondly, a common problem with CGI scripts is that headers are not printer properly. Have you tried running your code from the command line? Do you have telnet access to do this? Or can you try this on a local setup?

Did you CHMOD all directories and the actual scripts themselves correctly? You probably need to change the scripts to 755, and the directories to 777 - if your host allows you to.

Did you transfer the files to your webhost using ASCII file transfer and not binary transfer? This causes Perl programs to screw up and throw an error.

Hope this helps.

- wil

tmay's picture

They have: 75 posts

Joined: Sep 2001

Also, check the very first line of the CGI program and make sure the path to Perl is correct for your server.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.