Quite often, owners of hosting suffer because of the constant occurrence of the error message 500 (Internal Server Error).It is, as it is called, many are simply poisons life.Now we will try to briefly understand the essence of the situation and see how you can get rid of the error in the future.
Error Internal Server Error: what is it?
So, let us start from the very meaning of the phrase.The system (directory) bugs Windows (and not only) there is an error at number 500, corresponding to the computer terms Internal Server Error.Translation of this phrase is an internal server error, associated with the status of the protocol HTTP.
In fact, the error means that either the server software does not work or works, but one or more of its components give failures in the form of refusal to client requests, such as search engine or Internet browser.
causes of errors
Speaking error Internal Server Error in the broadest sense, it is necessary to take into account that it can occur at multiple sites or resources written by a completely different CMS.Here, by the way, you need to differentiate its causes.
Very often, such a situation can be observed on sites like WordPress, OpenCart, Joomla and others. If the management structure, like WordPress, in the construction site is not used, perhaps, the reason lies in the fact that the hosting experience problems when connecting the wrong PHP-extensions or site upon request returns invalid HTTP-headers, which can not be recognized by your server.
No less common cause of error Internal Server Error is the lack of correct access rights.For example, if a PHP script files that are placed on hosting, have the right to access 777, it may be that they simply blocked the execution server, and the resulting error message.
also one of the reasons may be quite a long script.The fact that PHP-limit runtime act not only against host, such limits may be exhibited, and on the server side.In other words, it is somewhat reminiscent of a time-out operation.When the server within a specified time there is no response to the inquiry, it simply blocks the execution of the script.
In some cases, the error Internal Server Error may occur when there is hosting exceeding the limit memory use.Simply put, the script for execution requires more regulations, and because this limit is set not only in PHP, often restrictions on the consumption of resources by all executable scripts.
Finally, one of the most common situations of error Internal Server Error - the content of directives incorrect file .htaccess (by the way, when using WordPress engine it is most common).Now we have come close to finding a solution for each situation.
Error Internal Server Error: How to Fix the simplest ways
First, see what you can do when it detects incorrect permissions.In this case, the access rights to edit the contents of the 777 allows for everybody, which undoubtedly affects the security.In this situation, you must change them by applying to the value of 755 folders, file scripts - 600, and all steel data files - 644.
Too long work The script can also try to increase the wait time, however,there is a catch.This solution may work on a dedicated server or VPS (Virtual Private Server), and in the case of shared hosting is no effect.
As for memory consumption overvalued compared with the restrictions that apply to host, then you can only advise to contact support or simply change of hosting provider, which limits are not as stringent.
Now a few words about the file .htaccess.The fact that it involves the use of a very strict syntax, if these settings were some mistakes or inaccuracies avoid error Internal Server Error fail.Here it is necessary to proceed as follows.First you need to check the existence of the file in the root directory of a site, and then making a backup copy, delete entirely.If, after this procedure, the site is operational again, the problem is in the file .htaccess, which will have to check for errors in syntax.
problems with the engine WordPress
with WordPress, the situation is worse.The fact that the engine is able to overwrite the original file .htaccess, is responsible for controlling access to files and folders hosting, and because the original file must be created only once, and certainly not in WordPress!
The easiest way to remedy this situation is to disable WordPress themes and use instead of any other.If the problem persists, the matter is in the theme itself - if not, you need to gradually disable WordPress plugins and check which of them affect the performance.
In some cases, you may need to upgrade to the latest version of WordPress and disable overwriting the file.To start downloading to a computer terminal original file .htaccess, and then access the site on the path to the folder / wp-admin / includes / and then loads the file misc.php, you want to open, for example, in the standard "Notepad" (or anyother text editor) and find the line functions «function save_mod_rewrite_rules».Now the function to line «return insert_with_markers ($ htaccess_file, 'WordPress', $ rules);» and replace it on the «return true;» (of course, all the commands are written without quotation marks).We can only save your changes and upload the new file hosting with the replacement of the old file misc.php.
disadvantage of this method is only that in this case disconnected update WordPress.When connecting the plug-ins they have to work, of course, will not.
Conclusion In principle, that is to say, the most common causes of errors and methods of elimination.In fact, the reason that the way to deal with such situations can be a lot, so I will have to analyze the situation in each particular case, and only then choose what kind of technique used for error correction.