Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added sqlmode to example database config

...

Excerpt
hiddentrue

How to move Blesta to a new server.


Table of Contents
Table of Contents
maxLevel5
minLevel2
outlinetrue
classtoc


Warning
titleIMPORTANT

Your config/blesta.php file contains a very important encryption key that must be copied over to the new server. If you do a fresh install, and only copy your database, YOU WILL BREAK YOUR INSTALLATION. You should copy your database and all of your files.

...

Code Block
languagephp
////////////////////////////////////////////////////////////////////////////////
// Database
////////////////////////////////////////////////////////////////////////////////
// Database connection information
Configure::set("Blesta.database_info", array(
	'driver' => "mysql",
	'host'	=> "localhost",
	//'port' => "8889",
	'database' => "DATABASE",
	'user' => "USER",
	'pass' => "PASSWORD",
	'persistent' => false,
	'charset_query' => "SET NAMES 'utf8'",
	'sqlmode_query' => "SET sql_mode='TRADITIONAL'",
	'options' => array()
	)
);

Update DATABASE with your MySQL database name, USER with your MySQL database username, and PASSWORD with your MySQL password.

...

  1. Log into the client area at https://account.blesta.com/client/login and click "Manage" next to your license, then "Manage License" on the left, then check and save the "Re-Issue" option. If you obtained your license from a reseller, you will need to perform this step in their client area (which may be different), or by opening a ticket with them.
  2. Log into Blesta on your new server and visit Settings > System > General. Make sure all the paths are correct, update any that are not right.
  3. Verify that everything looks good, and then set up your cron. See Settings > System > Automation for help.

 

...