Save or move my website

From Verywiki-EN

Jump to: navigation, search

Contents

Saving its website

IMPORTANT  : it is strongly recommended to regularly back up your website in order to avoid unexpected and so don't lose your data :).


Backup website's files

To do this, you must connect to your website FTP, login information are available on the panel in the FTP Access tab.

If you encounter problems to connect to your FTP, please read : FTP access usage

  1. When you are logged into the FTP, go to the folder web. If you have a DediGames, you will have here a file containing the name of your site, open it also.
  2. So we come to a folder containing a folder htdocs, tmp and logs. Open the folder htdocs.
  3. Here is all the files of your website, select all and transfer them to your computer, preferably in a special folder to don't have trouble to find them (this may take time depending on the number of files contained in your website).

Once the transfer is complete, you have a complete backup of all the files of your website.


Saving the MySQL database

MySQL database export

  1. Go to your VeryGames panel, and go to My account and My web Hosting.
  2. click on PHPMyadmin database located in your website panel.
  3. In PHPMyAdmin, click on the name of your base in the top left, just below information_schema (17).
  4. Once you are in your database page, click on Export, at the top of the page.
  5. Make sure than all the tables are selected and check transmit and zipped as compression at the bottom of the page.
  6. Click on Execute and wait the time that the server offers you to download a zip file.
  7. Download the file.

You have now a useful backup of your website in case of problems.


Database importation

  1. Login to your VeryGames panel, then go to My Web Hosting.
  2. Click on Phpmyadmin database in you website panel.
  3. On the PHPMyadmin, click on your database's name in the upper left just below information_schema (17).
  4. Once you are in your database page, click on Import, at the top of the page.
  5. Dans Fichier à importer cliquez sur Parcourir et sélectionnez le fichier de sauvegarde de votre ancienne base de donnée.
  6. Click on Execute.
  7. You should have a green message saying : importation successful, x executed request.



Transfer of the website to an other web hosting

it is sometimes necessary to transfer your site to another Verygames web hosting. So here's how:


Transfer files via FTP

  1. Connect to your new VeryGames web hosting FTP.
  2. Go to the folderweb then htdocs.
  3. Transfer here all the files you have previously saved from the old site.
  4. You have now to edit the file :conf.inc.php :
<?php
//-------------------------------------------------------------------------//
//  Nuked-KlaN - PHP Portal                                                //
//  http://www.nuked-klan.org                                              //
//-------------------------------------------------------------------------//
//  This program is free software. you can redistribute it and/or modify   //
//  it under the terms of the GNU General Public License as published by   //
//  the Free Software Foundation; either version 2 of the License.         //
//-------------------------------------------------------------------------//

$global['db_host']  = 'sql.verygames.net';
$global['db_user']  = 'web1337';
$global['db_pass']  = 'dzq2dz5d';
$global['db_name'] = 'web1337';
$db_prefix = 'nuked';

//define('NK_INSTALLED', true);
define('NK_OPEN', true);
define('NK_GZIP', true);

?>

You have to modify the lines :

$global['db_user']  = 'web1337';
$global['db_pass']  = 'dzq2dz5d';
$global['db_name'] = 'web1337';

By the new database informations (Availlable in your My website section of your panel)

$global['db_user']  = 'Your database's name';
$global['db_pass']  = 'Your database's password';
$global['db_name'] = 'Your database's name';
  1. Save the file conf.inc.php.

This step is completed, you must now import your MySQL database.


Transfer MySQL database

Import the MySQL database

  1. Connect to your VeryGames' panel, and go to My webhostings.
  2. Connect to your PHPMyadmin's database on you website's Panel.
  3. On the PHPMyadmin's page, click upper left on database's name, just under information_schema (17).
  4. Once in this page, click on Import, to the UP of the page.
  5. In File to import click on Browse And select the save file of your older database.
  6. Click on Execute in the down of the page.
  7. You shall have a message : successfully imported, X query executed.

Your website is now transfered and functional on your new VeryGames's webhosting :)

Personal tools