{"id":6986,"date":"2017-03-23T08:29:25","date_gmt":"2017-03-23T08:29:25","guid":{"rendered":"https:\/\/jsmwebsolutions.com\/blog\/?p=6986"},"modified":"2017-03-23T08:32:01","modified_gmt":"2017-03-23T08:32:01","slug":"how-to-fix-magento-500-internal-server-error","status":"publish","type":"post","link":"https:\/\/jsmwebsolutions.com\/blog\/how-to-fix-magento-500-internal-server-error\/","title":{"rendered":"How to fix Magento 500 Internal Server Error"},"content":{"rendered":"<p style=\"border: 0px; margin: 0px 0px 1.5em; outline: 0px; padding: 0px; color: rgb(58, 58, 58); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 17px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\">\n\tIf you are installing Magento and you have uploaded your Magento files to your host and just when you are about to run the Installation wizard, &nbsp;you get &ldquo;500 Internal Server Error&rdquo;.&nbsp;This error is&nbsp;because&nbsp;of the inappropriate file permissions.\n<\/p>\n<p style=\"border: 0px; margin: 0px 0px 1.5em; outline: 0px; padding: 0px; color: rgb(58, 58, 58); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 17px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\">\n\tTo fix this error, &nbsp;if you are on cpanel hosting, Error Log will really help solving\/fixing this error.\n<\/p>\n<p style=\"border: 0px; margin: 0px 0px 1.5em; outline: 0px; padding: 0px; color: rgb(58, 58, 58); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 17px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\">\n\tNormally changing the file permission on index.php file will solve this problem. If you check the error log in your cpanel, you will find &ldquo;\/index.php&rdquo; is writeable by group\n<\/p>\n<p style=\"border: 0px; margin: 0px 0px 1.5em; outline: 0px; padding: 0px; color: rgb(58, 58, 58); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 17px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\">\n\tSo in your cpanel, go to File Manager and then change the file permission of index.php file from 664 to 644. &nbsp;Also change the permissions of downloader\/index.php file to 644 as well otherwise when you will try to access System &gt; Magento Connect &gt;Magento Connect Manager (after magento installation) by logging to magento admin, &nbsp;you will get 500 Internal Server Error.\n<\/p>\n<p style=\"border: 0px; margin: 0px 0px 1.5em; outline: 0px; padding: 0px; color: rgb(58, 58, 58); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 17px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\">\n\tAnd if magento is installed in a folder e.g yourdomain.com\/magento, in this case you will also change the permission on magento folder to 644.\n<\/p>\n<p style=\"border: 0px; margin: 0px 0px 1.5em; outline: 0px; padding: 0px; color: rgb(58, 58, 58); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 17px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\">\n\tYou can also fix this error using SSH by running the following command\n<\/p>\n<blockquote style=\"border-width: 0px 0px 0px 5px; border-top-style: initial; border-right-style: initial; border-bottom-style: initial; border-left-style: solid; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: rgba(0, 0, 0, 0.0470588); border-image: initial; margin: 0px 0px 1.5em; outline: 0px; padding: 20px; quotes: &quot;&quot; &quot;&quot;; font-size: 1.2em; font-style: italic; position: relative; color: rgb(58, 58, 58); font-family: &quot;Open Sans&quot;, sans-serif; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\">\n<p style=\"border: 0px; margin: 0px; outline: 0px; padding: 0px;\">\n\t\tfind . -type d -exec chmod 755 {} \\;<br \/>\n\t\tfind . -type f -exec chmod 644 {} \\;\n\t<\/p>\n<\/blockquote>\n<p style=\"border: 0px; margin: 0px 0px 1.5em; outline: 0px; padding: 0px; color: rgb(58, 58, 58); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 17px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\">\n\tThis will change the file permissions on all the folders to 755 and files to 644 and will fix the Internal Server Error.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are installing Magento and you have uploaded your Magento files to your host and just when you are about to run the Installation wizard, &nbsp;you get &ldquo;500 Internal&hellip;<\/p>\n","protected":false},"author":1,"featured_media":6992,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[13],"tags":[284],"class_list":["post-6986","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials-help-fix-bugs","tag-fix-magento-500-internal-server-error"],"rttpg_featured_image_url":{"full":["https:\/\/jsmwebsolutions.com\/blog\/wp-content\/uploads\/2017\/03\/Magento-500-Internal-Server-Error.jpg",349,145,false],"landscape":["https:\/\/jsmwebsolutions.com\/blog\/wp-content\/uploads\/2017\/03\/Magento-500-Internal-Server-Error.jpg",349,145,false],"portraits":["https:\/\/jsmwebsolutions.com\/blog\/wp-content\/uploads\/2017\/03\/Magento-500-Internal-Server-Error.jpg",349,145,false],"thumbnail":["https:\/\/jsmwebsolutions.com\/blog\/wp-content\/uploads\/2017\/03\/Magento-500-Internal-Server-Error-150x145.jpg",150,145,true],"medium":["https:\/\/jsmwebsolutions.com\/blog\/wp-content\/uploads\/2017\/03\/Magento-500-Internal-Server-Error-300x125.jpg",300,125,true],"large":["https:\/\/jsmwebsolutions.com\/blog\/wp-content\/uploads\/2017\/03\/Magento-500-Internal-Server-Error.jpg",349,145,false],"1536x1536":["https:\/\/jsmwebsolutions.com\/blog\/wp-content\/uploads\/2017\/03\/Magento-500-Internal-Server-Error.jpg",349,145,false],"2048x2048":["https:\/\/jsmwebsolutions.com\/blog\/wp-content\/uploads\/2017\/03\/Magento-500-Internal-Server-Error.jpg",349,145,false]},"rttpg_author":{"display_name":"Aj","author_link":"https:\/\/jsmwebsolutions.com\/blog\/author\/admin\/"},"rttpg_comment":0,"rttpg_category":"<a href=\"https:\/\/jsmwebsolutions.com\/blog\/category\/tutorials-help-fix-bugs\/\" rel=\"category tag\">Tutorials<\/a>","rttpg_excerpt":"If you are installing Magento and you have uploaded your Magento files to your host and just when you are about to run the Installation wizard, &nbsp;you get &ldquo;500 Internal&hellip;","_links":{"self":[{"href":"https:\/\/jsmwebsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/6986","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jsmwebsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jsmwebsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jsmwebsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jsmwebsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=6986"}],"version-history":[{"count":1,"href":"https:\/\/jsmwebsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/6986\/revisions"}],"predecessor-version":[{"id":6990,"href":"https:\/\/jsmwebsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/6986\/revisions\/6990"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/jsmwebsolutions.com\/blog\/wp-json\/wp\/v2\/media\/6992"}],"wp:attachment":[{"href":"https:\/\/jsmwebsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=6986"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jsmwebsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=6986"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jsmwebsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=6986"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}