Installation instructions:
--------------------------

1. Create database:

    mysql -uroot -p -e "CREATE DATABASE civicrm DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci"
    mysql -uroot -p -e "grant all on civicrm.* to 'civicrm'@'localhost' identified by 'SECRETPASSWORD'"


2. Initialise database using one of the foollowing links:

    http://{drupal}/drupal7/modules/civicrm/install/index.php
    http://{wordpress}/civicrm

3. If CiviCRM complains about not-writeable configuration directory then
   enable writing to "/etc/civicrm":

    chmod -c u+w /etc/civicrm


Upgrade
-------

    https://docs.civicrm.org/sysadmin/en/latest/upgrade/wordpress/

Database schema upgrade:
    wp-admin/admin.php?page=CiviCRM&q=civicrm/upgrade&reset=1


Troubleshooting
---------------

Disable "Asset Caching" or (_Cleanup Caches_ and _Reset Paths_):

Debugging and Error Handling:
    wp-admin/admin.php?page=CiviCRM&q=civicrm/admin/setting/debug&reset=1

Cleanup Caches:
    wp-admin/admin.php?page=CiviCRM&q=civicrm/admin/setting/updateConfigBackend&reset=1


Notes
-----

 CiviCRM files are in "/var/lib/civicrm".
 CiviCRM configuration is in "/etc/civicrm".

 CiviCRM Drupal and Wordpress databases are not compatible. Do not attempt
 to share them. Migration from one to another is possible and described
 here:

    http://wiki.civicrm.org/confluence/display/CRMDOC/Migrating+from+Drupal+to+WordPress


PDF
---

"wkhtmltopdf" is not enabled by default. To activate it make sure the
following packages are installed:

    xvfb wkhtmltopdf

then enter "/usr/bin/xvfb-run -- /usr/bin/wkhtmltopdf" to field
"Path to wkhtmltopdf executable" in

    Administer --> System Settings --> Misc
