Changes between Version 2 and Version 3 of ServerMigration


Ignore:
Timestamp:
Apr 4, 2016, 11:08:54 PM (11 years ago)
Author:
steve.winter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ServerMigration

    v2 v3  
    2424siteMode                                                        = offline
    2525}}}
    26  4. save and exit nano
     26 4. save (CTRL-O) and exit (CTRL-X) nano
    2727All 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.
    2828
    … …  
    7878this 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.
    7979
     801. 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
    80831. make the web root writeable by PHP
    8184{{{
    8285sudo chown www_data:www_data /var/www/app.blincref.com
    8386}}}
    84 2. find the current version of the site from the subversion repository
    85  - 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.11
    87873. save the attached install.php file to the web root folder. This can be achieved using
    8888{{{
     89wget https://trac.msdev.co.uk/blinc/raw-attachment/wiki/ServerMigration/install.php -O /var/www/app.blincref.com/install.php
     90}}}
     914. 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{{{
     93nano /var/www/app.blincref.com/install.php
    8994
     95and modify:
     96
     97$svnUsername                                            = '** SVN Username **';
     98$svnPassword                                            = '** SVN Password **';
     99$version                                                = '** Current version **';
    90100}}}
     1015. 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.
     1026. once complete delete install.php
     103{{{
     104rm /var/www/app.blincref.com/install.php
     105}}}
     1067. create the local configuration file by copying the default file
     107{{{
     108sudo cp /var/www/app.blincref.com/assets/implementation/impl.config.default /var/www/app.blincref.com/assets/implementation/impl.config
     109}}}
     1108. 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.
     1119. create the certificate and upload folders and give PHP write access to them
     112{{{
     113sudo mkdir /var/www/app.blincref.com/assets/certificates
     114sudo mkdir /var/www/app.blincref.com/assets/uploads
     115sudo chown www_data:www_data /var/www/app.blincref.com/assets/certificates
     116sudo chown www_data:www_data /var/www/app.blincref.com/assets/uploads
     117}}}
     11810. browse to the site to confirm that all is working: https://app.blincref.com
     119
     120=== Troubleshooting ===
     121The most likely problems will arise form file permissions or module configuration.
     1221. If the install fails, ensure that you have given the (correct) web user write access to the document root folder
     1232. 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.
     1243. 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{{{
     126error_reporting(E_ALL);
     127ini_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.