Update standalone authored by Rich's avatar Rich
......@@ -33,62 +33,7 @@ See this meta-issue: https://lab.civicrm.org/dev/core/-/issues/2998
# Installation
## Using buildkit
Apply this buildkit patch: https://github.com/civicrm/civicrm-buildkit/pull/662
Then create the site:
```
civibuild create test1 --type standalone-clean --civi-ver master
```
More info on civibuild: https://docs.civicrm.org/dev/en/latest/tools/civibuild/
## Using composer
Directories:
```
cd /var/www/
git clone https://github.com/civicrm/civicrm-standalone standalone
cd standalone
composer install
```
And then change some permissions:
```
# Keeping smarty and logs files outside the public webroot
chgrp www-data data
chmod g+w data
# Publicly accessible files (ex: upload/ext, upload/persist)
mkdir -m2770 web/upload
chgrp www-data web/upload
```
About composer: Presumably we will want a composer template, so that people can also build their own composer project. The `civicrm/civicrm-standalone` git repo was created mostly to package the `index.php` and help setup the directories, but also has an htaccess file, config template and other things to get started.
### Initialize the database using GenCode
Run the following shell command. (The brackets mean it runs in a subshell so doesn't change your working directory.)
```
( cd vendor/civicrm/civicrm-core/xml && php GenCode.php 0 0 Standalone; )
```
Then you can use the civicrm.mysql (schema) and civicrm_data.mysql (base data) files in `vendor/civicrm/civicrm-core/sql` (or if you want sample data you can use civicrm_generated.mysql instead of civicrm_data.mysql).
The following assumes you have stored credentials for mysql set up in your `~/.my.cnf` file. If not, you'll need to add `-u <user> -p <pass>` arguments to the `mysql` commands below.
Example:
```
mysql -e "CREATE DATABASE standalone_civicrm;"
mysql standalone_civicrm < vendor/civicrm/civicrm-core/sql/civicrm.mysql
mysql standalone_civicrm < vendor/civicrm/civicrm-core/sql/civicrm_Data.mysql
```
Currently, if you want to install Standalone for the purposes of development or interest, you can do so by following the instructions at https://github.com/artfulrobot/civicrm-standalone/blob/artfulrobot-clean-install-paths/README.md
# Webserver configuration
......
......