Skip to content

Commit d9c5124

Browse files
authored
Merge pull request #40 from OS2Forms/readme-update
2 parents 18e56ea + 2c94b09 commit d9c5124

1 file changed

Lines changed: 38 additions & 6 deletions

File tree

README.md

Lines changed: 38 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,16 +101,18 @@ For a more detailed description, you could look at the `web/core/INSTALL.txt` [h
101101

102102
* A HTTP server such as [Apache](https://httpd.apache.org/) that supports PHP
103103
* A database service such as [MySQL](https://www.mysql.com/)
104-
* PHP 7 with the following extensions enabled:
104+
* PHP 7.4 with the following extensions enabled:
105105
* gd
106106
* curl
107107
* simplexml
108108
* xml
109109
* dom
110110
* soap
111111
* mbstring
112+
* zip
112113
* database specific extension such as the mysql extension
113114
* [Composer](https://getcomposer.org/)
115+
* [Drush launcher](https://github.com/drush-ops/drush-launcher)
114116

115117
### Installing
116118

@@ -129,7 +131,26 @@ cd os2forms8
129131
composer install --no-dev
130132
```
131133

132-
4. Generate a salt string and insert it in web/sites/default/settings.php
134+
4. Create local settings
135+
```sh
136+
cp web/sites/default.settings.local.php web/sites/default/settings.local.php
137+
```
138+
5. Add databases settings to web/sites/default/settings.local.php
139+
140+
```
141+
$databases['default']['default'] = array (
142+
'database' => '[dbname]',
143+
'username' => '[dbuser]',
144+
'password' => '[dbpass]',
145+
'prefix' => '',
146+
'host' => '[dbhost]',
147+
'port' => '',
148+
'namespace' => 'Drupal\\Core\\Database\\Driver\\mysql',
149+
'driver' => 'mysql',
150+
);
151+
```
152+
153+
6. Generate a salt string and insert it in web/sites/default/settings.local.php
133154
```sh
134155
# Generate salt string - this will output a new salt string
135156
./vendor/bin/drush php-eval 'echo \Drupal\Component\Utility\Crypt::randomBytesBase64(55) . "\n";'
@@ -140,18 +161,29 @@ composer install --no-dev
140161
$settings['hash_salt'] = ''; // Insert the generated salt string here
141162
```
142163

143-
5. Configure trusted hosts in web/sites/default/settings.php.
164+
7. Configure trusted hosts in web/sites/default/settings.local.php.
144165
For more information on how to write this, see the section for [Trusted Host settings](https://www.drupal.org/docs/installing-drupal/trusted-host-settings)
145166
in the official Drupal installation guide.
146167
```php
147-
// web/sites/default/settings.php
168+
// web/sites/default/settings.local.php
148169

149170
$settings['trusted_host_patterns'] = [''];
150171
```
151-
6. Visit the url for the os2forms application and follow the instructions
172+
8. Install Drupal
173+
174+
Using drush command:
175+
```
176+
# To install default OS2Forms
177+
drush si os2forms8 --account-pass=account_password --site-name="OS2Forms"
178+
179+
# To install OS2Forms 2
180+
drush si os2forms_forloeb_profile --account-pass=account_password --site-name="OS2Forms med forløb"
181+
```
182+
183+
Or visit the url for the os2forms application and follow the instructions
152184
* Select the os2forms install profile for a default os2forms installation
153185

154-
7. Enable OS2Forms modules
186+
9. Enable OS2Forms modules
155187
```sh
156188
./vendor/bin/drush en os2forms, os2forms_nemid, os2forms_dawa, os2forms_sbsys
157189
```

0 commit comments

Comments
 (0)