{"id":5250,"date":"2019-06-14T13:01:35","date_gmt":"2019-06-14T11:01:35","guid":{"rendered":"https:\/\/assistance.groupemagiconline.com\/?post_type=ht_kb&#038;p=5250"},"modified":"2019-07-17T12:21:30","modified_gmt":"2019-07-17T10:21:30","slug":"erreur-apache","status":"publish","type":"ht_kb","link":"https:\/\/assistance.groupemagiconline.com\/en\/knowledge-base\/erreur-apache\/","title":{"rendered":"Apache error"},"content":{"rendered":"<h2 lang=\"fr\">Error 401 Unauthorized<\/h2>\n<p class=\"firstHeading\" lang=\"fr\">This error indicates that the person did not authenticate correctly.<\/p>\n<h2 class=\"firstHeading\" lang=\"fr\">Error 403 Forbidden<\/h2>\n<p class=\"firstHeading\" lang=\"fr\">This error indicates that the server is not allowed to answer your request. It also indicates that the page you are looking for cannot be found.<\/p>\n<h2 lang=\"fr\">Error 404 Not Found<\/h2>\n<p lang=\"fr\">This error occurs when the typed URL points to a non-existent file. This is often due to either a non-existent file or a wrong input of the address.<\/p>\n<h2 lang=\"fr\">Error 500 Internal Server Error<\/h2>\n<div id=\"bodyContent\" class=\"mw-body-content\">\n<div id=\"mw-content-text\" class=\"mw-content-ltr\" dir=\"ltr\" lang=\"fr\">\n<p>First of all, check on\u00a0<a class=\"urlextern\" href=\"https:\/\/travaux.magic.fr\/\" target=\"_blank\" rel=\"noopener\">the works page<\/a>\u00a0that there is not a global incident in progress that could impact your site. If there is no incident in progress, it is most likely a problem related to your site itself and its programming.<\/p>\n<p>If you have a 500 error that appears on your site after putting a .htaccess file think to check first the syntax errors, and if you have a\u00a0<b>RewriteBase<\/b>\u00a0and that this one is de-commented.<\/p>\n<p>This error may be related to Apache. Most of the time, it comes from a wrong directive in the .htaccess file of your website.<\/p>\n<p>You can analyze the error.log file available in your hosting directory. To retrieve the absolute path of this file, use the <strong>phpinfo()<\/strong>.<\/p>\n<p>In order to ensure a good use of .htaccess files, we advise you to consult specialized sites, which you can find very easily with a search engine.<\/p>\n<h3>Possible causes of error 500<\/h3>\n<\/div>\n<\/div>\n<div class=\"level1\">\n<p>Our shared servers constantly monitor the integrity of the shared resources. These monitors are the guarantors of the quality of service provided because they prevent most abuses by ensuring that a site cannot use too many resources to the detriment of other hosted sites.<\/p>\n<p>Several parameters are monitored by these monitors and can cause your script to stop\u00a0<acronym title=\"Hypertext Preprocessor\">PHP<\/acronym>\u00a0:<\/p>\n<ul>\n<li class=\"level1\">\n<div class=\"li\"><strong>Too long a turnaround time<\/strong>\u00a0: if your script\u00a0<acronym title=\"Hypertext Preprocessor\">PHP<\/acronym>\u00a0takes more than 30 seconds, then it runs the risk of being killed by the system. If you get a 500 error after a long page load time you are probably in this situation<\/div>\n<\/li>\n<\/ul>\n<ul>\n<li class=\"level1\">\n<div class=\"li\"><strong>Too much memory consumed<\/strong>\u00a0: as soon as your script\u00a0<acronym title=\"Hypertext Preprocessor\">PHP<\/acronym>\u00a0consumes more than 128 MB of RAM, it may be stopped by the system. This usually results in an immediate 500 error, with no prior loading time.<\/div>\n<\/li>\n<\/ul>\n<ul>\n<li class=\"level1\">\n<div class=\"li\"><strong>Too much CPU consumed<\/strong>\u00a0If your script uses the CPU too intensively, it may be killed by the system. If the 500 errors occur rather randomly, you may be in this situation.<\/div>\n<\/li>\n<\/ul>\n<ul>\n<li class=\"level1\">\n<div class=\"li\"><strong>Too many processes\u00a0<acronym title=\"Hypertext Preprocessor\">PHP<\/acronym>\u00a0simultaneous<\/strong>\u00a0In shared hosting, we are obliged to limit the number of processes\u00a0<acronym title=\"Hypertext Preprocessor\">PHP<\/acronym>\u00a0launched simultaneously by a site; indeed, without this limitation, resources could quickly become saturated and all hosted sites impacted. A frequent case is the display of images through\u00a0<acronym title=\"Hypertext Preprocessor\">PHP<\/acronym>\u00a0(of the type\u00a0<code>image.php?crc=\/images\/monimg.jpg<\/code>\u00a0): when the page is displayed, there are as many processes\u00a0<acronym title=\"Hypertext Preprocessor\">PHP<\/acronym>\u00a0launched than images. This is a bad way of programming and in any case incompatible with shared hosting.<\/div>\n<\/li>\n<\/ul>\n<ul>\n<li class=\"level1\">\n<div class=\"li\">A file\u00a0<em>.htaccess<\/em>\u00a0malformed: Check that your<acronym title=\"Uniform Resource Locator\">URL<\/acronym>\u00a0Rewriting are correct, that you do not use a\u00a0<em>php_value<\/em>and that you have not inserted any unwanted characters using an unsuitable text editor (e.g. WordPad).<\/div>\n<\/li>\n<\/ul>\n<\/div>\n<h3 class=\"sectionedit2\">Remedy the 500 error<\/h3>\n<div class=\"level1\">\n<p>Of course, each case is unique and requires its own investigation. Below we give you some tips for verification:<\/p>\n<ul>\n<li class=\"level1\">\n<div class=\"li\">If the error occurs\u00a0<strong>after a long loading time<\/strong>If your script establishes connections to another web site, and that site is down, then your site may be down. For example, if your script establishes connections with another website, and that website is unavailable, then your website itself may be unavailable. So check for any external element: inclusion of a remote page\/image,\u00a0<strong>flows\u00a0<acronym title=\"Rich Site Summary\">RSS<\/acronym><\/strong>,\u00a0<strong>meters<\/strong>\u00a0and guestbooks, etc.; identify the problematic resource and remove it from your page, or modify your programming to take into account the possibility of the resource being unavailable. A common case is also\u00a0<strong>the call for\u00a0<acronym title=\"Application Programming Interface\">API<\/acronym><\/strong>\u00a0like Google or Yahoo. Don't forget that in shared hosting the IPs are shared, if other customers abuse these\u00a0<acronym title=\"Application Programming Interface\">API<\/acronym>The IP may be temporarily blocked and your site may be impacted.<\/div>\n<\/li>\n<\/ul>\n<ul>\n<li class=\"level1\">\n<div class=\"li\">Identify a possible\u00a0<strong>programming problem<\/strong>. Check that you have not made an infinite loop, or code that could generate a programming problem. Go through your code line by line, commenting step by step on the programming blocks in order to identify the line(s) that cause problems. Check in particular that you do not\u00a0<strong>no remote include\u00a0<acronym title=\"Hyper Text Transfer Protocol\">HTTP<\/acronym><\/strong>\u00a0and you only work with local disk paths.<\/div>\n<\/li>\n<\/ul>\n<ul>\n<li class=\"level1\">\n<div class=\"li\"><strong>Check your databases<\/strong>\u00a0: Log in to your\u00a0<em>PhpMyAdmin<\/em>\u00a0and make sure that the size of your tables, the session table, statistics table, log table, etc., has not reached disproportionate proportions. Empty the affected tables and see\u00a0<a class=\"wikilink1\" title=\"Maintain your MySQL databases\" href=\"https:\/\/assistance.groupemagiconline.com\/en\/knowledge-base\/gerer-mes-bases-de-donnees\/\" target=\"_blank\" rel=\"noopener\">this article to maintain your MySQL databases<\/a>.<\/div>\n<\/li>\n<\/ul>\n<ul>\n<li class=\"level1\">\n<div class=\"li\">Check the features of\u00a0<strong>your scripts\u00a0<acronym title=\"Hypertext Preprocessor\">PHP<\/acronym><\/strong>\u00a0Does your site make\u00a0<strong>image processing<\/strong>does it manage\u00a0<strong>visit statistics<\/strong>a\u00a0<strong>Live Chat<\/strong>Does it send large numbers of e-mails, does it offer large files for download, and more generally, is it likely to generate actions that may consume many (too many) resources? In general, you should\u00a0<strong>systematically disable any logging\/stats\/tracking system<\/strong>\u00a0incompatible with a shared environment.<\/div>\n<\/li>\n<\/ul>\n<p>If despite everything, your site is too greedy and continues to generate errors, the most reasonable solution is to consider migrating the site to a <a href=\"https:\/\/www.magic.fr\/serveur-cloud-serveur-virtuel-prive\/\" target=\"_blank\" rel=\"noopener\">private server<\/a> or a\u00a0<a class=\"urlextern\" title=\"http:\/\/www.nuxit.com\/serveur-dedie\/\" href=\"https:\/\/www.magic.fr\/serveurs-dedies\/\" target=\"_blank\" rel=\"noopener\">dedicated server<\/a><\/p>\n<\/div>\n<h2>Error 503 Service Unavailable<\/h2>\n<p>This error results in an unavailability of the service. It occurs most often when a server side overload occurs and in this case it can be temporary. It can also occur as a result of a misconfiguration of DNS pointing.<\/p>\n<p>First of all, check on\u00a0<a class=\"urlextern\" href=\"https:\/\/travaux.magic.fr\/\" target=\"_blank\" rel=\"noopener\">the works page<\/a>\u00a0that there is not a global incident in progress that could impact your site. If there is an incident in progress, there is no need to contact us, our team is already working on the problem.<\/p>\n<p>If there is no incident, it is most likely a problem with your site itself when a site encounters\u00a0<strong>Abnormally high traffic<\/strong>\u00a0:<\/p>\n<ul>\n<li class=\"level1\">\n<div class=\"li\"><strong>Legitimate traffic peak<\/strong>\u00a0: in the case of a TV or radio broadcast, a buzz on social networks, etc.<\/div>\n<\/li>\n<\/ul>\n<ul>\n<li class=\"level1\">\n<div class=\"li\"><strong>DoS attack<\/strong>\u00a0Denial of service attacks aim to saturate the site's connection and make it unavailable. If your site is the victim of such an attack, you may encounter this error.<\/div>\n<\/li>\n<\/ul>\n<ul>\n<li class=\"level1\">\n<div class=\"li\"><strong>Programming anomaly<\/strong>\u00a0In some cases, your site may generate looping connections to itself (remote includes, etc.). Check your programming.<\/div>\n<\/li>\n<\/ul>\n<p>Whether it is legitimate or not, a large traffic peak cannot be absorbed by shared hosting, which remains a general public hosting mode for moderate use. If this need is recurrent, you should choose a <a href=\"https:\/\/www.magic.fr\/serveur-cloud-serveur-virtuel-prive\/\" target=\"_blank\" rel=\"noopener\">private server<\/a> or a\u00a0<a class=\"urlextern\" title=\"http:\/\/www.nuxit.com\/serveur-dedie\/\" href=\"https:\/\/www.magic.fr\/serveurs-dedies\/\" target=\"_blank\" rel=\"noopener\">dedicated server<\/a><\/p>\n<p>In any case this error should not persist over time.<\/p>","protected":false},"excerpt":{"rendered":"<p>Error 401 Unauthorized This error indicates that the person did not authenticate correctly. Error 403 Forbidden This error indicates that the server is not allowed to respond to your request. It also indicates that the page you are looking for cannot be found. Error 404 Not Found This error occurs when the URL address...<\/p>","protected":false},"author":52,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[26],"ht-kb-tag":[672],"class_list":["post-5250","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-autres-services","ht_kb_tag-apache"],"_links":{"self":[{"href":"https:\/\/assistance.groupemagiconline.com\/en\/wp-json\/wp\/v2\/ht-kb\/5250","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/assistance.groupemagiconline.com\/en\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/assistance.groupemagiconline.com\/en\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/assistance.groupemagiconline.com\/en\/wp-json\/wp\/v2\/users\/52"}],"replies":[{"embeddable":true,"href":"https:\/\/assistance.groupemagiconline.com\/en\/wp-json\/wp\/v2\/comments?post=5250"}],"version-history":[{"count":0,"href":"https:\/\/assistance.groupemagiconline.com\/en\/wp-json\/wp\/v2\/ht-kb\/5250\/revisions"}],"wp:attachment":[{"href":"https:\/\/assistance.groupemagiconline.com\/en\/wp-json\/wp\/v2\/media?parent=5250"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/assistance.groupemagiconline.com\/en\/wp-json\/wp\/v2\/ht-kb-category?post=5250"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/assistance.groupemagiconline.com\/en\/wp-json\/wp\/v2\/ht-kb-tag?post=5250"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}