Note de ce sujet :
  • Moyenne : 0 (0 vote(s))
  • 1
  • 2
  • 3
  • 4
  • 5
Update PhpIpam
#1
pour lancer la mis a jours: 

[titreyoyo]phpipam upgrade[/titreyoyo]

[titreyoyo]1.) Create backup[/titreyoyo]

Database part is separated from code, so in case you have a backup SQL file from old installation you can always restore if anything goes wrong in process. Before you make an upgrade make sure you backup your SQL database doing following steps (adjust directories etc. according to your installation):

Code :
[root@ipam /]# cd /var/www/phpipam/
[root@ipam /var/www/phpipam]# /usr/bin/mysqldump -u ipam -pphpipam phpipam > db/bkp/phpipam_migration_backup.db


Also backup config.php file containing settings for database connection to phpipam.

[titreyoyo]2.) Upgrade phpIPAM code[/titreyoyo]
Simply extract new code and copy over old config.php file.
Code :
[root@ipam /]# cd /var/www/phpipam
[root@ipam /var/www/phpipam]# tar -xvf phpipam-1.6.tar
[root@ipam /var/www/phpipam]# cp /backup/location/config.php /var/www

In case you use Git upgrade is even easier:

Code :
root@ipam /]# cd /var/www/phpipam
root@ipam /var/www/phpipam]# git pull
root@ipam /var/www/phpipam]# git checkout -b 1.6 origin/1.6
root@ipam /var/www/phpipam]# git submodule update --init --recursive

[titreyoyo]3.) Upgrade phpIPAM database[/titreyoyo]

To upgrade your phpipam database to latest version 3 options are possible and presented in upgrade screen in browser:


a) Automatic database upgrade
Open browser and follow upgrade procedure.

b) Manualy query import
In case you have some problems you can manually import each SQL update statement directly to MySQL database. All upgrade queries are available in db/UPDATE.sql file, start from statement that contains version higher than current one you are using.

[titreyoyo]Restore old installation and database[/titreyoyo]

In case anything goes wrong the restore procedure is simple:

Extract old code (from version you have prior to upgrade)

Copy over config.php
Load old database you backed up before starting upgrade (mysql -u root -p < db/bkp/phpipam_migration_backup.db)


Source de l'information : https://phpipam.net/documents/upgrade/
Répondre


Messages dans ce sujet
Update PhpIpam - par yoyo - 18-02-2024, 19:09

Sujets apparemment similaires…
Sujet Auteur Réponses Affichages Dernier message
  Installation PhpIpam yoyo 0 12 18-02-2024, 11:28
Dernier message: yoyo

Atteindre :


Utilisateur(s) parcourant ce sujet : 1 visiteur(s)