The Blog of a Programmer
Archive for July, 2008
Another Laconica Easy Install Script Update
Jul 18th
*** Start News ***
I’m currently working on a web-based installer for laconica:
http://www.gimmesoda.com/2008/10/03/laconica-web-based-installer/
*** End News ***
I checked up on Laconica and did some testing to see if the new version would install without any real changes to my script.
ERROR 1071 (42000) at line 163: Specified key was too long; max key length is 1000 bytes
Ouch! Looking up the error I found that a quick and easy fix to this is to change the DB table to InnoDB, which means a modification to the laconica.sql file! I’ve added a small section to my scripts which removes the default sql file, and downloads a very slightly modified version from here:
http://files.gimmesoda.com/laconica/
Which BTW is the new location for a copy of my files. I’m updating my other posts with the correct location now. Also, I can now confirm that this new copy of the script installs 0.4.4 without any problems. Let me know if you run into any.
Files can be found here:
http://files.gimmesoda.com/laconica/install_run.sh
http://files.gimmesoda.com/laconica/install_pear.sh
http://files.gimmesoda.com/laconica/install_laconica.sh
-JJ
Once again:
For those of you who don’t already have a DreamHost Account and want to grab a discount or a free domain + a discount use either of these codes:
PRIMEPROMO : $50 Off Any Plan
PRIMEDOMAINCASH : Free Domain And $30 Discount
Those codes come from here:
Laconica Easy-ish Install Scripts Finished
Jul 13th
Yet another update! Check out:
Another Laconica Easy Install Script Update
It’s beta, it’s ugly, it works!
I’ve written up two scripts in order to get Laconica installed quickly and easily on any DreamHost account. It’s really ugly, mostly because of all the config details you have to fill out. Still, it’s a whole lot faster then doing everything yourself.
Main install script/config file: http://files.gimmesoda.com/laconica/install_run.sh
Pear install script: http://files.gimmesoda.com/laconica/install_pear.sh
Laconica install script: http://files.gimmesoda.com/laconica/install_laconica.sh
You MUST run the main install script and not the others – it sets all the config variables!
Here is what you need to do for a completely clean install including PEAR:
1) Create the database/db user/password you want for your laconica install.
2) Put these three files in your shell user’s home directory.
3) Modify the install_run.sh file to fit your needs. Here is an example – MySQL is self-explanatory!
export CURUSER=”puretest” ### Shell Username
export YOURDOMAINFOLDER=”example.domain.com/pathforlaconica”
export YOURDOMAINFOLDERESCAPED=”example.domain.com\/pathforlaconica”
export PATHTOCLASSES=”\/home\/${CURUSER}\/${YOURDOMAINFOLDERESCAPED}\/classes”export LACONICA_CONFIG_SERVER=”example.domain.com”
export LACONICA_CONFIG_PATH=”pathforlaconica”
export LACONICA_CONFIG_FANCY=”false” ###Having trouble with fancy url’sexport MYSQLHOST=”mysql.domain.com”
export MYSQLUSER=”user”
export MYSQLPASS=”password”
export MYSQLDB=”dbname”
4) Run command: chmod +x install_*
5) Run ./install_run.sh
For those who already have PEAR installed to their liking:
You need to modify two lines in install_run.sh
1) export PHPINCLUDEPATHCODE=”ini_set(‘include_path’, ini_get(‘include_path’) . PATH_SEPARATOR . ‘\/home\/${CURUSER}\/pear\/php:\/home\/${CURUSER}\/${YOURDOMAINFOLDERESCAPED}\/extlib’);”
See the part with the /home/${CURUSER}/pear/php? Modify each of those to your pear repository path. Make sure to keep all those escape characters in front of each of your /’s. Notice I also add the extlib folder into the path with this line, so if you’re keeping your extlib/ folder in a different place – modify that too.
2) Comment out: /bin/bash install_pear.sh it should look like this:
###/bin/bash install_pear.sh
3) Make sure you have an empty DB ready and fill out the rest of the config file as usual, then run:
./install_run.sh
With any luck you’ll have a laconica install within a minute of the script being run. You’ll need to modify it manually in order to set things up exactly the way you want them but this should give you a seriously decent starting point without all the fuss of mucking around in the files just to make things run in the first place.
So whether you have a current PEAR install or not the scripts are there for you, I’d recommend running them on a nice shiny new user and subdomain though since I’m not taking any responsibility if your sites/data/first born child goes missing due to the running of my scripts.
Good luck! Feed back is encouraged!
Oh and for those who are wondering why I did this using bash scripting instead of PHP like I normally pump out code, it’s because there are many commands I could accomplish running more smoothly on any DH account using bash and not with PHP. That’s because shared servers @ DH don’t have the exec functions for PHP enabled. (Wisely enough I’d say!)
Original Post:
http://www.gimmesoda.com/2008/07/05/easyinstall-of-laconica-on-dreamhost/
More Resources:
http://decafbad.com/blog/2008/07/03/getting-laconica-up-and-running
http://laconi.ca/Main/LaconicaOnDreamhost
P.S.:
For those of you who don’t already have a DreamHost Account and want to grab a discount or a free domain + a discount use either of these codes:
PRIMEPROMO : $50 Off Any Plan
PRIMEDOMAINCASH : Free Domain And $30 Discount
Those codes come from here:
EasyInstall of Laconica on DreamHost!
Jul 5th
Yet another update! Check out:
Another Laconica Easy Install Script Update
Old Update:
Scripts for the install are finished and are located here:
http://www.gimmesoda.com/2008/07/13/laconica-easy-ish-install-scripts-finished/
——————–
I’ve got most things worked out for the autoinstall – all I basically need to do now is have the scripts do the config and run the mysql command. The second of the two is simple, the first well there are a few little hacks to the code that need to be done but I should be done with it tomorrow.
You can find the current bash scripts here: http://laconica2.gimmesoda.com/
—————————–
So yeah… I’m working on a script that should help setup a Laconia install on DH without any problems. Still writing it and hopefully should have it done soon. I’ll keep all you crazy people up to date on this post!
Don’t forget to check out: http://laconi.ca/
—-
After a bit of work it looks like it’s going to take few mods to the config file and a custom PEAR install on the DreamHost account that is going to be running this. I should hopefully have a script for this finished soon! Give me a day or two (hopefully before my baby girl is born!) and I’ll have it done – otherwise you’ll have to wait until things calm down with the new baby around.
For those who are interested I’m using the instructions found here as the base of my script:
http://decafbad.com/blog/2008/07/03/getting-laconica-up-and-running
You can also find my test install of Laconica here: http://laconica.gimmesoda.com
—-
In order to use sockets it looks like we need a custom install of PHP on DreamHost. Not a bid deal and something I prefer actually, it gives you more control over the php.ini file and you can compile in any extra things you need – such as IMAP support. If you need it.
—-
I may have mentioned this before but it is becoming all the more evident – get that PEAR repository installed on your DH account! It can be a pain to setup sometimes, especially if you aren’t used to working on the shell command, but it’s worth it:
http://wiki.dreamhost.com/PEAR
—-
Another update. I’m actually at the hospital right now watching my wife and baby girl sleep so I decided to get a little more work done. I’ve finished up the initial PEAR install script, which creates a nice clean PEAR repository setup and sets PHP5 as the PHP version used by PEAR and testing it out it works pretty smoothly!
You can grab a copy of this at: http://laconica2.gimmesoda.com/install_pear.sh I’ve tried to make this as safe as possible in case you need to run it multiple times BUT no guarantees your account isn’t going to meltdown! ;)
Make sure to modify the second line and use your own user:
export CURUSER=”puretest”
Oh and for anyone interested, her name is Ileana Sarai Galvez.
-JJ
Recent Comments