logo phpwebgallery
"simplement puissant"
Dernière version:
1.7.2 - 24 juillet 2008
PhpWebGallery
 Documentation
 

Upgrade

This is a SAMPLE (for 1.6), and it is accurate for recent releases =) ).

9 simple steps to upgrade PhpWebGallery.

1. Download

Download the most recent PhpWebGallery release :-D here

Note : Don’t download RC (Release Candidate), except for testing.

phpwebgallery_documentation_1.6_images_upgrade_01.jpg

2. Unzip

phpwebgallery_documentation_1.6_images_upgrade_02.jpg

3. Save current main PhpWebGallery files

With your FTP client, save if they exist (some are optional):

  • ./include/mysql.inc.php
  • ./include/config_local.inc.php
  • ./template-common/local-layout.css
  • ./template/yoga/local-layout.css

optional:

  • ./galleries/ full directory (take care not deleting it)

4. Delete PhpWebGallery

( :-D except ./galleries/ )

:!: : all changes, MOD / template, will be lost

phpwebgallery_documentation_1.6_images_upgrade_03.jpg

phpwebgallery_documentation_1.6_images_upgrade_04.jpg

5. Upload last PhpWebGallery release

6. Reload saved files

  • maybe if you deleted it ./galleries/

Didn’t Wiki write ( :-D except ./galleries/ )?

In all cases:

  • ./include/mysql.inc.php
  • ./include/config_local.inc.php
  • ./template-common/local-layout.css
  • ./template/yoga/local-layout.css

Warning :-D Don’t forget ./include/mysql.inc.php (one empty is distributed, if you leave an empty file you are going to install and not upgrading).

7. Launch upgrade.php

e.g. : http://votredomaine/phpwebgallery/upgrade.php.

You will obtain:

phpwebgallery_documentation_1.6_images_upgrade_05.jpg

If you have something different, ask the forum!!!

8. Switch to UPGRADE mode

phpwebgallery_documentation_1.6_images_upgrade_05.jpg

Add the Upgrade mode line :

define('PHPWG_IN_UPGRADE', true);

Your file will look as this:

<?php
$cfgBase = 'DBase';
$cfgUser = 'BD User';
$cfgPassword = 'DB password';
$cfgHote = 'local host name';
$prefixeTable = 'phpwebgallery_';
 
define('PHPWG_INSTALLED', true);
 
define('PHPWG_IN_UPGRADE', true);
?>

Upload the file and refresh upgrade.php page in your browser.

phpwebgallery_documentation_1.6_images_upgrade_06.jpg

This is an upgrade from 1.5.x. Clic on Upgrade from release 1.5.0 to x.x.x.

phpwebgallery_documentation_1.6_images_upgrade_07.jpg

9. Ending UPGRADE

Remove line:

define('PHPWG_IN_UPGRADE', true);

from ./include/mysql.inc.php

For security reasons remove install.php, upgrade.php and the ./install/ directory.

Enjoy !

Recommendation

:!: Upgrade to 1.7 remove temporary all existing history. It’s quite easy to rebuild it because all has been saved in history_backup table. To get your previous history data, install ImportStat plugin.

Run once and remove it.

 
en/help/installer/upgrade.txt · Dernière modification: 2008.05.16 00:21 par vdigital
 
Driven by DokuWiki - RSS notification feed