Memcache on DreamHost PS
Create an admin user:
https://panel.dreamhost.com/index.cgi?tree=vserver.adminusers&
Login to SSH using that admin, then run:
sudo apt-get install memcached
That’ll do it!
StatusNet Install Patch: Command Line Install
Opened a ticket on StatusNet: http://status.net/trac/ticket/2226
There was a recent need to automate the installation of StatusNet, so I went ahead and modified the install.php to allow for a command line interface to the install process, including a version which can be used to run the install from a script. I’m not a fan of the install.php at all, but it does the job – so rather then a rewrite I expanded it – at least until I have more time.
The modified file can be found here:
http://files.gimmesoda.com/dreamhost/software_patches/statusnet/install.php
The patch file is here:
http://files.gimmesoda.com/dreamhost/software_patches/statusnet/install.php.patch
So to handle the install process automatically:
php install.php dbhost sqltype dbname dbuser dbpass “Site Name Goes Here” siteurl fancyurl
The following might need explaining:
sqltype = mysql (it can also be pgsql)
Site name should be quoted, some characters like ! should be escaped.
siteurl = domain.com (not using http:// and no ending slash)
fancyurl is either true or false and if true the htaccess.sample should be renamed to .htaccess
So for the site I tested on:
php install.php mysql.gimmesoda.com mysql database dbuser dbpass “It’s Just Testing\!” testing.gimmesoda.com true
There is also an interactive command line install which is fun, try it out!
php install.php install
Simple Truth
that still burning night
your lips are my seduction
memories vivid
Installing Magento Commerce on DreamHost
*One quick update*
Thanks to Ashley for mentioning that I didn’t add the prefix option as an argument. Added it to the script and updated the content below to show how to use it.
-JJ
There has apparently been quite a few people having trouble with the Magento install on DreamHost. I was among them, so I took the advice of fellow co-workers and used the command line method for installation. It worked, but I figured it could be easier so I threw together a bash script for that purpose. You can grab a copy from the following url and save it to the folder you want magento installed in.
http://www.gimmesoda.com/install_magento.sh
You can also run these commands from the folder you will be installing it to.
wget http://www.gimmesoda.com/install_magento.sh;
wget http://www.magentocommerce.com/downloads/assets/1.3.2.4/magento-1.3.2.4.tar.gz;
chmod +x install_magento.sh;
To make it easier you don’t need to hard code any of your variables, rather you just enter them through arguments for the script:
./install_magento.sh
In order to install Magento all the following are required.
-h: MySQL Database Hostname
-d: MySQL Database Name
-u: MySQL Database User
-p: MySQL Database Password
-x: Database Prefix
-a: Magento Shop Address (Example: http://shop.example.com/)
-f: Magento Admin First Name
-l: Magento Admin Last Name
-e: Magento Admin Email Address
-r: Magento Admin Login
-s: Magento Admin Pass (Must have letters and numbers.)
Which ends up looking like this:
./install_magento.sh -h mysql.example.com -d database -u dbuser -p dbpass -x prefix -a http://store.example.com/ -f First -l Last -e admin@example.com -r admin -s adminpass1
If everything worked as expected (running this on DreamHost it should) you’ll be prompted with something similar to this:
SUCCESS: 88dd17d566d65128b6bb9357773d269b
Which is the Magento encryption key and is rather important, so the keep a copy of that key. I’ll be adding a cleanup argument to this script which will remove all files from the install directory, which is useful in the case of errors. If you have any questions just let me know!
Slacking
I really need to do some work with my CJ affiliate earnings. I’ve done basically nothing in the last three months and I wouldn’t mind boosting my earnings. WTH should help out with that, once it’s finished. :(
Playlist AWESOME
You HIMYM fans will recognize this. Some of the songs have been cut to decrease any potential for loss in tremors of psychitude.
1) You Give Love a Bad Name – Bon Jovi
2) The Humpty Dance – Digital Underground
3) Come Sail Away – Styx
4) Don’t Stop Believin’ – Journey
5) The Transformers Theme – Vince DiCola
6) You’re The Best Around – Joe Esposito
7) High Enough – Damn Yankees
8) Jessie’s Girl – Rick Springfield
9) Rock You Like A Hurricane – Scorpions
10) Hip Hop Hooray – Naughty By Nature
11) Change Of Heart – Tom Petty
12) Run Runaway – Slade
I’m worried now – we NEED more songs. Working on it….
Songs to add in:
I Wanna Rock – Twisted Sister ???
Paradise City – Guns N’ Roses *fist bump*
Lick It Up – KISS
Talk Dirty To Me – Poison
Client Site: ThriftyBeer.com
So one of my co-workers from a previous job had me build a site for them back maybe two years ago – it never actually got finished. About two months ago he gets a hold of me and asks me to finish up the job.
So a quick conversation or two and I’m back on the job for him. I was working mostly on my off time but the work got done. They launched about a week ago and just got written about over on the ocregister.com website, leading to a nice traffic spike! Sure enough people seem to be talking about it, I’m seeing traffic coming in from the ocregister site, twitter, facebook, myspace, email services and various bloggers are making note of it.
Nice to see something I developed successful!
Cheers to Brandon Dorn, David Echanique, and ThriftyBeer.com!
Laconica – Bugs, Extra Features and DH Compatability
—-Update—-
I custom compiled PHP in order to get the daemons running. Apparently PHP5 has the “pcntl” functions disabled by default and I had to compile with –enable-pcntl, with those functions enabled the daemons ran without error.
Also, I modified the script for compiling PHP5 from the DreamHost wiki, normally found here:
http://wiki.dreamhost.com/Installing_PHP5
I’ve modified it so that it will compile a few PECL extensions into the binary statically and I didn’t have to go through the hassle of build a phpize that would work with the non-root user allowed me on the DreamHost environment. So I added memcache and mailparse to the binary and they are both working smoothly.
As mentioned earlier I was trying to get memcache to work on the PS and I am glad to report that I have gotten it working. Currently it’s setup to use a max of 512MB worth of memory and seems to be running nicely.
CPU MEM% COMMAND
0.0 1.4 0:00.11 ./memcached -d -m 512 -l 66.33.199.189 -p 11211
All in all – http://www.theserandomwords.com/ is coming along smoothly.
—-End Update—-
So apparently laconica fails to remote subscribe on various hosts – not sure if it is happening everywhere (I doubt it) but in any case DreamHost and BlueHost installs seem to be affected on version 0.7.3. Not so much fun!
http://laconi.ca/trac/ticket/1408
I’m investing some time into getting this fixed mostly because this type of problem (an issue on a core feature) really really bugs me. I think I’ve gotten close but no luck yet – any devs reading? Wanna get your hands dirty!? I’m pretty sure the issue is related to the actions/remotesubscribe.php and/or the extlib/OAuth.php files.
Beyond that I have some good news! Since I’m on a DreamHost PS I was able to spend some time in getting two things setup for use with my laconica installs.
Sphinx and the OpenFire XMPP Server are both working smoothly and integrated into Laconica. Memcache is next on my list and maybe a plugin that will allow users to register OpenFire accounts when they signup with the laconica instance! Nice, no?
Finally, I really am not enjoying the current installer – I think I’ll streamline my current class and convert it to a much simpler/cleaner version and submit it as a replacement, with any luck we’ll be getting clean web-based installs soon, one way or another!
Anyhow I need some sleep. Night… or ummm Morning!
JJ
New Page – Installing Laconica
I finally got around to posting a rather bare-bones version of my own “Installing Laconica” page. I’ll add to it when I get more time but I couldn’t sleep so I figured I’d get it live.
Block a Country
A customer wants to block an entire country from visiting their site… not something I approve of but it sounds like an interesting project….