Return to the homepage
Internal Links: About MePortfolioMy ResumeMy ServicesTutorialsContact Info
 

Internal Server Error - Micro Troubleshooting Guide


August 25th, 2007

Hello,

The first thing you should do whenever you get an Internal Server Error is to check the Error Log in your control panel, as this will provide good information for you to resolve the problem. (cPanel » Error Log)

Common Errors and Solutions:

Premature End of Script Headers
————–
Solution:
CGI/Perl Script missing the Context-Type variable. You should add it to your script. An example would be

:#!/usr/bin/perl
print “Content-type: text/plain\n\n”;
print “testing…\n”;

If this fails, your web host might be limiting the amount of processes you can run at the same time. If this is the case, only a support representative will be able to fix this by killing all the processes running on your account.

—-

Invalid command ‘php_flag’, perhaps mis-spelled or defined by a module not included in the server configuration
————–
Solution:
Your .htaccess file is trying to set php rules which isn’t allowed. You’ll have to move those rules to a new php.ini file (should be placed on /public_html). An example would with register_globals would be:

On .htaccess:
php_value register_globals on

On php.ini:
register_globals=On

So basically just delete the php_flag on your .htaccess file and move it to a php.ini which should be placed on the same directory your .htaccess file is.

—-

Directory is writeable by others /home/username/public_html/folder

Solution: This generally means that your folder/file permissions are incorrect (it also means that your server is using phpsuexec/cgi api).The typical permissions for a php file are “644″ and for a folder they are “755″.

—-

Posted in: General
Comments:

Post a comment

Name

Mail (never published)

Website

Comments



Article Locator
To find an article, type your search term below:



Article Archives
Hardware
Software
Linux
cPanel
Apache
Exim (MTA)
Windows
Helm
IIS
SmarterMail
Recommended Links
General / Uncategorized
Fun Stuff
Health
Quit Smoking
Industry News
Reviews
Tutorials
Troubleshooting
Web Development
My Weblog
Reflect
Carlos Caneja
DJ Nox
Jorge Pinto (InfoSec)
Fahim Farook
Paulo Abreu
Shashank Wagh