The Blog of a Programmer
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
| This entry was posted by JuanJose on May 9, 2009 at 4:58 am, and is filed under Software, StatusNet. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
about 1 year ago
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.
about 1 year ago
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.
about 1 year ago
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
about 1 year ago
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.
about 11 months ago
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
about 11 months ago
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
about 9 months ago
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
about 9 months ago
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.
about 1 month ago
I’m also stuck trying to get memcached working – I installed it with some help – but now I need to edit the .conf file – how do I do that?
Thanks so much,
-WebWeaver
http://catswebweave.com
about 1 month ago
You’ll need to have an admin user setup, login with it, then use a command like:
sudo vi /etc/memcached.conf
Good luck!
about 3 days ago
If I can ask, what do you edit in the memcached.conf file?
about 3 days ago
You can see a copy of the file I use here:
http://www.gimmesoda.com/memcached.conf
about 1 day ago
I have the same config but my extensions aren’t memcache/memcached extensions aren’t loaded in PHP.
Did you recompile your own or add them to your php.ini file? Any other trickery?
about 1 day ago
Installing memcached won’t install the PHP extension. You need to manually compile it and then setup the extension in the php.ini.
about 15 hours ago
I figured as much. One last question (sorry).
Did you use any of the install scripts on this page: http://wiki.dreamhost.com/Template:PHP5_installscript
and if so, which? I tried all of them and I get a failure with each. Some of the parts of the download fail because of the mirrors so I uploaded them directly and it still fails. Says to check config.log and it’s blank.
Any ideas?
about 14 hours ago
I don’t compile PHP unless I absolutely have to, generally that would be to enable SOAP. I just compile the source for the extension then modify the php.ini or setup a custom php.ini to enable it.
I did compile PHP for my PS though, you can find my notes on that here:
http://www.gimmesoda.com/a-few-notes-for-building-php-5-on-dreamhost-ps/