Laconica – Bugs, Extra Features and DH Compatability

Posted by JuanJose on May 9, 2009 in laconica |

—-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

8 Comments

  • Phil says:

    Hey JJ, how’d you get memcache working on your PS? I’m a bit of a noob and am struggling to make install libevent and memcached without root access.

  • JuanJose says:

    Honestly it was a bit of a pain. Unfortunately I just kinda went through it one night when I was bored and didn’t take down notes. I’m going to have to do it again soon so this next time around I’ll make sure to write a bash script for it.

  • Robb says:

    Hey JJ,

    I am setting up an install on DH with your installer. How can did you get XMPP and SMS configured on DH? What steps do I need to take?

    Also, is it worth going to a DH PS? If so, i’ll do that.

    Thanks

  • JuanJose says:

    Hi Robb,

    SMS was the easy part, as long as your system can send emails it just works. Make sure to execute the carriers.sql file to populate the cell carriers in the system.

    Beyond that, XMPP was more difficult. First, if you want full control, you NEED to have a PS – you won’t be able to run an XMPP server without it. Second, I used Openfire for the XMPP server, mostly because it was very easy to download the program and just run it:

    http://www.igniterealtime.org/projects/openfire/index.jsp

    Configuration was web based and I created a user for the laconica service, worked like a charm.

  • Rob says:

    Please post up how you installed memcached on a PS. I have one right now with dreamhost, and it would be helpful to have a guide.

    Reply back here if you do.

    Thanks,
    Rob

  • JuanJose says:

    I’m actually going to write a post on that subject since it just got a lot easier to do (if you’re on the newer PS servers you can use sudo), but here is the basic breakdown.

    sudo apt-get install memcached

    Which also handles the install of libevent for you, then you just need to setup the config file here:

    /etc/memcached.conf

  • Wow! I would LOVE to know how you installed memcached. I’ve looked everywhere and there’s no straight forward tutorial. Even dreamhost has an empty wiki page on it

    http://wiki.dreamhost.com/Memcached

  • JuanJose says:

    If you’re on a PS all you need to do is run:

    sudo apt-get install memcached

    Then edit:

    /etc/memcached.conf

    You’ll be set.

Leave a Reply

XHTML: You can use these tags:' <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Copyright © 2006-2010 Gimme Soda All rights reserved.
Desk Mess Mirrored v1.4.6 theme from BuyNowShop.com.