Search:
* Drupal 7 is in /etc/drupal/7 * Drupal 8 is in /etc/drupal/8 ==Update drupal== * download new minor version to, say, /tmp/drupal-7.28.tar.gz * back up: drupal=8 cd /etc/drupal/ date=`date +%Y-%m-%d` file="${drupal}.${date}.tar" echo $file tar cfz ${file} ${drupal} untar the release, stripping off the first path element: cd $drupal gzip -c -d /tmp/drupal-7.XX.tar.gz | tar vxf - --strip 1 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. VER=7 /bin/chown -R daniel:users /etc/drupal/${VER}/ /bin/chown -R www-data:www-data /etc/drupal/${VER}/sites/*/files /bin/chown -R www-data:www-data /etc/drupal/${VER}/modules /bin/chown -R www-data:www-data /etc/drupal/${VER}/sites/all/modules and finally, run update.php on all websites :-( ==Create A New Site== * Point the dns for fruitcake.org and www.fruitcake.org at bonmot.ca * Copy, paste, and modify a file for fruitcake.org in /etc/apache2/sites-enabled site=fruitcake.org cd /usr/share/drupal7/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== * e.g. for the site http://bonmot.ca/fruitcake/ * Create (or copy & rename) a file in /etc/apache2/sites-enabled/bonmot.ca.fruitcake.conf Alias /fruitcake /usr/share/drupal7 * ... and restart apache2 with /etc/init.d/apache2 reload * create the database as above * run shellscript above with site=bonmot.ca.fruitcake * cp default/default.settings.php $site/settings.php * chown www-data:www-data $site/settings.php * go to the url and follow the setup wizard, and then into theme hell. ==Cool Features== User List Page * Install "Views" * Follow the looong list [http://views-help.doc.logrus.com/help/views/example-users-by-role here]. Recently changed pages report * enable "Tracker" built-in module.
Summary:
This change is a minor edit.
To save this page you must answer this question:
What do you get when you remove the ARIS from Solaris?
Username: