{"id":8777,"date":"2015-09-01T03:09:28","date_gmt":"2015-09-01T02:09:28","guid":{"rendered":"https:\/\/wp.okra.host\/article\/storing-ftp-credentials-for-automatic-updates\/"},"modified":"2021-03-07T14:51:49","modified_gmt":"2021-03-07T13:51:49","slug":"storing-ftp-credentials-for-automatic-updates","status":"publish","type":"ht_kb","link":"https:\/\/kb.okra.host\/de\/article\/storing-ftp-credentials-for-automatic-updates\/","title":{"rendered":"Storing FTP credentials for automatic updates"},"content":{"rendered":"<h2 id=\"overview\" >\u00dcbersicht<\/h2>\n<p>WordPress\u00a0periodically deploys updates to secure flaws within its code or provide general enhancements. These updates are rolled out in the form of releases that, as of WordPress 3.7, can occur in the <a href=\"https:\/\/codex.wordpress.org\/Configuring_Automatic_Background_Updates\">background automatically<\/a> without requiring user intervention. If permissions prohibit, WordPress cannot perform an automatic update and require user intervention to <a href=\"https:\/\/kb.okra.host\/de\/wordpress\/updating-wordpress\/\">manually update<\/a>.<\/p>\n<h2 id=\"solution\" >L\u00f6sung<\/h2>\n<p style=\"text-align: left\">Edit <code>wp-konfiguration.php<\/code> located within the <a href=\"https:\/\/kb.okra.host\/de\/web-content\/where-is-site-content-served-from\/\">Dokumentenstamm<\/a> of your WordPress domain or base of the subdirectory if located elsewhere under a domain. Add the following 3 lines to the end of your configuration file:<\/p>\n<pre style=\"text-align: left\">\/** Setup FTP Details **\/\r\ndefine(\"FTP_HOST\", \"localhost\");\r\ndefine(\"FTP_USER\", \"your-ftp-username\");\r\ndefine(\"FTP_PASS\", \"your-ftp-password\");<\/pre>\n<p>Substitute, of course, <em>your-ftp-password<\/em> und <em>your-ftp-username<\/em> with your <a href=\"https:\/\/kb.okra.host\/de\/ftp\/accessing-ftp-server\/\">FTP credentials<\/a>.\u00a0FTP_HOST should remain the same (&#8220;<em>localhost<\/em>&#8220;).<\/p>\n<h2 id=\"caveats-warnings\" >Caveats\/Warnings<\/h2>\n<p>Since your FTP configuration, which is equivalent to control panel credentials, is stored in a <code>wp-konfiguration.php<\/code> file accessible by the web server, if an attacker gains unauthorized access to your WordPress installation, then the attacker will also have access to view the credentials inside <code>wp-konfiguration.php<\/code>. For this reason, it is advised that if you choose this route, create a new user within the control panel (<strong>Benutzer<\/strong> &gt; <strong>Benutzer hinzuf\u00fcgen<\/strong>) to manage web files apart from the primary user on the account. In the event this account is compromised, then the attacker would only have access to the FTP account for that user, and not the master control panel login.\u00a0<em>And even then, if the account were hacked, an attacker would already be able to snoop those files!<\/em><\/p>","protected":false},"excerpt":{"rendered":"<p>Overview WordPress\u00a0periodically deploys updates to secure flaws within its code or provide general enhancements. These updates are rolled out in the form of releases that, as of WordPress 3.7, can occur in the background automatically without requiring user intervention. If permissions prohibit, WordPress cannot perform an automatic update and require&#8230;<\/p>","protected":false},"author":1,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[69],"ht-kb-tag":[],"class_list":["post-8777","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-wordpress"],"_links":{"self":[{"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb\/8777","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/comments?post=8777"}],"version-history":[{"count":1,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb\/8777\/revisions"}],"predecessor-version":[{"id":8778,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb\/8777\/revisions\/8778"}],"wp:attachment":[{"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/media?parent=8777"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb-category?post=8777"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb-tag?post=8777"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}