Archive for July 13, 2008
Laconica Easy-ish Install Scripts Finished
16Yet 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:
Top Commenters