Support » Installing WordPress » 5 minute Word Press Install and Username rejected in form to install

  • Resolved jeraldweinstein

    (@jeraldweinstein)


    System specifications

    Ubuntu 18.04
    Self Hosted WP Virtual Private Server on Digital Ocean droplet
    Running SSL (Certbot)
    Mysql
    PHP7.2-fpm
    Nginx 1.6.1

    Website:
    [ redundant link removed ]

    IP address:
    161.35.226.176

    Manually configured wp-config.php with MySQL databasename, username, password
    after encountering “Empty tables” error message but that problem is corrected.

    No firewall activated

    Currently, I am at the final install step ( the famous 5 minute install).

    The problem is that the installation cannot get past this error message:

    “Please provide a valid username”

    I have read other posts related to this error and this one is not found on

    Installing Word Press Forum website.

    Thank you very much for your assistance.

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • I checked into the install.php file in wp-admin and
    this is the point in that file where I am running up against
    this install stopping point.

    Can anyone explain this and what needs to be done to
    fix this error in the form submission?

    // Check email address.
    $error = false;
    if ( empty( $user_name ) ) {
    // TODO: Poka-yoke.
    display_setup_form( __( ‘Please provide a valid username.’ ) );`
    $error = true;

    • This reply was modified 5 months, 1 week ago by jeraldweinstein. Reason: formatting

    Stupid question probably, but did you put a username in?

    Yes, on numerous attempts.

    No such thing as a ….

    I’m wondering if there is any way out of this pickle without nuking the

    droplet and creating a new one from scratch.

    • This reply was modified 5 months, 1 week ago by jeraldweinstein. Reason: Anecdotal comment

    I did not experience this specific problem myself but, whenever I have had odd problems such as this, I have found that most of the time it’s a matter of permissions.

    Have you checked permissions in your WP folder structure?

    Here is my current permission on the directory that contains the
    source file wp-config.php that is the installer.

    drwxr-xr-x 9 sweetbhing www-data 4.0K Aug 21 14:59 wp-admin

    What user would I be if I am using a form on the internet?
    Possibly www-data?

    Sounds like trying to change sweetbhing to www-data would help?

    Thanks.

    @jeraldweinstein that might be the problem: www-data is the group associated with the web server. The first “-” indicates that www-data does not have permissions to write.

    I have 755 permissions for the whole WP folder structure, however my installation is only on a localhost for now.

    Please note, I would ensure permissions are appropriate for a live environment. I have not yet researched best practice for security and permissions in a live environment so I am unable to provide advice.

    Thank you dwhite.
    I tried changing the permissions with no luck.

    At this point, I think it may be a MySQL issue.

    I will attempt to re-install MySQL and WordPress and see what happens.

    Ok, good luck.

    I also think it could be a MySQL issue…

    dyates63

    (@dyates63)

    Jerald, I don’t know if you’ve corrected that issue yet but here is a link to a similar issue as you have from a while back. The user corrected the issue by making an adjustment to his .htaccess file: https://wordpress.org/support/topic/please-provide-a-valid-username-2/

    All who replied to myquestion, I resolved this by deleting the droplet and reinstalling the mysql, nginx and php7.2-fpm services.

    It was the only option left after many attempted workarounds.

    The problem is no longer a problem.

    Thank you.

Viewing 11 replies - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.