18.11.2015 Views

Beginning Drupal 8

Todd Tomlinson - Beginning Drupal 8 (The Expert's Voice in Drupal) - 2015

Todd Tomlinson - Beginning Drupal 8 (The Expert's Voice in Drupal) - 2015

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 14 ■ Administering Your <strong>Drupal</strong> Site<br />

Figure 14-10. Available module and theme updates<br />

In a case where <strong>Drupal</strong> core is updated, the process is slightly more complex. To update <strong>Drupal</strong> core:<br />

1. Make sure you back up your database!<br />

2. Make sure you back up your entire <strong>Drupal</strong> directory!<br />

3. Using Drush, run the following command: drush up drupal.<br />

4. Test your site.<br />

An alternative approach for updating <strong>Drupal</strong> core is to first back up the modules, profiles, sites, and<br />

themes directories in the root directory of your site, and the .htaccess and web.config files. Once you have<br />

secured copies of those directories, download <strong>Drupal</strong> core and extract the archive file in the root directory<br />

of your site. The extraction process will place <strong>Drupal</strong> in a subdirectory with a name of the version that you<br />

downloaded (e.g., drupal-8.0.0-beta7). You’ll need to move all of the files from this subdirectory to the<br />

root directory of your site. To do so on Linux/OS X, use the following commands:<br />

mv * ../<br />

mv .* ../<br />

On other operating systems, use the tools available to you to move files and directories.<br />

Once you have moved <strong>Drupal</strong> into place, proceed with moving the directories and files that you backed<br />

up into their respective locations in the root directory of your site.<br />

Approving Requests for User Accounts<br />

<strong>Drupal</strong> lets you, the site administrator, determine how user accounts are created on your website. You can<br />

• Allow site visitors to create their own accounts without approval by a site<br />

administrator.<br />

• Allow site visitors to register an account, but require that a site administrator approve<br />

it before allowing the visitor to use the account.<br />

• Restrict account creation to only the site administrator.<br />

The approach you use is completely dependent on whether you allow visitors to have their own<br />

accounts. There is no reason to provide this feature if you don’t provide interactive features on your site.<br />

If you provide limited capabilities for authenticated users (for example, if you don’t enable permissions for<br />

any administrative features to the generic “authenticated users” category) and you don’t want to be bothered<br />

166

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!