X-Payments:Upgrading
- X-Payments:General information
- What's New
- System requirements
- Installation
- Two-factor user authentication
- Configuring X-Payments
- Managing users
- Customizing the interface
- Managing payments
- Unistalling X-Payments
- Upgrading
- Moving X-Payments from one host to another
- Viewing X-Payments logs
- FAQ
- Troubleshooting
- Glossary
- Supported payment gateways
- Popular Payment Methods Configuration Instructions
Upgrading is done with the help of a special upgrade pack. If you are using a downloadable version of X-Payments, and your license allows you to upgrade to later versions, you will find this pack in the File area section of your X-Cart Account (Look for a file named like upgrade.pack.xp.2.1.1.zip (ZIP-archive) or upgrade.pack.xp.2.1.1.tgz (TGZ-archive)).
To upgrade X-Payments, complete the following steps:
- Download the X-Payments upgrade pack.
- Connect to your X-Payments server via SSH.
- Create a directory <xpay-dir>/upgrade.
- Extract the X-Payments upgrade pack that you downloaded and upload the extracted pack contents to the directory <xpay-dir>/upgrade that you created at the previous step. The directory should now contain the following items:
- changes
- source
- upgrade.php
- Run the script upgrade.php via the command line specifying the current version of your X-Payments installation and the version to which you want to upgrade. Make sure the destination version is greater than the current one.
For example:
$ php upgrade.php 1.0.5 1.0.6
$ php upgrade.php 1.0.6 2.0.1
$ php upgrade.php 2.0.0 2.1.3
To date, the following X-Payments versions have been released: 1.0.3, 1.0.4, 1.0.5, 1.0.6, 2.0.0, 2.0.1, 2.1.0, 2.1.1, 2.1.2, 2.1.3; the script will only recognize the versions specified here.
X-Payments 1.0.3 and 1.0.4 users may need to add the '--force' option; for example:
$ php upgrade.php 1.0.3 2.1.3 --forceNote: The upgrade script matches the number of the current version you enter against the version number specified in the config/config.ini.php file of your X-Payments installation and only continues with the upgrade if the versions actually match. The config/config.ini.php of X-Payments 1.0.3 and 1.0.4 does not contain the information upgrade.php expects to find there, so the upgrade process will fail unless you use '--force'.
The script will create a backup of your X-Payments installation and carry out the upgrade for you. Once the upgrade process has been completed, remove the directory <xpay-dir>/upgrade/ (That is done for security purposes; remember that X-Payments must be a stand alone service on a separate server, so you must not keep other applications - including the upgrade script - on the same server while using it).
In case of any issues, you can find your backup in the directory <xpay-dir>/var/backup/.
|