{"id":228,"date":"2016-08-27T02:22:06","date_gmt":"2016-08-27T02:22:06","guid":{"rendered":"https:\/\/wiki.samuelchopard.ch\/?p=228"},"modified":"2019-03-18T14:29:26","modified_gmt":"2019-03-18T13:29:26","slug":"prevent-wordpress-from-asking-for-ftp-credentials-to-install-update-plugins","status":"publish","type":"post","link":"https:\/\/samuelchopard.ch\/wiki\/library\/prevent-wordpress-from-asking-for-ftp-credentials-to-install-update-plugins\/","title":{"rendered":"Prevent WordPress from asking for FTP credentials to install\/update plugins"},"content":{"rendered":"<p><!--more--><\/p>\n<p>Add the following code to wp-config.php. <strong>Change the credentials below with the ones you use to connect to your FTP server.<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\">define( 'FTP_USER', 'username' );\ndefine( 'FTP_PASS', 'password' );\ndefine( 'FTP_HOST', 'ftp.example.org:21' );\ndefine('FTP_SSL', false);<\/pre>\n<p><strong>Note:<\/strong> change <em>FTP_SSL<\/em> to <strong><em>true<\/em><\/strong> is your FTP connection must be done via SSL (SFTP\/TLS).<\/p>\n<p>Source: <a target=\"_blank\" href=\"https:\/\/wordpress.org\/support\/topic\/wp-asking-for-my-ftp-credentials-to-install-plugins\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/wordpress.org\/support\/topic\/wp-asking-for-my-ftp-credentials-to-install-plugins<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"Add the following code to wp-config.php. Change the credentials below with the ones you use to connect to your FTP [...]","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[68,115,144,217,314,330],"class_list":["post-228","post","type-post","status-publish","format-standard","hentry","category-wordpress","tag-credentials","tag-ftp","tag-install","tag-plugin","tag-updates","tag-wp-config-php"],"_links":{"self":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts\/228","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/comments?post=228"}],"version-history":[{"count":1,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts\/228\/revisions"}],"predecessor-version":[{"id":54920,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts\/228\/revisions\/54920"}],"wp:attachment":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/media?parent=228"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/categories?post=228"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/tags?post=228"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}