Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • CiviCRM Core CiviCRM Core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare revisions
  • Issues 1,185
    • Issues 1,185
    • List
    • Boards
    • Service Desk
    • Milestones
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • DevelopmentDevelopment
  • CiviCRM CoreCiviCRM Core
  • Wiki
  • standalone

standalone · Changes

Page history
Update standalone authored Feb 20, 2023 by Rich's avatar Rich
Hide whitespace changes
Inline Side-by-side
standalone.md
View page @ 9a31a5c4
......@@ -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
......
Clone repository
  • CiviCRM v5.49 Schedule Reminder Notice
  • CiviEvent v5.47 Timezone Notice
  • Event Time Zone Implementation Planning
  • Replacing AngularJS
  • Testy tests
  • afform security
  • Home
  • issue labels
  • message templates
  • sample data
  • standalone
  • utf8mb4