Toggle navigation Home Store Browse All ----- Webhosting Domains Quotation (Webdesign Services) eMail Hosting SEO- Search Engine Optimisation GRAPHIC DESIGN Dedicated/ VPS Webhosting BULKSMS Mobi Applications Website Maintenance Register a New Domain Transfer Domains to Us Announcements Knowledgebase Network Status Affiliates Contact Us Account Login Register ----- Forgot Password? Categories 9 CGI Scripts 34 Databases 28 Dedicated Servers 1 DNS 15 Domains 5 eCommerce 79 eMails 27 FTP 1 General Issues 1 MX Records 1 Nameservers 28 Other 104 Scripting 254 Web Hosting Control Panel 9 Web Resources 8 Web Stats & Logs 11 Web Tools 8 Website Help and Diagnostics 4 Windows Hosting Categories CGI Scripts (9) Databases (34) Dedicated Servers (28) DNS (1) Domains (15) eCommerce (5) eMails (79) FTP (27) General Issues (1) MX Records (1) Nameservers (1) Other (28) Scripting (104) Web Hosting Control Panel (254) Web Resources (9) Web Stats & Logs (8) Web Tools (11) Website Help and Diagnostics (8) Windows Hosting (4) [WHP1.03] My CGI/Perl scripts are failing with error 500 (Internal Server Error) These errors are nearly always related to a coding error within the script, or bad variables being passed into the script. If you encounter an error "500 Internal Server Error" whilst running your CGI and Perl scripts, try the following in order:- Ensure you have uploaded the script through FTP using ASCII mode (not Binary), or that it has Unix-style carriage returns.- Check the interpreter path on the first line of the script. For Perl it shouldalways be "#!/usr/bin/perl".- Make sure the script filename ends in either ".pl" or ".cgi".- Make sure the script can execute. It should have permissions of "755". Most FTP clients support this.- Put "use CGI::Carp qw(fatalsToBrowser);" into the second line of yourscript. This will make Perl print the error instead of the "500 Internal Server Error" page, and will allow you to find out where your script is breaking.Other potential problems include bad syntax in an .htaccess file (if you've created/edited one). Check your error log for details (there are articles on how to get to your error logs). Was this answer helpful? Yes No Print this Article Also Read [WHP1.19] I've uploaded a compiled CGI program why does it not run? This applies to Linux hosting accounts only.If the program is a CGI binary written in a language... [WHP1.01] My CGI/ASP/PHP script is giving an error when trying to write to a file This applies to Linux hosting accounts only.This is almost certainly down to incorrect... [WHP1.10] Why does my script produce a 'file permissions error'? CGI scripts need certain file permissions to be set if they are to work properly. In general CGI... [WHP1.07] Why do I get a red (x) where my images are supposed to appear? I made some changes to my site, but when I view it still has the oCheck to make sure the names of... [WHP1.14] Accesses to all files result in '500 Internal Server Error' messages 500 Internal Server Error messages on every page are typically an indication of a misconfigured... Support My Support Tickets Announcements Knowledgebase Downloads Network Status Open Ticket × Close Title Loading...