How to create or recover WordPress Admin user

How to take complete backup and shift elsewhere?

Its not recovered my account mate its been 10 days now

You should and NEED to get familiar with wp-cli. One google search would give you the answer.

https://developer.wordpress.org/cli/commands/user/update/

wp user update _admin_user_name_ --user_pass=new-password

I already tried but no luck

 wp user update USER --user_pass=MyNewPass --allow-root
Error: This does not seem to be a WordPress install.
Pass --path=`path/to/wordpress` or run `wp core download`.

You have to point it to your htdocs, use --path=. The fix is right there.

Got the error:

root@cloud49:~# --path=/var/www/bulkaccountshop.com/htdocs
-bash: --path=/var/www/bulkaccountshop.com/htdocs: No such file or directory
root@cloud49:~# --path='/var/www/bulkaccountshop.com/htdocs'
-bash: --path=/var/www/bulkaccountshop.com/htdocs: No such file or directory
root@cloud49:~# -bash: --path=/var/www/bulkaccountshop.com/htdocs: No such file or directory

No no, you gotta use --path with the wp-cli command.

It would be great if you can share me the proper procedure m not that familiar with that

Try this:

wp user update USER --user_pass=MyNewPass --path=/var/www/bulkaccountshop.com/htdocs --allow-root

Getting this output with this command line and am still unable to access the dashboard


PHP Warning:  Use of undefined constant ‘WP_MEMORY_LIMIT’ - assumed '‘WP_MEMORY_                      LIMIT’' (this will throw an Error in a future version of PHP) in phar:///usr/bin                      /wp/php/WP_CLI/Runner.php(1145) : eval()'d code on line 77
PHP Stack trace:
PHP   1. {main}() /usr/bin/wp:0
PHP   2. include() /usr/bin/wp:4
PHP   3. include() phar:///usr/bin/wp/php/boot-phar.php:8
PHP   4. WP_CLI\bootstrap() phar:///usr/bin/wp/php/wp-cli.php:23
PHP   5. WP_CLI\Bootstrap\LaunchRunner->process() phar:///usr/bin/wp/php/bootstr                      ap.php:75
PHP   6. WP_CLI\Runner->start() phar:///usr/bin/wp/php/WP_CLI/Bootstrap/LaunchRu                      nner.php:23
PHP   7. WP_CLI\Runner->load_wordpress() phar:///usr/bin/wp/php/WP_CLI/Runner.ph                      p:1107
PHP   8. eval() phar:///usr/bin/wp/php/WP_CLI/Runner.php:1145
PHP Warning:  Use of undefined constant ‘300M’ - assumed '‘300M’' (this will thr                      ow an Error in a future version of PHP) in phar:///usr/bin/wp/php/WP_CLI/Runner.                      php(1145) : eval()'d code on line 77
PHP Stack trace:
PHP   1. {main}() /usr/bin/wp:0
PHP   2. include() /usr/bin/wp:4
PHP   3. include() phar:///usr/bin/wp/php/boot-phar.php:8
PHP   4. WP_CLI\bootstrap() phar:///usr/bin/wp/php/wp-cli.php:23
PHP   5. WP_CLI\Bootstrap\LaunchRunner->process() phar:///usr/bin/wp/php/bootstr                      ap.php:75
PHP   6. WP_CLI\Runner->start() phar:///usr/bin/wp/php/WP_CLI/Bootstrap/LaunchRu                      nner.php:23
PHP   7. WP_CLI\Runner->load_wordpress() phar:///usr/bin/wp/php/WP_CLI/Runner.ph                      p:1107
PHP   8. eval() phar:///usr/bin/wp/php/WP_CLI/Runner.php:1145
Warning: Some code is trying to do a URL redirect. Backtrace:
#0  WP_CLI\Utils\wp_redirect_handler(https://) called at [/var/www/bulkaccountsh                      op.com/htdocs/wp-includes/class-wp-hook.php:288]
#1  WP_Hook->apply_filters(https://, Array ([0] => https://,[1] => 301)) called                       at [/var/www/bulkaccountshop.com/htdocs/wp-includes/plugin.php:208]
#2  apply_filters(wp_redirect, https://, 301) called at [/var/www/bulkaccountsho                      p.com/htdocs/wp-includes/pluggable.php:1216]
#3  wp_redirect(https://, 301) called at [/var/www/bulkaccountshop.com/htdocs/wp                      -content/plugins/force-https-littlebizzy/core/redirect.php:91]
#4  FHTTPS_Core_Redirect->redirect() called at [/var/www/bulkaccountshop.com/htd                      ocs/wp-content/plugins/force-https-littlebizzy/core/redirect.php:68]
#5  FHTTPS_Core_Redirect->start() called at [/var/www/bulkaccountshop.com/htdocs                      /wp-includes/class-wp-hook.php:286]
#6  WP_Hook->apply_filters(, Array ([0] => )) called at [/var/www/bulkaccountsho                      p.com/htdocs/wp-includes/class-wp-hook.php:310]
#7  WP_Hook->do_action(Array ([0] => )) called at [/var/www/bulkaccountshop.com/                      htdocs/wp-includes/plugin.php:465]
#8  do_action(plugins_loaded) called at [/var/www/bulkaccountshop.com/htdocs/wp-                      settings.php:374]
#9  require(/var/www/bulkaccountshop.com/htdocs/wp-settings.php) called at [phar                      :///usr/bin/wp/php/WP_CLI/Runner.php:1182]
#10 WP_CLI\Runner->load_wordpress() called at [phar:///usr/bin/wp/php/WP_CLI/Run                      ner.php:1107]
#11 WP_CLI\Runner->start() called at [phar:///usr/bin/wp/php/WP_CLI/Bootstrap/La                      unchRunner.php:23]
#12 WP_CLI\Bootstrap\LaunchRunner->process(WP_CLI\Bootstrap\BootstrapState Objec                      t ([WP_CLI\Bootstrap\BootstrapStatestate] => Array ())) called at [phar:///usr/b                      in/wp/php/bootstrap.php:75]
#13 WP_CLI\bootstrap() called at [phar:///usr/bin/wp/php/wp-cli.php:23]
#14 include(phar:///usr/bin/wp/php/wp-cli.php) called at [phar:///usr/bin/wp/php                      /boot-phar.php:8]
#15 include(phar:///usr/bin/wp/php/boot-phar.php) called at [/usr/bin/wp:4]
root@cloud49:~#

