User login

GNU-Linux

Confirming a merge as non-destructive

It worked this time, anyway. Reviewed the diff (for two different revisions? brain/memory not working), and then when it appeared none of the changes conflicted, ran the subversion update.

-bash-3.00$ svn diff sites/default/modules/change_agents/user_profiles/user_profiles.module

Index: sites/default/modules/change_agents/user_profiles/user_profiles.module

Installing XSL for PHP

The Hard Way

This link covers almost any kind of server or PHP setup, but it's very complicated:

Configuring and Testing PHP Servers for XSL Support
http://flex.sys-con.com/node/200299
Other notes on "Recompiling with XSLT support"
https://forums.misdivision.com/archive/index.php/t-188.html

Updating modules with Drush and Agaric's wrapper scripts

cd /sites/PROJECTNAME/www/sites/all/modules/
sudo /srv/scripts/agaric-updatemodule.sh MODULENAME

Drush can update everything at once without listing a module name but I'm not sure my script (attached) will add them to SVN right if it does (if my script even adds it to SVN right). You can and probably should do this on the test site first, note that everything's working (and hit update.php and make sure that doesn't break anything) and then SVN update live to get the changes over there (and hit update.php again on the live instance of the site, too).

Weird error from SVN on use of site deployment script

ben@server:~$ sudo /srv/scripts/agaric-newproject.sh 6 testing testing.com testing.org

svn: MKCOL of '/srv/svn/agaric/!svn/wrk/63dfc22d-3df4-47e9-8306-5e7dbcfefd62/agaric-sites/testing/apache': 405 Method Not Allowed (https://example.com)

Resolution

MySQL user at any host doesn't work, needs localhost in some local personal computer development environments

Where the user, password, and database are all "xmp".

ben@blackbox:/var/www/xmp$ mysql -u xmp -pxmp xmp < IMPORT_THIS_TO_YOUR_XMP_DB.sql

ERROR 1045 (28000): Access denied for user 'xmp'@'localhost' (using password: YES)

i can't even get that to work

Solution: it was the weird thing where telling it to allow the connection from % (any host) doesn't work when you use localhost

i think I had the problem on XAMPP, and Alan had it on Bitnami or whatever, and now on our Ubuntu box. Very very weird

CVS update, Piston update, and SVN commit of Drupal core upgrade for deployed site

I am not entirely sure Piston provides a vital role here, but for now I'd just like to say it worked!

Here is the very basic test. Ordinarily you wouldn't be updating core immediately after deploying a new site, but unlike me ordinarily you would be paying attention.

Many of these commands produce lots and lots of output which is skipped here, but some of which will be mentioned below for orientation and knowing what to expect. On a test server:

Virtual hosts on Mac OS X Leopard with XAMPP

To set this up with xampp on Mac OS X,

vi /Applications/xampp/etc/httpd.conf

And uncomment:

# Virtual hosts
Include /Applications/xampp/etc/extra/httpd-vhosts.conf

For subsequent additions of named hosts to your Apache configuration, start here:
vi /Applications/xampp/etc/extra/httpd-vhosts.conf

Added (following their dummy-host example quite closely)

SSH over the Web

Facebook comment left by high school friend and genius Jonathan Craven:

I know you're more of a PHP guy, but there's a nice Java webapp called SshWebProxy that lets you use ssh within a web browser when you're not allowed to use port 22. The interface is pretty primitive but it can really be useful in a jam.

Hmm, so a smartphone would be all I need?

Resolution

Done with Piston now, too

Too much damn trouble. Piston is out. We will just get drupal core from CVS directly, and use scripts to make it easy to get and update to the current version.

How to add users to or edit user passwords for a Subversion repository

add new users to an svn repository:

sudo vi svnrepo/conf/passwd

Resolution

Syndicate content