victimofgrace Posted September 8, 2010 Posted September 8, 2010 My .aspx and .cgi files aren't working. My cgi file: http://addes3rpg.heliohost.org/cgi-bin/first.cgi My .aspx file: http://addes3rpg.heliohost.org/test.aspx I have tried many times on different days to get them to work and I can't, so I don't think it's server load. I get a 500 internal server error for the cgi file and a runtime error/server error.
Byron Posted September 8, 2010 Posted September 8, 2010 Copy the perl script below into a file and call it 'time.cgi' and chmod it to 755. #!/usr/bin/perl -w use CGI ':standard'; $current_time = localtime; print header, start_html('A Virtual Clock'), h1('A Virtual Clock'), "The current time is $current_time - PST.", hr, end_html; Let me know if that works for you.
victimofgrace Posted September 9, 2010 Author Posted September 9, 2010 Nope, dosen't work. URL: http://addes3rpg.heliohost.org/cgi-bin/time.cgi
Byron Posted September 9, 2010 Posted September 9, 2010 This support request is being escalated to our root admin.
Ashoat Posted September 10, 2010 Posted September 10, 2010 Your ASP.NET file is getting a runtime error. Follow the directions you get on your screen to enable error reporting so you can debug it. For the CGI file: what's your HelioHost username? You probably just have permissions wrong on some directory or file. Have you checked .htaccess in that directory, as well as the directory itself?
victimofgrace Posted September 10, 2010 Author Posted September 10, 2010 My username is addes3. I've checked permissons, but I never thought of the .htacccess. I got the time.cgi to work, but mine won't. And I debugged the .aspx file. Thanks.
Ashoat Posted September 10, 2010 Posted September 10, 2010 Problem with the CGI scripts you're running is that you have a you U+FEFF character at the beginning. Here, read this Wikipedia page. I've had this problem before and it's not easy to deal with in Windows. If you're running a 32-bit version, the command-line text editor in cmd (I think it's just "edit") can see the U+FEFF character, but most text editors just don't display it. Alternately, if you're running Linux or Mac OS X or something, you can open the file up in vim and just remove that character.
Recommended Posts