{"id":510,"date":"2026-08-09T16:02:08","date_gmt":"2026-08-09T22:02:08","guid":{"rendered":"https:\/\/tekweis.com\/?p=510"},"modified":"2026-08-09T16:07:04","modified_gmt":"2026-08-09T22:07:04","slug":"wordpress-asking-for-ftp-credentials-again","status":"publish","type":"post","link":"https:\/\/tekweis.com\/index.php\/2026\/08\/09\/wordpress-asking-for-ftp-credentials-again\/","title":{"rendered":"WordPress asking for FTP credentials again"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Today I noticed an alert that WordPress version 7.0.3 was available. I decided to update, but got the annoying prompt to enter FTP credentials. Usually, just running <strong>chown -R wwwrun \/srv\/www\/htdocs<\/strong> would usually fix the issue, but not today. After digging around, I found I needed to add three lines to my <strong>wpconfig.php<\/strong> config file above the <strong>\/* That&#8217;s all, stop editing! Happy publishing. *\/<\/strong> line which resolved the issue.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">define( &#8216;FS_CHMOD_DIR&#8217;, 0755);<br>define( &#8216;FS_CHMOD_FILE&#8217;, 0644);<br>define( &#8216;FS_METHOD&#8217;, &#8216;direct&#8217;);<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The final line was the real kicker that made the function work again. FS_METHOD allows WordPress to write files directly to the filesystem without using FTP or SSH. Never needed it before, guess this is something new. Fun in the world of self-hosting.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"632\" height=\"156\" src=\"https:\/\/tekweis.com\/wp-content\/uploads\/2026\/08\/WP-FS-Method.png\" alt=\"\" class=\"wp-image-512\" srcset=\"https:\/\/tekweis.com\/wp-content\/uploads\/2026\/08\/WP-FS-Method.png 632w, https:\/\/tekweis.com\/wp-content\/uploads\/2026\/08\/WP-FS-Method-300x74.png 300w\" sizes=\"auto, (max-width: 632px) 100vw, 632px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">All is good now, and I can now update my boring WordPress site again.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today I noticed an alert that WordPress version 7.0.3 was available. I decided to update, but got the annoying prompt to enter FTP credentials. Usually, just running chown -R wwwrun \/srv\/www\/htdocs would usually fix the issue, but not today. After digging around, I found I needed to add three lines to my wpconfig.php config file\u2026 <span class=\"read-more\"><a href=\"https:\/\/tekweis.com\/index.php\/2026\/08\/09\/wordpress-asking-for-ftp-credentials-again\/\">Read More: WordPress asking for FTP credentials again &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-510","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/posts\/510","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/comments?post=510"}],"version-history":[{"count":3,"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/posts\/510\/revisions"}],"predecessor-version":[{"id":517,"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/posts\/510\/revisions\/517"}],"wp:attachment":[{"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/media?parent=510"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/categories?post=510"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/tags?post=510"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}