Day: June 26, 2021

OpenCart is one of the simplest e-commerce platforms to build an online store. OpenCart offers you an ‘easy-to-work-with’ code-base with which you can get an e-Commerce site online, quickly. If you are looking for a safe way to move OpenCart website from one domain to another, follow the process below.

Here are the steps to migrate / move OpenCart website to a new server.

1. Download ALL the files from old server.
2. Create a backup of Database through PhpMyAdmin
3. Upload files to NEW SERVER
4. Install Database on NEW SERVER through PhpMyAdmin
5. Update the configuration files config.php and admin/config.php to reflect your new domain path.

The file should now open up for editing. Here, you will need to edit a few lines of code. Find the lines:

// HTTP

define('HTTP_SERVER', 'http://yourdomain.com/');

// HTTPS

define('HTTPS_SERVER', 'http://yourdomain.com/');

// DIR

define('DIR_APPLICATION','/
home/sites/YOUR-DOMAIN/public_html/catalog/');
define('DIR_SYSTEM','/home/sites/YOUR-DOMAIN/public_html/system/');
define('DIR_DATABASE','/home/sites/YOUR-DOMAIN/public_html/system/database/');
define('DIR_LANGUAGE','/home/sites/YOUR-DOMAIN/public_html/catalog/language/');
define('DIR_TEMPLATE','/home/sites/YOUR-DOMAIN/public_html/catalog/view/theme/');
define('DIR_CONFIG','/home/sites/YOUR-DOMAIN/public_html/system/config/');
define('DIR_IMAGE','/home/sites/YOUR-DOMAIN/public_html/image/');
define('DIR_CACHE','/home/sites/YOUR-DOMAIN/public_html/system/cache/');
define('DIR_DOWNLOAD','/home/sites/YOUR-DOMAIN/public_html/download/');
define('DIR_LOGS','/home/sites/YOUR-DOMAIN/public_html/system/logs/');

You will need to update these to your correct path. Contact your hosting company for the full path to your public folder.

Next, you need to update the database connection settings. Find the code below:

// DB

define('DB_DRIVER','mysql');
define('DB_HOSTNAME','localhost');
define('DB_USERNAME','your-old-opencart-databse-username');
define('DB_PASSWORD','your-old-opencart-databse-password');
define('DB_DATABASE','your-old-opencart-databse-database');
define('DB_PREFIX','oc_');

You will need to replace these with the new details made in step 3;

DB_HOSTNAME = Your database host (usually localhost).
DB_USERNAME = Your Database username.
DB_PASSWORD = Your Database password
DB_DATABASE = Your database name

Once you have updated these, save the changes & you are done.

ERROR:-
The response from the remote server was:
550 Please turn on SMTP Authentication in your mail client. mail-qk1-f172.google.com [209.85.222.172]:36503 is not permitted to relay through this server without authentication.

SOLUTION:-

Manage SMTP restrictions

Click Enable to deny users the ability to bypass your mail server to send mail. To allow users the ability to bypass your mail server, click Disable.

(WHM >> Home >> Security Center >> SMTP Restrictions)

We recently redesigned a WordPress site for a client who was migrating away from WP Engine. When we migrated the client to the new host, they still had a “WP Engine” section in their WordPress dashboard main menu.

WP Engine WordPress Menu Item

Since this feature set would no longer be utilized, it was best to get the plugins removed to keep things lean and tidy.

While cleaning up those WPE remnants, we put together a short guide on how to remove these plugins on your own. Hope it helps!

1. First things first, backup

In order to remove these WP Engine plugins and remnants, we’ll be making some changes to the file structure, and modifying a core WordPress file. That means you should create a full backup of your WordPress environment in the event that something goes wrong. Broken sites and lost data make for a bad day, so backup to stay safe!

2. Delete WP Engine Plugin Folders and Files

Once your backup is safely made, connect to your WordPress environment via FTP, or via your cPanel’s file manager. Locate the “wp-content” folder in your base WordPress directory, then delete the following files and folders.

  • wp-content/mu-plugins/mu-plugin.php
  • wp-content/mu-plugins/wpengine-common/
  • wp-content/mu-plugins/slt-force-strong-passwords.php
  • wp-content/mu-plugins/force-strong-passwords/
  • wp-content/mu-plugins/stop-long-comments.php
  • wp-content/advanced-cache.php
  • wp-content/object-cache.php
  • wp-content/mysql.sql

Once you have deleted all of these files and folders, if the “mu-plugins” folder is now empty, you can go ahead and delete it too.

3. Delete WP Engine git files from the root

Next, head back to your WordPress root directory, and look for and delete these two files.

  • .gitattributes
  • .gitignore

WP Engine .gitattributes and .gitignore files

4. Generate a fresh wp-config.php file for your installation

WP Engine modifies your site’s wp-config.php file. Now that you have removed all of their leftover elements from your installation, you will also want to make sure that your site is running on a clean wp-config file.

Firstly, locate and open the wp-config.php file in the root of your WordPress environment.

Now head to GenerateWP to grab a clean code set for the wp-config file. Copy the code from GenerateWP and paste it into a new file in your text editor.

Now jump back to your current wp-config file which you opened a moment ago. You will want to copy the values for all of these fields and paste them into the new wp-config file that you just created.

Database credentials

  • define( ‘DB_NAME’,
  • define( ‘DB_USER’,
  • define( ‘DB_PASSWORD’,
  • define( ‘DB_HOST’,
  • define( ‘DB_CHARSET’,

wp-config database values

If your table prefix begins with anything other than “wp_” (uncommon)

Be sure to update your table prefix if it begins with anything other than “wp_”

  • $table_prefix =

wp-config table prefix

WordPress Secret Keys & Salts

  • define( ‘AUTH_KEY’,
  • define( ‘SECURE_AUTH_KEY’,
  • define( ‘LOGGED_IN_KEY’,
  • define( ‘NONCE_KEY’,
  • define( ‘AUTH_SALT’,
  • define( ‘SECURE_AUTH_SALT’,
  • define( ‘LOGGED_IN_SALT’,
  • define( ‘NONCE_SALT’,

wp-config secret keys and salts

After entering all of your database values, keys, and salts, save the new file as wp-config.php, then upload it to the root of your WordPress installation, overwriting the existing file.

Once that is complete, log into your WordPress admin panel and you should now be free of all WP Engine menus and plugins.