Learn about Centmin Mod LEMP Stack today
Become a Member

Wordpress How to overwrite a wordpress host

Discussion in 'Blogs & CMS usage' started by Venucci, Jun 3, 2019.

  1. Venucci

    Venucci Member

    33
    4
    8
    Sep 25, 2018
    Ratings:
    +4
    Local Time:
    6:37 PM
    currentyl
    10
    I have installed correctly wordpress but i wish to overwrite the current setup over the same domain . How can i overwrite it ? Just doing 22 once again in order to install again wordpress etc. or i must do it in different way ( I have not access to the ftp and i wish to reinstall it in order to create new password and name )
     
  2. eva2000

    eva2000 Administrator Staff Member

    41,292
    9,266
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,217
    Local Time:
    2:37 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    Every centmin.sh menu option 22 run has an accompanying uninstall script at /root/tools/wp_uninstall_${vhostname}.sh where ${vhostname} = your domain name. You can run that to uninstall almost everything except mysql database which you have to manually remove yourself - extra precaution in case you accidentally run the wrong uninstall script.
     
  3. Venucci

    Venucci Member

    33
    4
    8
    Sep 25, 2018
    Ratings:
    +4
    Local Time:
    6:37 PM
    currentyl
    10
    Which is the code for removing of the database ? I am a noob unfortunately , thanks !
     
  4. eva2000

    eva2000 Administrator Staff Member

    41,292
    9,266
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,217
    Local Time:
    2:37 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    Google foo = MySQL DROP DATABASE - How to Delete a Database in MySQL Server :)

    Just with Centmin Mod no need to specify -u root -p part as centmin mod sets up /root/.my.cnf with your mysql root pass set so you can just enter mysql client via command = mysql

    instead of
    Code (Text):
    mysql -u root -p

    just
    Code (Text):
    mysql


    Then just run mysql drop database command and then run exit to exit mysql client
     
  5. Venucci

    Venucci Member

    33
    4
    8
    Sep 25, 2018
    Ratings:
    +4
    Local Time:
    6:37 PM
    currentyl
    10
    Thank you ! I have found it but with centminmod the things are different sometimes . Thank you for the dedicated time !

    Btw . How can i protect wp-admin with password using centminmod 22 ? I mean to block all the brute force attacks. thank you once again
     
  6. eva2000

    eva2000 Administrator Staff Member

    41,292
    9,266
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,217
    Local Time:
    2:37 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    when you run centmin mod 123.09beta01's centmin.sh menu option 22, one of the question prompts is for wp-login.php password protection which also protects wp-admin
    Code (Text):
    ---------------------------------------------------------------
    Important Information
    ---------------------------------------------------------------
    
    You are about to create an Wordpress based Nginx vhost site with
    or without HTTPS/SSL support.
    Also read the continually updated Getting Started Guide
    at centminmod.com/getstarted.html if you haven't already
    ---------------------------------------------------------------
    403 Permission denied message handling
    if after vhost site setup you encounter 403 permission denied errors,
    check https://community.centminmod.com/threads/11215/ to see if your
    site needs tools/autoprotect.sh tweaking & whitelisting
    ---------------------------------------------------------------
    
    Do you want to continue with Nginx vhost site creation ? [y/n] y
    
    Enter vhost domain name you want to add (without www. prefix): funky.domain.com
    
    Create a self-signed SSL certificate Nginx vhost? [y/n]: y
    Get Letsencrypt SSL certificate Nginx vhost? [y/n]: n
    Theme Setup:
    Install CyberChimps Responsive Theme (cyberchimps.com/responsive-theme/) [y/n]: n
    
    Wordpress Setup:
    Set custom WP Admin Display Name ? [y/n]: y
    Enter Custom WP Admin Display Name: myusername
    Install Wordpress in subdirectory /blog ? [y/n]: n
    Disable Auto Generated WP Admin Username / Password ? [y/n]: n
    Disable wp-login.php password protection ? (less security) [y/n]: y
    Enter email address for Admin User for Wordpress Installation:
    

    this part
    Code (Text):
    Disable wp-login.php password protection ? (less security) [y/n]: y

    so you'd answer = n for no to NOT disable wp-login.php/wp-admin protection

    i answered yes = y in this instance
     
  7. Venucci

    Venucci Member

    33
    4
    8
    Sep 25, 2018
    Ratings:
    +4
    Local Time:
    6:37 PM
    currentyl
    10
    Great thank you ! Kind regards !