Migrated site to new hosting – getting lots of error boxes

Home Forums BulletProof Security Pro Migrated site to new hosting – getting lots of error boxes

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #38970
    Carlo
    Participant

    Have just migrated from a shared hosting plan a new hosting (cloudways).
    So the “new” site is cloned and ready, i havent pointed the domain to the new one as i see alot of errors in the wordpress dashboard (all from BPS pro).

    what process should i do to make sure everything is set for the new migrated site?

    #38971
    AITpro Admin
    Keymaster

    Here is a help forum topic for doing migrations/moves/cloning > https://forum.ait-pro.com/forums/topic/migrating-moving-or-cloning-websites/#post-20407. Since you have already migrated your site then try running the Setup Wizards and see if they takes care of some of the errors. Most likely you will need to work through the other errors one by one. If you run into problems with solving any problems then post the error in your forum reply.

    #38974
    Carlo
    Participant

    Ok, followed your directions and as far as i can see everything went well and no more errors.

    1.the only thing i didn’t do was get the custom codes from the old hosting (i still have access, just don’t know what folder they would be stored in). is there a way to access this in file manager or ftp, i actually don’t remember if there was anything major there but good to check if possible?

    2. I’m guessing the Plugin Firewall will workout itself over time again? as i didn’t get the list from the old hosting version?

    3.i would want to update the https redirection code:obviously with my site name below, but where would i put that in BPS?

    # Canonical HTTPS/non-WWW
    <IfModule mod_rewrite.c>
    RewriteCond %{HTTPS} off [OR]
    RewriteCond %{HTTP_HOST} ^www\.example\.com [NC]
    RewriteRule (.*) https://example.com/$1 [L,R=301]
    </IfModule>
    #38975
    AITpro Admin
    Keymaster

    You can grab your old root htaccess file from your old site/hosting and then copy the Custom Code in that root htaccess file into your new site’s Custom Code text boxes.

    The Plugin Firewall is automated with the AutoPilot Mode Cron, which will automatically check for any needed whitelist rules and automatically create them.

    Use the BPS HTTPS Rewrite code and steps in this forum topic > https://forum.ait-pro.com/forums/topic/wordpress-ssl-htaccess-code-rewrite-ssl-rewritecond-server_port/#post-7233

    #38976
    Carlo
    Participant

    Thanks, i tried the HTTPS rewrite code(s).

    I added it to the CUSTOM CODE WP REWRITE LOOP START box. each time i save in that box, does it double up on the rewrite codes? or just rewrite the existing one? because i added the code and the site crashed.

    somehow got back into the admin area and removed it and got it up again. i think i read somewhere that if there is http://site-image-links  then it cause a loop error? well somehow after this migration my images in each post are HTTP…  weird thing is the source image is https though. so I’m a little lost at the moment.

    at one stage

    #38977
    AITpro Admin
    Keymaster

    Whatever code is in the CUSTOM CODE WP REWRITE LOOP START it will be written to this section of the BPS Root htaccess file and will replace this standard BPS Rewrite Loop Start code. If any of your htaccess code in any of the Custom Code text boxes is invalid/bad then when you activate Root BulletProof Mode your site will crash. Check that all of your custom code is valid/good.

    # WP REWRITE LOOP START
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]

    Most likely the cause of your image file URL’s being http and not https is that your WordPress General URL settings are http and not https.

    WordPress General Settings:
    WordPress Address (URL)    https://www.your-domain-name.com
    Site Address (URL)                https://www.your-domain-name.com

    #40363
    bpskgps
    Participant

    Hello!

    I just wanted to enter this discussion as I recently moved to a new host.  Here’s the context:

    • Domain did not change (not even the prefix)
    • Moved from traditional managed hosting to Cloud hosting (DigitalOcean through Cloudways)

    I made a mistake of not checking in with BPS support or forum to see what things needed to be considered before migrating.  Thankfully, in spite of this, my migration was mostly smooth.  However, I am facing some issues that I would like helping resolving.

    After migration was complete, I noticed that BPS was throwing a bunch of errors so I did the following:

    • Ran Pre-installation wizard (Everything Green)
    • Ran setup wizard (Everything green)

    However, there are few apparent things that are still an issue:

    1. The PHP log file path somehow was still showing the old hosts path.
    2. The PHP log files page shows that it “Cannot write to file” (which is obviously invalid) The path listed above for ini_set does correspond with a file (wp-content/bps-backup/logs/bps_php_error.log). I did contact support and did find the correct path to the error logs.  Their name is not obvious (named after the WP instance) though the location happens to be under root/logs whereas WP installation is under root/public_html.
    3. When looking at my quarantined items and trying to delete them, I cannot.
    4. BPS quarantined the following files:
      • auto_.htaccess (it seems to have been created by Malcare’s WAF service)
      • user.ini (also created by Malcare)
      • A .conf file that starts with {“whitelisted”:{},”blacklisted”:..} with a bunch of IP address.
      • And a .log file with the same name as the .conf file.

    I believe the writing issue as well as the deletion issue has to do with permission. I remember running into these problems when working on a site that was hosted on AWS.  However, I don’t know what the appropriate configuration is allowing BPS and current host to work together with little hiccups.

    Any help will be appreciated!

    Thanks!

    #40364
    AITpro Admin
    Keymaster

    @ bpskgps – The quarantined files problem could be a permissions problem or it could be a couple of other things.  Since these problems are somewhat complex it would be quicker for me to login to your site and figure out the problems. Send me a WordPress Administrator login to your site:  info at ait-pro dot com.

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