Changes between Version 2 and Version 3 of ServerMigration
- Timestamp:
- Apr 4, 2016, 11:08:54 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ServerMigration
v2 v3 24 24 siteMode = offline 25 25 }}} 26 4. save and exitnano26 4. save (CTRL-O) and exit (CTRL-X) nano 27 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 28 … … 78 78 this may vary depending on the specific version of *nix in use, other virtual hosts etc. Amend subsequent commands to match the specific path to the web root. Note also that the default user for Apache is www_data, however that may not be the case on the server in question, again, amend subsequent commands as required. 79 79 80 1. find the current version of the site from the subversion repository 81 - browse to https://svn.msdev.co.uk/blinc/release/ (you will have to login using the credentials supplied) 82 - in the list identify the most recent version. '''Note''' that the list sorts alphabetically, not numerically, so the latest version may not be at the bottom. At the time of writing 2014-04-04 the current version is 1.11 80 83 1. make the web root writeable by PHP 81 84 {{{ 82 85 sudo chown www_data:www_data /var/www/app.blincref.com 83 86 }}} 84 2. find the current version of the site from the subversion repository85 - browse to https://svn.msdev.co.uk/blinc/release/ (you will have to login using the credentials supplied)86 - in the list identify the most recent version. '''Note''' that the list sorts alphabetically, not numerically, so the latest version may not be at the bottom. At the time of writing 2014-04-04 the current version is 1.1187 87 3. save the attached install.php file to the web root folder. This can be achieved using 88 88 {{{ 89 wget https://trac.msdev.co.uk/blinc/raw-attachment/wiki/ServerMigration/install.php -O /var/www/app.blincref.com/install.php 90 }}} 91 4. edit the install.php file to set three parameters in the file, the supplied SVN username and password, and the current version identified in step 1 above. 92 {{{ 93 nano /var/www/app.blincref.com/install.php 89 94 95 and modify: 96 97 $svnUsername = '** SVN Username **'; 98 $svnPassword = '** SVN Password **'; 99 $version = '** Current version **'; 90 100 }}} 101 5. in a web browser navigate to the install.php file, e.g. https://app.blincref.com/install.php. This will export the necessary code into place on the server. It may take several minutes to complete. 102 6. once complete delete install.php 103 {{{ 104 rm /var/www/app.blincref.com/install.php 105 }}} 106 7. create the local configuration file by copying the default file 107 {{{ 108 sudo cp /var/www/app.blincref.com/assets/implementation/impl.config.default /var/www/app.blincref.com/assets/implementation/impl.config 109 }}} 110 8. modify the config file to set the correct !FileMaker host (as for moving the DB server above). Depending on other changes which may also have occurred it may be necessary to adjust other settings in this file, for example the configuration for sending mail. 111 9. create the certificate and upload folders and give PHP write access to them 112 {{{ 113 sudo mkdir /var/www/app.blincref.com/assets/certificates 114 sudo mkdir /var/www/app.blincref.com/assets/uploads 115 sudo chown www_data:www_data /var/www/app.blincref.com/assets/certificates 116 sudo chown www_data:www_data /var/www/app.blincref.com/assets/uploads 117 }}} 118 10. browse to the site to confirm that all is working: https://app.blincref.com 119 120 === Troubleshooting === 121 The most likely problems will arise form file permissions or module configuration. 122 1. If the install fails, ensure that you have given the (correct) web user write access to the document root folder 123 2. if you receive errors when attempting to run the app, firstly ensure that you have set the DB server parameters correctly, and that they have been saved to the config file. 124 3. depending on the server configuration other error messages may be displayed on screen to indicate where issues may lie. If not (which they shouldn't be - all errors should be turned off in the php.ini file on a production server), add the following to the top of index.php immediately after <?php: 125 {{{ 126 error_reporting(E_ALL); 127 ini_set("display_errors", 1); 128 }}} 129 - you may see (many) depreciation errors, these can be ignored 130 - you should see the cause of the actual problem, likely a php fatal error, this should indicate where the cause of the problem is, and Google should be able to provide a solution to that issue.
