GNU-Linux
Updating modules with Drush and Agaric's wrapper scripts
cd /sites/PROJECTNAME/www/sites/all/modules/
sudo /srv/scripts/agaric-updatemodule.sh MODULENAMEWeird 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)
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
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.
Virtual hosts on Mac OS X Leopard with XAMPP
On xampp for Mac OS X,
vi /Applications/xampp/etc/httpd.conf
And uncommented:
# Virtual hosts
Include /Applications/xampp/etc/extra/httpd-vhosts.conf
vi /Applications/xampp/etc/extra/httpd-vhosts.conf
Added (following their dummy-host example quite closely)
ServerAdmin webmaster@localhost
DocumentRoot "/sites/example/htdocs"
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.
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.
https://example.com/repospath/svn/agaric/drupal-core/drupal-6: (Not a valid URL)
https://example.com/repospath/svn/agaric/drupal-core/drupal-6
Ebony-II:~ ben$ sudo /srv/scripts/agaric-checkout.sh peacetones
Make a new Drupal site project in the Agaric system
Run from anywhere on the test or development server:
sudo /srv/scripts/agaric-newproject.sh 5 myagaric myagaric.com my.agaricdesign.com
You'll see a fair amount of output, and the last line you see should be:
Site myagaric installed; run /etc/init.d/apache2 reload to enable.
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
See what Subversion repository you are drawing from with vi .svn/entries
See from what repository checked out subversion code is from by looking at the entries file in a dot SVN folder:
ben@server:/var/www/drupal-5-live/sites/democraticmedia.ca$ vi .svn/entries
Here is the key line, "https://dev.grassrootsconnection.org/svn/drupal/anderson/trunk/democraticmedia.ca," from this output:
8
dir
1375
vi .svn/entries
