Another Laconica Easy Install Script Update
*** 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:
Hi,
First of all, good work on the scripts, and thank you.
Just a small bug:
The script is renaming the htaccess.sample file to .htacces, and this results in errors if the user decides to use fancy URLs.
Changing the script to mv the htaccess.sample to .htaccess (another S at the end) fixes the fancy URL problem you described.
All the best,
Tiago
Hey Tiago!
Thanks for letting me know about that! I can’t believe I missed it. When I get the chance I’ll go about changing the script to enable fancy url’s by default as well.
Scripts have been updated.
JJ
I went ahead and updated the script it should go ahead and enable the fancy URL’s.
Yay!
JJ
Thank you for all your work Juan. Looking forward for a 0.5 script :)
Hi JuanJose,
I’m back at the laconi.ca attempts, this time at a different URL: http://prez.be — your updated script works great, but I’m still running into the following error message when I attempt to do the remote subscribe thing:
Can’t read avatar URL ‘http://identi.ca/avatar/6487-96-20080703083026.png’
You had mentioned something earlier about that being jabber related and tied to sockets() by self-compiling PHP? It looks like my dreamhost install uses PHP5.x, but when I visited the instruction page it seemed waaaay over my head. Is there a better place for me to figure things out, or am I just stuck for the time being?
Hey Neal,
By default the dreamhost PHP installs don’t allow url’s to be used as includes and lots of functions that you could use url’s or file paths in won’t work with URL’s. If someone tracks down the section of the code that handles the avatar and causes the error I’ll write a function that uses cURL and works on DH.
This isn’t a sockets issue but can be fixed using a custom PHP install.
Oh and a heads up I’m revamping my script to be MUCH easier I’ll let you all know when I finish it up.
JJ
Ok, I tried installing my own PHP tonight, but kept getting hung up (some kind of problem with the cgi-bin not being in the right place, I think?).
I also found some instructions for copying the default DH php.ini file into my own cgi-bin directory in the domain folder, and then modifying it. Looks a lot more simple — Would that enable me to use some of the laconica features that (like remote subscribe) that aren’t working currently?
Also, I’ve noticed in the CSS theme file that there’s are properties for “tags” and I see them on the identi.ca site. Any particular way that I’m missing to enable them on my install? I checked in the config file, but couldn’t find anything there.
Hey Neal,
Hmm if you copy the error output to me I’ll see if I can help out. As for the custom php.ini instructions which copy over the default php.ini/php binary – you could use that I just like having more control over the features in PHP which is why I always recommend compiling.
I wish I knew! It could be something in development or something that needs to be enabled through some other method. Any chance you’re on the developer list for laconica? You could probably ask there.
Unfortunately I’m not an expert on the system, just wrote this installer because I find the idea of a federated twitter-like system appealing. Hopefully adoption of the system will pick up!
Oh and the new installer is coming along with any luck I’ll have it out soon – you all are going to LOVE this one. No more editing config files or downloading multiple files to run the install!
Oh yeah and if you all see me online I can be contacted @ juanjose.galvez@gmail.com (jabber!)
As far as tracking down the section of code that handles avatars, I think it’s at http://prez.be/actions/avatar.php — at least, that’s my best guess as to what’s causing the error message: Can’t read avatar URL ‘http://identi.ca/avatar/6487-96-20080703083026.png’
I’m not on the developer list for laconi.ca yet, but I’ll sign up. My php expertise is at a very amateur-hack level, but like you I’m excited about the idea of a federated, open system.
Thanks for all the good docs. I’ve tried both on bluehost and on dreamhost and both times I hit the wall with:
Fatal error: require_once() [function.require]: Failed opening required ‘DB/DataObject.php’ (include_path=’.:/usr/local/php5/lib/php:/usr/local/lib/php’) in /home/.hortense/donbon/tweetitlive.com/lib/common.php on line 36
I’ve seen that this error is common but I don’t read a solution. Any ideas?
Thanks much,
Don
DOn, go to /home/.hortense/donbon/tweetitlive.com/lib/common.php line 36 and add full path for your DataObject.php file on line 36.