{"id":5,"date":"2019-02-24T21:32:26","date_gmt":"2019-02-24T21:32:26","guid":{"rendered":"https:\/\/springhead.web-max.ca\/?p=5"},"modified":"2019-02-24T21:35:02","modified_gmt":"2019-02-24T21:35:02","slug":"please-provide-a-valid-username-on-install","status":"publish","type":"post","link":"https:\/\/springhead.web-max.ca\/index.php\/2019\/02\/24\/please-provide-a-valid-username-on-install\/","title":{"rendered":"&#8220;Please provide a valid username.&#8221; on WordPress install"},"content":{"rendered":"\n<p>So setting up this site, I was fighting with the error &#8220;Please provider a valid username&#8221; on the initial install. Stackoverflow etc pointed to just creating the wp-config by hand and moving on.<\/p>\n\n\n\n<p>After following those guidelines, I then hit the error &#8220;Please provide a valid username.&#8221; when trying to complete install step 2.<\/p>\n\n\n\n<p>After looking around, I decided just to add a phpinfo() call in the install.php to see what was going on.<\/p>\n\n\n\n<p>Looking a the return data, I notice I&#8217;m not getting any $_POST data back, which wouldn&#8217;t help.<\/p>\n\n\n\n<p>So a few more hunts, and I find the stupid issue that post_max_size was set to 25MB. For the php.ini it doesn&#8217;t like this, and even though it shows &#8220;correctly&#8221; in the phpinfo() output, this will cause the size to parse as 0 and block any $_POST data. Changing it to 25M fixed the issue.<\/p>\n\n\n\n<p>Second issue that cause some fun was getting used to the FPM\/FastCGI version of PHP, which requires a separate restart to get the php.ini file changes working.<\/p>\n\n\n\n<p>For that you need <strong>systemctl restart php-fpm.service<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>So setting up this site, I was fighting with the error &#8220;Please provider a valid username&#8221; on the initial install. Stackoverflow etc pointed to just creating the wp-config by hand and moving on. After following those guidelines, I then hit the error &#8220;Please provide a valid username.&#8221; when trying to complete install step 2. After [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/springhead.web-max.ca\/index.php\/wp-json\/wp\/v2\/posts\/5"}],"collection":[{"href":"https:\/\/springhead.web-max.ca\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/springhead.web-max.ca\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/springhead.web-max.ca\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/springhead.web-max.ca\/index.php\/wp-json\/wp\/v2\/comments?post=5"}],"version-history":[{"count":3,"href":"https:\/\/springhead.web-max.ca\/index.php\/wp-json\/wp\/v2\/posts\/5\/revisions"}],"predecessor-version":[{"id":8,"href":"https:\/\/springhead.web-max.ca\/index.php\/wp-json\/wp\/v2\/posts\/5\/revisions\/8"}],"wp:attachment":[{"href":"https:\/\/springhead.web-max.ca\/index.php\/wp-json\/wp\/v2\/media?parent=5"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/springhead.web-max.ca\/index.php\/wp-json\/wp\/v2\/categories?post=5"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/springhead.web-max.ca\/index.php\/wp-json\/wp\/v2\/tags?post=5"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}