Changes between Version 2 and Version 3 of fms-migration
- Timestamp:
- Aug 15, 2018, 1:29:19 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
fms-migration
v2 v3 1 1. When configuring the !FileMaker server, 1 1. In the website CMS disable the transfer of orders from the website to FM 2 3 2. On the dev server place the site into offline mode by editing `C:\inetpub\wwwroot\assets\includes\config.php` and setting `define('siteOffline', true);` 4 5 3. Modify the mapping on the router such that all traffic to payment.solopress.com (IP 194.74.170.116) is directed to the dev server (IP 192.168.0.90). This will display the message 'This site is offline for schedule maintenance. Please try calling back later. We apologise for any inconvenience caused.' to anyone who tries to make a payment while the upgrade is being performed. 6 7 4. When configuring the !FileMaker server, 2 8 - use the new wildcard SSL certificate for the server 3 - enable the XML interface using either the CLI or API 4 - enable the PHP API using either the CLI or API 9 - enable the XML interface and PHP API using either the CLI `fmsadmin SET CWPCONFIG ENABLEPHP=true ENABLEXML=true` or through the FMS Admin API 5 10 6 2. Ensure that there is a valid DNS entry for the !FileMaker server which the PHP code can connect to the PHP API interface using (e.g. fms.solopress.com).11 5. Ensure that there is a valid DNS entry for the !FileMaker server which the PHP code can connect to the PHP API interface using (e.g. fms.solopress.com). Ideally this should have both an internal and external IP addresses so that traffic from the PHP code doesn't have to exit the LAN to connect. Currently cwp.solopress.com is also configured to connect to the production server. 7 12 8 3. Import the payment.solopress.com EV SSL certificate to the local machine certificate store13 6. Import the payment.solopress.com EV SSL certificate to the local machine certificate store 9 14 10 4. Download and install the subversion command line client from https://msdev.co.uk/windows-svn-client/15 7. Download and install the subversion command line client from https://msdev.co.uk/windows-svn-client/ 11 16 12 5. Open a command prompt, run the following commands to export the PHP code from version control into the webroot folder17 8. Open a command prompt, run the following commands to export the PHP code from version control into the webroot folder 13 18 {{{ 14 19 cd c:\inetpub\wwwroot … … 16 21 }}} 17 22 18 6. Create the payment.solopress.com virtual host in the IIS console.23 9. Create the payment.solopress.com virtual host in the IIS console. 19 24 - Set the Physical Path to C:\inetpub\wwwroot 20 25 - bind to port 80 with host payment.solopress.com 21 26 - bind to port 443 with host payment.solopress.com, require SNI, and select the payment SSL cert 22 27 23 7. Ensure that the internal DNS entry for payment.solopress.com points to the correct internal IP address28 10. Ensure that the internal DNS entry for payment.solopress.com points to the correct internal IP address 24 29 25 8. Modify `C:\inetpub\wwwroot\assets\includes\config.php` to point to the DNS name of the FMS, including the https protocol (this is a new FM17 requirement) 30 11. Modify `C:\inetpub\wwwroot\assets\includes\config.php` to point to the DNS name of the FMS, including the https protocol (this is a new FM17 requirement) which means it must be a fqdn and not an IP address which is used. 26 31 27 9. Switch the payment gateway to test mode in the above config file.32 12. Switch the payment gateway to test mode in the above config file (line 112, set `define('sagePayMode', 'test');`). 28 33 29 1 0. Conduct end-to-end testing of the payment process to ensure everything functions as expected (e.g. using https://payment.solopress.com/?/order/v9jhQs8TPbFxp8748HUUPi/dfdd16d0b176755c8434754d1d78701b)34 13. Conduct end-to-end testing of the payment process to ensure everything functions as expected (e.g. using https://payment.solopress.com/?/order/v9jhQs8TPbFxp8748HUUPi/dfdd16d0b176755c8434754d1d78701b) 30 35 31 1 1. Conduct testing of the order submission process36 14. Conduct testing of the order submission process 32 37 33 1 2. Revert the payment gateway in the config file to production mode38 15. Revert the payment gateway in the config file to production mode (line 112, set `define('sagePayMode', 'production');`). 34 39 35 13. Switch the external DNS for payment.solopress.com to point to the external IP address of the server 40 16. Update the router configuration for payment.solopress.com to direct to the production server IP 41 42 17. Revert the change to the dev server to place the site back into online mode by editing `C:\inetpub\wwwroot\assets\includes\config.php` and setting `define('siteOffline', false);` 43 44 18. In the website CMS re-enable the transfer of orders from the website to FM. 45 46 19. Conduct a low-value test of the payment gateway to ensure that the production environment is functional. Refund that payment through the SagePay gateway.