- 2011-09-01: Building an Unfuddle to Drupal Casetracker import module using Migrate
- 2011-08-28: Back from DrupalCon London and its WSCCI code sprint. Wow.
- 2010-12-21: Madame Figaro brand new site by OSInet and others
- 2010-08-16: France.FR is back online with OSInet and Typhon
- 2010-06-15: the new http://www.franceculture.com/, which OSInet helped reach its performance goals, is now online
- 2010-06-13: the OSInet Features Server is live
- 2009-11-29: mongodb_watchdog module created by dereine, ported to D7 by me in about half an hour, and migrated in a larger MongoDB project by damz before the hour ended. Wow...
- 2009-02-03: the new Drupal-based site for the golden jubilee of the french "Ministère de la Culture", which OSInet helped build, is now online
Updating drupal without file access
A few days ago, it was brought to my attention that something had been broken on the PHP-GTK community site during the 5.0 RC2 upgrade. The problem was easily identified as being codefilter.module having been removed during the upgrade and not reinstalled. Of course, not being at my office, I did not have access to the FTP passwords, but just to my admin account, and I did not want to leave the community members in the cold, so I used this small trick.
- login to the site with a privileged account, allowed to
make use of
devel.module - grab the module from drupal.org
- enable the
Execute codeblock from Devel - edit some node, no matter which
- attach the module files to the node being edited, not listing them
- in the
Execute codebox, use commands like the following, one at a time to make sure all goes well (typos !). Supposing yourfilesdirectory is named "files" under the site root:- First, a check to make sure everything is where it's supposed
to be:
system('ls -l files sites/all/modules'); - Then create the module directory:
system('mkdir sites/all/modules/codefilter'); - Then copy the files over to it:
system('cp files/codefilter.* sites/all/modules/codefilter');
- First, a check to make sure everything is where it's supposed
to be:
- detach the files from the node where you had attached them
- the module is now there in your modules list, ready to be enabled.
As you can see, nothing spectacular, but it can come in handy when you're missing normal tools.
Note 1: this will probably only work differently when file transfers are set to "public", which is the default.
Note 2: I used cp instead of mv
intentionally: this means the files won't move from the drupal files
directory without drupal knowin g it, and they can be removed
cleanly when you detach them from the node.





Somewhat dangerous
Unique account
Actually, I suspect this is a common enough situation for shared hostings, on which you only have one account allocated, used for both FTP and Apache.
Which leads to an obvious question: is there a note about permissions in the Best Practices section (or elsewhere) ? I couldn't find one.
UPDATE: it's now a feature request for Drupal 6.