Nov 16

Using Drush on Pantheon sites

Problem: How to use Drush on Pantheon

I am currently working on a couple of test sites on Pantheon with installations of Open Atrium. To develop my site I will need to create a sub-theme of the OA default theme. See here and here.

The best way to do this would be with Drush but at first sight how to do this seems impossible or very complex.

Using Drush on Windows looks like a nightmare, so my first thought was to clone the site using Git to a VirtualBox running Ubuntu. However, after running some tests it became clear that this wouldn’t work because the site database wasn’t available to the clone. Drush wouldn’t work so this was a non-starter.

After further reading on Pantheon I came across Drush Aliases. Simply download the aliases, put them into your Drush directory (on any system) and use them to send Drush commands directly into your site. You need to make sure your site is in SFTP mode to allow for changes to be written to the site.

Aliases are in the format:


(version = dev/test/live)

Example command:

drush en module_name -y

(to download and enable a module on the dev site)

So I’m still using my VirtualBox but only so I can run Drush in a Linux environment which is easy to install. I don’t need the clone repo because the Drush commands are sent directly to the Pantheon site. Changes are seen straightaway in your browser (either back in Windows world or in a browser on the VM) and you just switch back to Git mode to commit them.

Say Boom!


Further tips:

the .drush folder is a hidden folder. In the file browser press CTRL-H to show hidden files/folders. In the terminal type ls -a to show hidden files/folders in the current directory. So

cd .drush

is what you need.





Oct 10

Win 8 “Modern Apps” block Apache

So Apache won’t start due to something blocking Port 443! Change port to something else and it still doesn’t work! Grrrr!

But googling gives possible answer – Skype! Upon investigation it seems I have 2 Skypes installed – the ordinary Desktop version and the so-called Modern App version. This horrendous piece of shit can’t be removed in the ordinary way so this is what you do…

Start PowerShell. You might not even know you’ve got it. I didn’t and tried to download it. Fortunately the install didn’t work. I discovered it’s already installed on Win 8 so start it by typing PowerShell at the Start button – you get a nice blue console window.

See what apps you’ve got on your system:


Yeah, I know, there’s tons of crap you never knew about and never wanted! Bing Maps and Media Player stuff – you can delete most of it. (though some of it refuses to go, such as the Windows Store – maybe next time…)

Type in this command:


You get a prompt to enter the package name.

Find the App you want to remove and copy the PackageFullName

(In PowerShell, select the text and right click, to paste right click at the prompt)

Paste in the name and press Enter and it’s gone…hopefully.

You may have to restart.

When I tried XAMPP again it worked lovely, with Apache operating on ports 80 and 443.


Thanks go to this page.

Jan 26


What is Mylyn?

Jan 26

Drupal Sub-Themimg

  • How do Drupal sub-themes operate?
  • What do they inherit from the base theme?
  • Where do all the new files go?
  • What gets changed in the base theme?


Jan 20

Connecting Alfresco with WebDAV

You can connect with Alfresco using FTP, CMIS and WebDAV as well as SharePoint.

What functionality can you get from each of these methods?

See here for more info.



You can link directly into the repository tree via a link on your computer.


BUT, before you try it do this.

Start regedit and go to:


Modify BasicAuthLevel – set it to 2.

Now, restart your computer, or it won’t work.



Enter the address of your web host:


Like this:

Click through, typing in a name for your link on the way and you should connect to the server – enter your credentials and Hey, Presto! the repository will open.

Looking at the link properties the address seems to be resolved internally somehow and looks like this:


However, typing it this way doesn’t seem to work.

Jan 18

Alfresco – email configuration

To connect using Gmail



add/modify this:

### E-mail site invitation setting ###

#### Email settings ###
mail.testmessage.subject=Outbound SMTP
mail.testmessage.text=The Alfresco Outbound SMTP email subsystem is working.

Jan 17

Alfresco – Install Community Edition 5.0.b/GoDaddy/Ubuntu 14.04

How to install Alfresco on GoDaddy server.

Having struggled with installation using extended step-by-step instructions I was pleased to find I could use this Alfresco installer. It  will install everything you need to run Alfresco, eg Java, Solr, etc.

I have added extra explanation for the steps where I, as a beginner, found difficulties.

After the GoDaddy bit it should apply to most Ubuntu servers

Set up these connections:

  • GoDaddy (your server management)
  • Putty – SSH into your server
  • Browser – to view the results
  • FileZilla – using SFTP

re/build GoDaddy server:

  • domain = (a FQDN)
  • set servername = xxxxxxxxx
  • Ubuntu 14.04/no control panel

Wait for reprovision and then check:

go to your URL – “Apache2 – It works!”

change access passwd for root/user

this changes passwd for both root and your other GoDaddy user – you should change passwd for users-not-root later

SSH into server – using PuTTY or Filezilla – commands are given for PuTTY

make directories:

mkdir /opt/alfsource

mkdir /opt/alfresco

you may need to change permissions to upload/execute files, also so it can be accessed by FileZilla:

sudo chmod 777 /opt/alfsource

sudo chmod 777 /opt/alfresco

upload the installer file to /opt/alfsource

again, change permissions to make it executable;

chmod 777 alfresco-community-5.0.b-installer-linux-x64.bin

If you run the Alfresco installer right away you will get this warning about uninstalled libraries:

Some or all of the libraries necessary to support LibreOffice were not found on your system: fontconfig libSM libICE libXrender libXext
You are strongly advised to abort this installation and install them first using your package manager.
For more information, please refer to

So, on fresh Ubuntu install run:

apt-get update

