| | 1 | = Moving the DB server = |
| | 2 | Relocating the DB server requires only a minor change on the web server. The following steps are necessary |
| | 3 | 1. login to the web server either as root, or as another user through, ssh |
| | 4 | 2. open the site config file for editing (you will need to use sudo if not logged in as root) |
| | 5 | {{{ |
| | 6 | nano /var/www/vhosts/blincref.com/httpdocs-app/assets/implementation/impl.config |
| | 7 | }}} |
| | 8 | 3. locate the database configuration section and update the IP address of the fmpHost |
| | 9 | {{{ |
| | 10 | fmpHost = xxx.yyy.zzz.aaa |
| | 11 | }}} |
| | 12 | 4. save and exit nano |
| | 13 | All future requests will use the new !FileMaker host. |
| | 14 | |
| | 15 | = Placing the website offline = |
| | 16 | If the website needs to be placed into offline mode (for example to allow time for a DB server migration) take the following steps |
| | 17 | 1. login to the web server either as root, or as another user through, ssh |
| | 18 | 2. open the site config file for editing (you will need to use sudo if not logged in as root) |
| | 19 | {{{ |
| | 20 | nano /var/www/vhosts/blincref.com/httpdocs-app/assets/implementation/impl.config |
| | 21 | }}} |
| | 22 | 3. locate the 'other configuration' section and set the site mode to offline. |
| | 23 | {{{ |
| | 24 | siteMode = offline |
| | 25 | }}} |
| | 26 | 4. save and exit nano |
| | 27 | All requests from that moment forward will receive an error message saying that the site is offline and that they should try again at a later time. |
| | 28 | |
| | 29 | To put the site back online, follow the above steps, however set the siteMode as online |
| | 30 | {{{ |
| | 31 | siteMode = online |
| | 32 | }}} |