Showing revision 61

Drupal

DrupalUpgrade notes here

Set Yer Var

 drupal=7  OR
 drupal=8
 drupal=9

Update drupal

untar the release, stripping off the first path element:

 cd /etc/drupal/${drupal}
 tar vxf /tmp/drupal-7.72.tar.gz --strip 1

Now put the permissions back, below

Update Modules

Before you update the modules you have to change the whole sites/ and modules/ directories to www-data permission:

 cd /etc/drupal/${drupal}/
 chown -R www-data:www-data sites/ modules/ themes/

.. then run the module update code admin--> reports --> updates

Now, put the permissions back; fix the permissions so that drupal can write to files/* and install its own modules, but not to the rest.

 /bin/chown -R daniel:users /etc/drupal/${drupal}/
 /bin/chown -R www-data:www-data /etc/drupal/${drupal}/sites/*/files/
 /bin/chown -R www-data:www-data /etc/drupal/${drupal}/modules/

and finally, run update.php on all websites :-(

Create A New Site

 site=fruitcake.org
 drupal=9
 cd /etc/drupal/${drupal}/sites/
 mkdir $site
 cp default/default.settings.php ${site}/settings.php
 for i in files modules themes ; do mkdir ${site}/${i} ; done
 chown -R www-data:www-data ${site}

Now create the database for it:

 site=fruitcake
 mysqladmin -uroot -p create $site
 mysql -uroot -p 
   grant all on fruitcake.* to 'fruitcake'@'localhost' identified by 'password';
   flush privileges;
   exit

You're done. Go to http://fruitcake.org/ and follow the setup wizard, giving it the database info.

Now enter theme selection and configuration hell - but that's your problem.

Create A New Sub Site

 Alias /fruitcake /usr/share/drupal7

Slide Shows / Sliders / Slideshows

Instructions here: https://www.ostraining.com/blog/drupal/drupal-8-slideshows/

Cool Features

User List Page

Recently changed pages report

Solar Nova Scotia

Social Media: Structure --> Blocks --> Custom Block Library --> Social Footer

2021-06 Install Drupal 9

 create /etc/apache2/sites-available/drupal9.conf
 a2ensite drupal9
 https://bonmot.ca/drupal9/core/install.php
 ... create the database