Help!

Or search support forum

What's Global Moxie?

Global Moxie specializes in mobile design strategy and user experience for a multiscreen world. We offer consulting services, training, and product-invention workshops to help creative organizations build tapworthy mobile apps and effective websites. We're based in Brooklyn, NY. Learn more.

On Shelves

Books by Josh Clark

Tapworthy: Designing Great iPhone Apps

Best iPhone Apps: The Guide for Discriminating Downloaders

iWork ’09: The Mising Manual

Moxiemail

Enter your e-mail to receive occasional updates:

"Internal Server Error" or "Premature End of Script Headers"

Important: Sales, service, and support of Big Medium are no longer offered. More details.

Question

Why do I get a “500: Internal Server Error” or “Premature End of Script Headers” message when I connect to Big Medium?

Answer

This is a generic message that tells us only that the web server had trouble running the requested script. There are a wide variety of possible reasons for this message, but this checklist addresses the most common:

Upload moxiebin files as plain text

When uploading the files to your server’s moxiebin directory, be sure that your FTP client program is set to “ASCII” or “plain text” mode. Do not use an “automatic” or “auto-detect” mode for the moxiebin files.

Unix-based servers: Check file permissions

Make sure that the moxiebin directory has permission set to chmod 0755. Likewise, make sure that all of the files in the moxiebin directory whose names end with “.cgi” are set to chmod 0755.

Check the Perl path

For Unix-based servers (and Windows servers running Apache instead of IIS), make sure that the path to Perl is correct on the first line of the files ending with “.cgi” in the moxiebin directory.

If you’re not sure what the Perl path should be, check with your hosting company or server administrator.

For example, if your Unix-based Perl path is /usr/bin/perl, then the first line of all .cgi files should be:
#!/usr/bin/perl -Tw

If your Windows Perl path is C:\perl\bin\perl.exe then the first line of all of the .cgi files should be:
#!C:\perl\bin\perl.exe -w

Windows servers: Configure .cgi to run Perl

If you’re running Big Medium on a Windows IIS server, the server may not yet be configured to run .cgi scripts. Set up a .cgi mapping for the server.

Still got the problem?

If you continue to get the error after making this change, please consult your server’s error logs to gather more information about the cause of the error. If you don’t have access to your error logs, ask your hosting provider if they can look up the information for you. Once you have the info in hand, contact me with the information that you’ve uncovered.

Download Big Medium
Try it free for 30 days, or buy to unlock.

A Better Place

“The App Store would be a better place if every app designer read Tapworthy.
—Juri Pakaste, developer

Tapworthy is far and away the best book on the subject.”
—Mike Rundle, iOS designer, Flyosity

Tapworthy is a great read for every iPhone app maker!”
—Sophia Teutschler, iPhone developer

More praise for Tapworthy