PHP Live! Help Desk
Search:
» Help Desk Home » Installation and Upgrade » Transfer PHP Live! to a new server
Transfer PHP Live! to a new server

To transfer the PHP Live! system to a new server, there are basically three steps:

  1. Move the PHP Live! files to the new server.
  2. Edit the configuration file to match the new server. (phplive/web/config.php)
  3. Export the PHP Live! MySQL database and import to the new database on the new server.

 


 

Move the PHP Live! files to the new server:

  1. Compress your entire phplive/ directory using ZIP or tar.
  2. FTP the compressed file to the new server location.
  3. Decompress the file.

 

Edit the configuration file to match the new server:

  1. Edit the PHP Live! config file phplive/web/config.php file on the new server.
  2. Update the domain, file path and MySQL information to reflect the new server settings.  The variables that requires change are:

 

$CONF['DOCUMENT_ROOT'] = addslashes('/new_server_web_directory_path/phplive') ;
$CONF['BASE_URL'] = '//www.new-website-url.com/phplive' ;
$CONF['SQLHOST'] = 'new_db_host' ;
$CONF['SQLLOGIN'] = 'new_db_login' ;
$CONF['SQLPASS'] = 'new_db_password' ;
$CONF['DATABASE'] = 'new_db_name' ;


3. Double check that the phplive/web/ folder is read/write access by the web server.  The permission documentation will detail the procedures.

 

Export the PHP Live! MySQL database and import to the new database on the new server. 

  1. Create a new database on the new MySQL server.   This new database will be for the transferred PHP Live! system.
  2. Contact your server admin or tech to do a mysqldump on the original PHP Live! database.  Transfer the mysqldump exported file to the new server.  Do an import of the data on the new server with command:

    mysql -u username -p database_name < mysqldump_exported_file.sql

    *if you do not have SSH command line access on the new server, use a MySQL front-end tool such as PHPMyAdmin to import the sql data file.

  3. Done!
Was this helpful?
could be more helpful? let us know
16 people found this helpful