apt-get install libice6 libsm6 libxt6 libxrender1 libfontconfig1 libcups2

The URL in the message points to the Alfresco documentation with further information.

Afterwards you may still get a warning – I did, I ignored it! You can do that sometimes, the trick is knowing when.

Navigate to alfsource directory and run alfresco installer


you could try this without being in the directory


see this page

The installer will install Java for you if you want. You can install it yourself, ensuring you get the latest version. See this post.

You can install in 2 ways –

[1] Easy – everything done on defaults

[2] Advanced- make your own choices on which options you want

Using [2], these are the installation options and my choices:

  • Language
  • Installation type – Easy or Advanced (I chose Advanced)
  • Java – already got it
  • PostgreSQL – yes
  • Solr1 – NO
  • Solr4 -yes
  • SharePoint – yes
  • Web Quick Start – yes
  • Google Docs Integration – yes
  • LibreOffice – yes
  • Installation Folder – /opt/alfresco
  • Database Server Parameters – port 5432
  • Tomcat Port Configuration – Web Server domain = (your server FQDN) – Tomcat Server Port = 8080; Tomcat Shutdown Port = 8005;Tomcat SSL Port = 8443;Tomcat AJP Port = 8009;
  • Alfresco FTP Port = 21
  • Alfresco RMI Port = 50500
  • Alfresco SharePoint Port = 7070
  • Install as a service – yes
  • LibreOffice Server Port = 8100

You may get a warning at this point:

SMTP TCP port in use: 25

see here for more info


The installer should now complete.

Go to your domain to see.






pu commands to control services;Manually start the Alfresco server:
service alfresco startTo start only the tomcat service:
service alfresco start tomcatTo fully stop Alfresco, you must stop all the services:
service alfresco stop
start/stop/restart Alfresco and TomcatIt does not seem to work if you use service tomcat start
br On installation Alfresco will start up – go to your site to check  The Alfresco Share URL =
 fz It probably won’t work, so change some settings:go to /opt/alfresco/tomcat/shared/classes/alfresco-global. properties(always restart after changes)
 fz check these lines – put in your own server/domain settings if not there already alfresco.context=alfresco
 fz  email settings;add these lines for gmail server use: ### IMAP server setting ###
imap.server.port=143 E-mail site invitation setting ### Sample Gmail settings
mail.smtps.auth=true### E-mail test message setting ###
mail.testmessage.subject=Outbound SMTP
mail.testmessage.text=The DB-Alfresco Outbound SMTP email subsystem is working.
At some point I got a message from gmail saying they had detected a suspicious login attempt to my email. This appears to be because my server is somewhere in the US while I’m in the UK. You may need to sort this out.


Jan 17

Installing JAVA on Ubuntu 14.04

To run Alfresco on your Ubuntu server you will need Java. The installer will add this for you but you can install it yourself. This ensures you have the latest version.


based on this web page

I use a combination of FileZilla and PuTTY

Get the latest JDK from the Oracle website


Upload it to a directory on your server

eg /tmp/

Make a directory for your Java installation

mkdir /opt/java

Go to the tmp directory and untar the file

tar -zxf JDK_TAR_FILE -C /opt/jdk

Replace caps above with the name of the JDK file you have downloaded

You will then have a folder with the name of the JDK version, eg  jdk1.8.0_25

Set default JVM

update-alternatives –install /usr/bin/java java /opt/jdk/JDK_VERSION/bin/java 100


update-alternatives –install /usr/bin/javac javac /opt/jdk/JDK_VERSION/bin/javac 100



update-alternatives –display java


update-alternatives –display javac


Dec 11

Customising Open Atrium

How to change that Home page image, the colours, the slogan, and all without compromising updates!

path to image folder sites/all/imagefolder/image.png
 Change OpenAtrium branding through UI


Dec 09

Open Atrium – installing on GoDaddy server

How to install Open Atrium on GoDaddy server.

where to do what…

  • gd = GoDaddy (your server management)
  • pu = Putty – SSH into your server
  • br = browser
  • fz = FileZilla – using SFTP
gd re/build GoDaddy server
  • domain = (a FQDN)
  • set servername = xxxxxxxxx
  • Ubuntu 14.04/no control panel

Wait for reprovision and then check:

go to your URL – “Apache2 – It works!”

gd change access passwd for root/user this changes passwd for both root and your other GoDaddy user – you should change passwd for users-not-root later
pu  update repos apt-get update
install LAMP apt-get install lamp-server^
pu check php version php -v
pu check mysql version mysql -V
fz  change php.ini settings


memory_limit = 256M

max_execution_time = 60

upload_max_filesize = 8M

fz change mySQL my.cnf max_allowed_packet = 32M
fz set FQDN


add this line at end:


pu restart Apache  service apache2 restart
check php

create a file called phpinfo.php in html/test

add this code:




navigate to and see all your php settings

check php extensions php -m
add gd extension

 apt-get install php5-gd


create sites/default/files set permissions to 777

create settings.php

copy from default.settings.php

set permissions to 666

fz upload Open Atrium to html folder  about 7800 files!! go for coffee.
navigate to
MySQL user setup:
show mysql hostname select @@hostname;
check if mysql is running mysqladmin -u root -p status
login to mysql mysql -u USERNAME -p
check databases  mysql> show databases;
create new sql database  mysql> CREATE DATABASE xxxxx;
give permissions for new database  grant all on databasename to ‘username‘@localhost identified by ‘password‘ ;
show privileges for user  show grants for ‘root’@’localhost';
give all privileges grant all on *.* to ‘username’@localhost identified by ‘password’ ;

username = amp1**********1

pw = Sq***************



Older posts «