| | |
500 Internal Server Error - with a twist
Please support our Perl advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: May 2007
Posts: 2
Reputation:
Solved Threads: 0
I had this same problem. I used a program called EditPlus and it created the same problem for me. I never could solve it with EditPlus, but I have figured it out in Komodo.
Perhaps you have already figured this out or don't need a solution any more, but I wanted to post my solution here in case anyone else stumbles across this post. Hopefully it will help you out.
I believe the cause is Windows adding in line breaks. Since these line breaks are invisible in editors, there are no apparent problems. But when the compiler attempts to run the program, an internal server error occurs.
Here is what I did:
1. With the file open, select "Edit => Current File Settings..."
2. Next to Line Endings, change "DOS/Windows (\r\n)" to "UNIX (\n)"
3. Unclick the box next to "Preserve existing line endings"
4. Reupload (remote save) the file
This should hopefully solve your problem, as it did mine.
Perhaps you have already figured this out or don't need a solution any more, but I wanted to post my solution here in case anyone else stumbles across this post. Hopefully it will help you out.
I believe the cause is Windows adding in line breaks. Since these line breaks are invisible in editors, there are no apparent problems. But when the compiler attempts to run the program, an internal server error occurs.
Here is what I did:
1. With the file open, select "Edit => Current File Settings..."
2. Next to Line Endings, change "DOS/Windows (\r\n)" to "UNIX (\n)"
3. Unclick the box next to "Preserve existing line endings"
4. Reupload (remote save) the file
This should hopefully solve your problem, as it did mine.
Nearly all FTP applications silently convert the line endings when you upload a file from a local computer to a remote computer. So if you upload from windows to Unix or Linux there should be nothing to worry about. You should upload in ASCII (text) mode though for text files.
Some FTP applications you choose the remote computer type from a list and some do the checking automatically and convert the line endings as needed.
Some FTP applications you choose the remote computer type from a list and some do the checking automatically and convert the line endings as needed.
![]() |
Similar Threads
- Internal Server Error (Perl)
- 500 internal server error (*nix Software)
- php_value inclue path says internal server 500 error (Linux Servers and Apache)
- why getting "302 found" and "500 Internal Server" errors? (PHP)
- Http 500 -internal Server Error (Site Layout and Usability)
- Getting error 500 Internal Service Error..Meaning? (Web Browsers)
Other Threads in the Perl Forum
- Previous Thread: Lightning Talk Topic Ideas
- Next Thread: perl mechanize $mech->save_content($filename) problem
| Thread Tools | Search this Thread |
Tag cloud for Perl





