Some notes and pointers on the Drupal EdWeb distro

EdWeb is a Uni provided Drupal distribution. It is what will power the central web service, and will replace Polopoly.

It can be downloaded from http://dist.drupal.is.ed.ac.uk/ . Click "Getting Started with Drupal" -> "Edweb Distribution" . You can also "Login/Register" at that site (non-EASE) to see some of the bugs/issues.

IS currently can't provide any specific technical help with EdWeb (they are spending all their time developing it), so there's a self-help community wiki site https://www.wiki.ed.ac.uk/display/CSEDR/Home+-+CSE+Drupal+and+EdWeb+support

So far I've only tried the 1B "ZIP way" of installing EdWeb from https://www.wiki.ed.ac.uk/display/CSEDR/EdWeb+installation+hints. May 2015 - note the "ZIP way" is nolonger documented, you have too look back to version 35 of that page if you want to do it that way.

For a new installation you'll need to create a new, empty, database and have a suitable username and password to give to drupal/edweb so it can create the tables etc. Look at drupal.org for https://www.drupal.org/documentation/install/create-database, but it boils down to the following MySQL:

CREATE DATABASE databasename CHARACTER SET utf8 COLLATE utf8_general_ci;
CREATE USER username@localhost IDENTIFIED BY 'password';
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES ON databasename.* TO 'username'@'localhost' IDENTIFIED BY 'password'; 

Obviously replacing databasename, username, password with values appropriate for your site.

Links

Mailing Lists

Various possibly useful mailing lists:

Installing fixes

With 1.7 of the distro, trying to install from the command line via drush gives a bogus error about max_execution_time not being >60. From the command line, php always reports 0 for the max execution time, meaning "unlimited". I fixed this by editing edweb/profiles/uoe_distribution/uoe_distribution.install and changing:

@@ -221,7 +221,7 @@
 
   if ($phase == 'install') {
     $max_execution_time = (int) ini_get('max_execution_time');
-    if ($max_execution_time < 60 and $max_execution_time != 0 ) {
+    if ($max_execution_time < 60) {
       $requirements['uoe_distribution_execution'] = array(
         'title' => $t('PHP Max Execution Time'),
         'value' => ini_get('max_execution_time'),

Update 28/1/2016 My fix has been incorporated into the current dev version, and will be in the next stable version - 1.8.

I also had problems with the recommended drush --db-url path as I didn't have the mysql db in the usual /var/lib/mysql location and it couldn't find the socket file. This was solved by using "127.0.0.1" instead of "localhost" in the path.

drush site-install uoe_distribution --db-url=mysql://user:password@127.0.0.1/newdb --site-name="New 1.7 install" --site-mail="neil.brown@ed" --account-pass=password

Installing the dev version via drush

The magic drush command is:

drush pm-download uoe_distribution-7.x-1.x-dev --source="http://dist.drupal.is.ed.ac.uk/release-history" --destination=/disk/data --drupal-project-rename=ed
Altered for your destination, projectname, and dev version you want.

Some manual tweaks after installing

You'll probably get memory errors from drupal unless you have given PHP at least 512MB of memory to play with, some suggest 1GB. You could do this by:

  echo "memory_limit = 512M" > /etc/php.d/edweb.ini
for example. Or better still via LCFG file component.

The drupal status report page (/admin/reports/status) warned me about a few things that were solved with the following (assuming your edweb distro is installed at /var/www/edweb/):

chown -R apache /var/www/edweb/sites/default/files
rm -rf /var/www/edweb/profiles/uoe_distribution/libraries/plupload/examples/

drush and php version

Apache is likely to be configured to run version >= 5.6 of php, but the default command line environment will likely be the default php 5.4. To have drush run the version you expect there's a couple of options. First spawn a new shell with the environment fudged with:

scl enable rh-php56 bash
Then do drush as normal.

Or this is another way

DRUSH_PHP="/opt/rh/rh-php56/root/bin/php" drush

Try drush status or drush php-eval "echo phpversion();" to see what versions/ini files are being used.

Other Hints from UWP Tech peer group

Possible things to try if things start acting up. As yet I don't know how many of them are "safe", presumably all.

-- NeilBrown - 26 Mar 2015

Topic revision: r13 - 25 Nov 2020 - 14:45:58 - NeilBrown
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
This Wiki uses Cookies