Join the community today
Become a Member

Upgrade I really messed up my wordpress - is there any way to nuke it and reinstall?

Discussion in 'Install & Upgrades or Pre-Install Questions' started by armyguy221, Sep 23, 2021.

  1. armyguy221

    armyguy221 New Member

    4
    1
    1
    Sep 23, 2021
    Ratings:
    +2
    Local Time:
    7:54 AM
    I'd like to reinstall wordpress from scratch - is this possible with some option similar to option 22? (or something I can put on the commandline)? Is there any way to get wordpress back to a pristine state, because I really mangled its theme!

    -

    Full details:

    I am quite a new user. I used the option to install wordpress (I think using option 22), by following a youtube video.


    Everything went well, I just followed whatever the youtube video showed, line by line yes/no by yes/no (there were just a few such choices). Very quickly my server was online! And I had my fresh admin account and password for accessing the admin panel on my fresh WordPress. It was really easy and great! It seemed so easy to use!

    Unfortunately, I am just learning wordpress itself, and by trying to mess with the front end (such as themes and so on), using that same front-end admin panel, I badly mangled the configuration.

    So the problem is entirely just my wordpress front-end choices, there is no problem of any kind with centmin mod.

    Is there any way for me to nuke and reinstall the wordpress, such as some command I can type, that will result in all the database tables and files for my wordpress being totally discarded and reinstalled, using a similar process as option 22?

    I don't have any content on it, I don't need to save any of my wordpress content whatsoever. All I have is just some badly misconfigured themes which I am just not able to get to behave correctly now. I feel like my best option is to start over., if this is possible - with a fresh WordPress installation. It looked a lot better when it was first installed! I'd like to return to that state.

    Thanks for any help!
    • CentOS Version: CentOS 7 64bit ( 7.9.2009 (Core) )
    • Centmin Mod Version Installed: 123.09beta01.b701
    • Nginx Version Installed: 1.21.3
    • PHP Version Installed: PHP 7.4.23
    • MariaDB MySQL Version Installed: 10.3.31-MariaDB MariaDB
    • When was last time updated Centmin Mod code base ? : never
    • Persistent Config: yes,
    Code (Text):
    NGINX_PAGESPEED='y'
    NGXDYNAMIC_NGXPAGESPEED='y'
    LETSENCRYPT_DETECT='y'
    
     
  2. eva2000

    eva2000 Administrator Staff Member

    47,292
    10,703
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,628
    Local Time:
    3:54 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    If you don't have any files/data need saving and can start fresh, just delete the nginx vhost/site and data as outlined below. Or you can use it as a learning experience as outlined at 6 steps to learning more about Centmin Mod. The welcome post I posted at https://community.centminmod.com/th...the-integrated-installation.21989/#post-90248 has a lot of links to info you can read to learn the ropes too :)

    To properly remove an Nginx vhost the instructions are on official site at How to delete Nginx vhost account for existing domain/subdomain ? as well as on each Nginx vhost creation's ending output too lists the commands.

    You also get a log file for each Nginx vhost created which also lists the commands in 123.09beta01 and higher example for http2.domain.com remove log at /root/centminlogs/centminmod_140218-021218_nginx_addvhost_nv-remove-cmds-http2.domain.com.log
    Code (Text):
    ls -lahrt /root/centminlogs/ | grep remove
    -rw-r--r--   1 root root 1.3K Feb 14 02:12 centminmod_140218-021218_nginx_addvhost_nv-remove-cmds-http2.domain.com.log
    
     
  3. armyguy221

    armyguy221 New Member

    4
    1
    1
    Sep 23, 2021
    Ratings:
    +2
    Local Time:
    7:54 AM
    Thank you! You posted this just while I found this WordPress plugin which I think also resets it. Since your solution requires me to mess with something that I think is perfectly working (Nginx vhost), do you mind if I try this plugin first? (it supposedly deletes everything in wordpress.)

    https://zemez.io/support/wordpress/how-to/remove-content-wordpress-website/

    I think I could try it entirely from within the WordPress admin panel! I am afraid of breaking my fragile server, and I'm glad everything is perfect. If I can solve it from just within wordpress I think it's safer than reaching for Nginx vhost - can I try the plugin I linked first? (And if it doesn't work, then follow your instructions?)
     
  4. eva2000

    eva2000 Administrator Staff Member

    47,292
    10,703
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,628
    Local Time:
    3:54 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    Try either method, you have nothing to loose if you don't have any important data. Worse case, refresh/reload a new OS for server and install fresh Centmin Mod again. If you use a web host VPS with snapshots like Linode, DigitalOcean, Vultr or Upcloud, you can do fresh install, then full backup. Then then whenever you mess up, just restore that snapshot back :)
     
  5. armyguy221

    armyguy221 New Member

    4
    1
    1
    Sep 23, 2021
    Ratings:
    +2
    Local Time:
    7:54 AM
    I just thought I'd let you or anyone else who comes to this thread later know that the method of running WP Reset plugin worked for me . As a blog post said, "The WP Reset plugin quickly resets the site database to the default settings without changing any files, deletes all settings and content. It contains several fail-safe features, so you can never accidentally lose data." I read about it here: https://zemez.io/support/wordpress/how-to/remove-content-wordpress-website/

    I include this just because it really worked completely for me, I know you also gave a complete solution but this one ended up faster for me and was less intimidating, so I wanted to make sure I include here that it worked. Thanks for the reply and the great software!