To be completed by the original poster:
CMS Version
Xibo CMS 2.X.X
Installation Method
Custom install
Operating System
Ubuntu Server 20.04
Issue
I post this topic to help us for upgrading a Xibo CMS Custom install in Ubuntu with Xampp
This is the step by step procedure:
You should always take a backup before upgrading your CMS Installation.
Pre-requisites
- Backup settings.php from your installation (found in web/settings.php )
- Manually take a backup of your database
- Replace your existing installation with the new version from the tar.gz or zip file. Do not copy over the top.
- Replace your backup settings.php file in your Xibo installation directory
Installing phinx in XAMPP
- curl -s https://getcomposer.org/installer | /opt/lampp/bin/php
- /opt/lampp/bin/php composer.phar require /opt/lampp/bin/vendor/robmorgan/phinx
Migrating Xiboo CMS
- Copy folder “app” from “/opt/lampp/vendor/robmorgan/phinx” to “vendor/bin”
- Copy folder “src” from “/opt/lampp/vendor/robmorgan/phinx” to “vendor/bin/app” In folder “vendor/bin”
- using Notepad edit file “phinx”:
change line
$app = require DIR . ‘/…/app/phinx.php’;
to
$app = require DIR . ‘/app/phinx.php’; - In folder “vendor/bin/app” using Notepad edit file “phinx.php”:
change line
$autoloader = require DIR . ‘/…/src/composer_autoloader.php’;
to
$autoloader = require DIR . ‘/src/composer_autoloader.php’; - Change first line to #!/opt/lampp/bin php in vendor/bin/phinx
- Run this command: /opt/lampp/bin/php vendor/bin/phinx migrate -c phinx.php
Post-step
- Delete install directory from web/
That’s it, enjoy it!