Get the most out of your Centmin Mod LEMP stack
Become a Member

Migrate sites to Vultr and using Centmin mod

Discussion in 'Blogs & CMS usage' started by Fernando, Jul 21, 2017.

  1. Fernando

    Fernando New Member

    17
    4
    3
    Jul 21, 2017
    Ratings:
    +5
    Local Time:
    11:36 AM
    1.13.3
    10.1.25
    Hi,

    I would like some advise or recommendation moving my websites from a shared hosting to a Vultr VPS and using Centmin mod. I'm using letsencrypt on my shared hosting domains so I want to make sure the following instructions will work or if there's something missing or if you have a better idea on moving the websites.

    My plan is as follows:
    1. Install Wordpress Duplicator and create an archive and installer on the Shared Hosting
    1. Point Domain DNS to Vultr
    2. Install Wordpress Nginx vhost + Cache Plugin + LetsEncrypt (123.09beta01)
    3. On the new Wordpress Installation install Wordpress Duplicator
    4. Upload the installer and archive to Vultr
    5. Rename wp-config.php on the new Wordpress Installation
    6. Run the installer.php

    I believe is should work properly, however, I would like to get your opinion since this will be my first time doing this and using Centmin mod.

    Thank you for your recommendations!
     
  2. eva2000

    eva2000 Administrator Staff Member

    29,044
    6,590
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,785
    Local Time:
    3:36 AM
    Nginx 1.13.x
    MariaDB 5.5
    Whatever you do, do it on a test VPS only so you keep your live sites running untouched. This way you can test over and over the best way of migrating without fear :)

    centmin mod 123.09beta01 has it's own wordpress install via centmin.sh menu option 22 Wordpress Nginx Auto Installer (WP Super Cache) which setups up nginx vhost for wordpress + wordpress install + cache plugin selection between wordpress super cache, keycdn cache enabler and redis nginx level caching

    there's also vhost generator at Generate Centmin Mod Nginx Vhost - CentminMod.com LEMP Nginx web stack for CentOS with example of wordpress vhost type if you want to setup nginx vhost yourself via centmin.sh menu option 2 and not use centmin.sh menu option 22 to specify your own wordpress database etc

    Centmin.sh menu option 22 has added security in form of automatic rate limiting at nginx level for wp-login.php and xmlrpc.php requests and more secure wp plugin whitelisting see Wordpress - Wordpress 403 Permission Denied Errors

    I haven't used WP Duplicator before so wouldn't know of specifics for that though.

    For letsencrypt read how to enable support in 123.09beta01 branch before running at centmin.sh menu options at https://centminmod.com/acmetool

    But as I said, if you treat the first few times as test runs while keeping live WP sites untouched and use the test VPS with Centmin Mod as testing practice, you should have any fears of messing up as you just wipe the test VPS (in worse case) and try again.
     
  3. Fernando

    Fernando New Member

    17
    4
    3
    Jul 21, 2017
    Ratings:
    +5
    Local Time:
    11:36 AM
    1.13.3
    10.1.25
    Hi,

    Thank you for your comments! :)

    I'm using option: 22
    I just tested and it seems to work and it works perfectly with 123.09beta01 using letsencrypt.
    I tested with a test domain but I know the website will need to be down for a while since the DNS most point to vultr for letsencrypt to work.

    One thing I noticed is the following:
    1. When I initially installed Wordpress Nginx vhost + Cache Plugin + LetsEncrypt (123.09beta01) the wp-admin was only accesible from a long url for example:

    https://xxxxxxxxxxxxxxxxxxxxxx:xxxxxxxxxxxxxxxxxxx@loquevendes.com/wp-login.php

    And was not able to access it using: https://loquevendes.com/wp-admin.php

    2. Once I renamed wp-config.php and restore the database and files from Wordpress Duplicator I can access wp-admin from both locations:

    https://xxxxxxxxxxxxxxxxxxxxxx:xxxxxxxxxxxxxxxxxxx@loquevendes.com/wp-login.php
    https://loquevendes.com/wp-admin.php

    Is this ok? Because I read https://xxxxxxxxxxxxxxxxxxxxxx:xxxxxxxxxxxxxxxxxxx@loquevendes.com/wp-login.php was for security purposes and I really would like to keep that URL and avoid using https://loquevendes.com/wp-admin.php, I think this is the only thing that I'm missing.

    Thank you!
    Best Regards
     
  4. eva2000

    eva2000 Administrator Staff Member

    29,044
    6,590
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,785
    Local Time:
    3:36 AM
    Nginx 1.13.x
    MariaDB 5.5
    urls are different wp-login.php != wp-admin.php

    tried accessing from wp-login.php only ?
     
  5. Fernando

    Fernando New Member

    17
    4
    3
    Jul 21, 2017
    Ratings:
    +5
    Local Time:
    11:36 AM
    1.13.3
    10.1.25
    Hi!

    You are totally right :) I apologize for the confusion and I appreciate your time and for this great tool.

    Everything is working as expected :)

    Thank you,
    Best regards
     
    • Like Like x 1