Try

php -d memory_limit=512M "$(which wp)" user update USER --user_pass=MyNewPass --path=/var/www/bulkaccountshop.com/htdocs --allow-root

Still getting similar error


PHP Warning:  Use of undefined constant ‘WP_MEMORY_LIMIT’ - assumed '‘WP_MEMORY_LIMIT’' (this will throw an Error in a future version of PHP) in phar:///usr/bin/wp/php/WP_CLI/Runner.php(1145) : eval()'d code on line 77
PHP Stack trace:
PHP   1. {main}() /usr/bin/wp:0
PHP   2. include() /usr/bin/wp:4
PHP   3. include() phar:///usr/bin/wp/php/boot-phar.php:8
PHP   4. WP_CLI\bootstrap() phar:///usr/bin/wp/php/wp-cli.php:23
PHP   5. WP_CLI\Bootstrap\LaunchRunner->process() phar:///usr/bin/wp/php/bootstrap.php:75
PHP   6. WP_CLI\Runner->start() phar:///usr/bin/wp/php/WP_CLI/Bootstrap/LaunchRunner.php:23
PHP   7. WP_CLI\Runner->load_wordpress() phar:///usr/bin/wp/php/WP_CLI/Runner.php:1107
PHP   8. eval() phar:///usr/bin/wp/php/WP_CLI/Runner.php:1145
PHP Warning:  Use of undefined constant ‘300M’ - assumed '‘300M’' (this will throw an Error in a future version of PHP) in phar:///usr/bin/wp/php/WP_CLI/Runner.php(1145) : eval()'d code on line 77
PHP Stack trace:
PHP   1. {main}() /usr/bin/wp:0
PHP   2. include() /usr/bin/wp:4
PHP   3. include() phar:///usr/bin/wp/php/boot-phar.php:8
PHP   4. WP_CLI\bootstrap() phar:///usr/bin/wp/php/wp-cli.php:23
PHP   5. WP_CLI\Bootstrap\LaunchRunner->process() phar:///usr/bin/wp/php/bootstrap.php:75
PHP   6. WP_CLI\Runner->start() phar:///usr/bin/wp/php/WP_CLI/Bootstrap/LaunchRunner.php:23
PHP   7. WP_CLI\Runner->load_wordpress() phar:///usr/bin/wp/php/WP_CLI/Runner.php:1107
PHP   8. eval() phar:///usr/bin/wp/php/WP_CLI/Runner.php:1145
Warning: Some code is trying to do a URL redirect. Backtrace:
#0  WP_CLI\Utils\wp_redirect_handler(https://) called at [/var/www/bulkaccountshop.com/htdocs/wp-includes/class-wp-hook.php:288]
#1  WP_Hook->apply_filters(https://, Array ([0] => https://,[1] => 301)) called at [/var/www/bulkaccountshop.com/htdocs/wp-includes/plugin.php:208]
#2  apply_filters(wp_redirect, https://, 301) called at [/var/www/bulkaccountshop.com/htdocs/wp-includes/pluggable.php:1216]
#3  wp_redirect(https://, 301) called at [/var/www/bulkaccountshop.com/htdocs/wp-content/plugins/force-https-littlebizzy/core/redirect.php:91]
#4  FHTTPS_Core_Redirect->redirect() called at [/var/www/bulkaccountshop.com/htdocs/wp-content/plugins/force-https-littlebizzy/core/redirect.php:68]
#5  FHTTPS_Core_Redirect->start() called at [/var/www/bulkaccountshop.com/htdocs/wp-includes/class-wp-hook.php:286]
#6  WP_Hook->apply_filters(, Array ([0] => )) called at [/var/www/bulkaccountshop.com/htdocs/wp-includes/class-wp-hook.php:310]
#7  WP_Hook->do_action(Array ([0] => )) called at [/var/www/bulkaccountshop.com/htdocs/wp-includes/plugin.php:465]
#8  do_action(plugins_loaded) called at [/var/www/bulkaccountshop.com/htdocs/wp-settings.php:374]
#9  require(/var/www/bulkaccountshop.com/htdocs/wp-settings.php) called at [phar:///usr/bin/wp/php/WP_CLI/Runner.php:1182]
#10 WP_CLI\Runner->load_wordpress() called at [phar:///usr/bin/wp/php/WP_CLI/Runner.php:1107]
#11 WP_CLI\Runner->start() called at [phar:///usr/bin/wp/php/WP_CLI/Bootstrap/LaunchRunner.php:23]
#12 WP_CLI\Bootstrap\LaunchRunner->process(WP_CLI\Bootstrap\BootstrapState Object ([WP_CLI\Bootstrap\BootstrapStatestate] => Array ())) called at [phar:///usr/bin/wp/php/bootstrap.php:75]
#13 WP_CLI\bootstrap() called at [phar:///usr/bin/wp/php/wp-cli.php:23]
#14 include(phar:///usr/bin/wp/php/wp-cli.php) called at [phar:///usr/bin/wp/php/boot-phar.php:8]
#15 include(phar:///usr/bin/wp/php/boot-phar.php) called at [/usr/bin/wp:4]
root@cloud49:~#

Wow, your setup seems broken. What I would do is open a shell into your database container and use old fashion mysqldump. You’d have to find the name of the container using docker ps | grep bulkaccountshop then docker exec -it <container_name> sh. I would help but it would take a tremendous amount of time to walk you through it.

can you ping me on Skype and help me to fix this issue ?

Sorry, I don’t got time. I got projects I need to work on.

Is there any option to get support from EasyEngine

Or can you guide to get complete backup of this website ?

Are you still on v3 or did you do an upgrade to v4?

Yes upgraded to v4 few days back then only it seems broken but website is working just fine

Paste the output of docker ps