Statusnet on Dreamhost
  • So earlier today I saw that Dreamhost have statusnet listed as one of their One Click Install packages.

    I proceed to install it. I get an email saying SUCCESS! So I navigate to my new install...I get a nasty memcached error. I disabled DH's Extra Web Security and this went away. Now, I'm trying to register on my own instance, but it seems the registration form won't submit. This is probably due to cheap ass shared Dreamhost accounts. Anyone have similar experiences?
  • The issue has been fixed by DH support, and they said they'd fixed the underlying issue as well. Consider this case closed
  • Well I just installed status on my DH account, and while I don't get the memory cache error, I still can't sign up - the form does not submit. Hmm, any work arounds?
  • Take a look at the config.php file. Maybe you did like me and chose to have "www" removed, when adding a new sub-domain for this installation. And then the config.php file still mentions "www" in "$config['site']['server']". Also, the last line should state "$config['db']['type'] = 'mysql';", rather than possible ""$config['db']['type'] = '';""
  • Ah you are correct! seems to work perfectly now, thanks!
  • Does anyone know how to log-in as the Administrator after using Dreamhost's One Click Install?
  • I'm not Administrator either.
  • Well, I'm admin now. The way I did it is to go into your mysql (you can use phpmyadmin from the DH web interface), look up your profile id, it's probably either 1 or 2. Then, go to the table that says profile_role, insert a new value, in id you put your id, in role you put administrator, and in time you can just put the current time. That's it.
  • Great, thanks so much! I'll go give it a try now...
  • I just did the one-click install from dreamhost. Every link on the homepage takes me to our site-wide custom 404 error page. The Dreamhost installer does not give any config info as usual. Wondering what is happening.
  • The install should make user 1 admin and moderator, if thats not the case, I'll have to ask dreamhost to upgrade their statusnet offering to the lastest version.
  • Hey @aric, if it does make 1 admin and moderator there is no mention of it after the installation. Nothing in the email or on the wiki either from what i saw...
  • In addition it created a database with no users.
  • I have the same problem as Kernos. I installed via 1-click. First I had the www problem mentioned above and fixed it by modifying the config.php to remove www from the server name.

    Now I can see the home page, but any links I click on result in Error 404. e.g. I can go to mydomain.com/status and see the Public Timeline (which is empty), but if I click on anything, such as Login (mydomain.com/status/main/login) it gives me 404.
  • Ah I figured it out. Need to modify .htaccess and change the RewriteBase path from "/" to "/status" since I did not install in the root of my domain.
  • how to use jabber service with http://www.microblog.actocom.com/doc/im
    I have update@INVALID SERVER as jabber id ??? How to fix it N
  • @chris10 you are running your own jabber server? I recommend prosody hooking it into Statusnet is covered in the readme. if you need more help please post your xmpp related config items from your config.php
  • I found that http://status.net/wiki/Jabber/Setup

    Bug how to run the deamon ? scripts/getvaliddaemons.php

    Do someone did it ?
  • /scripts/xmppdaemon.php
  • how to you run this script with browser ? or by ssh
  • I try with browser : This script must be run from the command line

    I try with ssh ( command line ) :

    [genovese]$ /scripts/xmppdaemon.php
    -bash: /scripts/xmppdaemon.php: No such file or directory
    [genovese]$ php scripts/xmppdaemon.php

    Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /.../scripts/xmppdaemon.php on line 42
  • @chris10, sounds like you're accidentally running PHP version 4 on the command-line, which is too old to work with StatusNet. You might need to call it as 'php5'.
  • how do you run php5 script ?
  • I recently tried the 1-click installer.

    @rokur I had the same issue with the 'www' being added to $config['site']['server'].

    @aric Looks like Dreamhost does not make an initial user yet. You get an empty DB.

    @edythemighty There's a script for giving a user a role (such as administrator), so you don't have to rummage around directly in the DB.

    scripts/userrole.php -n nickname -r administrator
    @chris10 Dreamhost's stock PHP 5 does not have pcntl (Process Control support) compiled in. That makes it impossible to run daemons such as the scripts/xmppdaemon.php. However, it looks like you can compile your own version of PHP5 with pcntl if you really want to do it. See: http://wiki.dreamhost.com/Installing_PHP 5

  • If I understand correctly it is not possible to run xmpp option on dreamhost solution.

    Thanks for the reply if you confirm it I stop searching.
  • @chris10: I'm not sure, to be honest. It is possible to run the xmppdaemon if you compile your own version of PHP 5, which is a lot of trouble and is unsupported by Dreamhost. They also provide some xmpp services, but I don't have any experience with them. It might be worth opening a support ticket with Dreamhost to see if they think it's doable.
  • I will not try to compile anything !!! It is not my own server !

    Now next step is facebook

    I checked the config.php exemple and see that

    // Config section for the built-in Facebook application
    // $config['facebook']['apikey'] = 'APIKEY';
    // $config['facebook']['secret'] = 'SECRET';

    I imagine I have to add this 3 lines on the config.php right ?

    But what do you put as APIKEY ? and SECRET do you leave that like that or do you get a key somewhere or what ? I don't know what to put here.
  • @chris10 most of the plugins have readmes that live their subdirectroy in the plugins folder
  • if you need more detailed instructions on getting keys. look here http://forum.status.net/discussion/177/posting-to-facebook/#Item_12
  • chris10 & zcopley: on shared plans there is a 60 second process time limit. with VPS there is no time limit, but PHP still has to be recompiled
  • I am looking for someone who has installed on dreamhost to exchange... Just wonder if we have all the same probleme or if I am the only one...

    Just send here your url http://www.domaine.com/statusnetuser

    Thanks
  • Great, thanks so much! , I 'll test at hostgator in future.

    my statusnet chiang mai travel and server rack rackmount keyboard intranet software
  • Very Nice, thanks for that info

    and please visit my site at http://www.thaioffice.co.th/price/price_.php
  • With VPS it works fine to compile a second (or third, considering that php4 is still the default) version of PHP to leave in your home directory while not messing with the PHP that Apache is running.

    I mention this in response to those who have expressed concern about "re"compiling PHP.
  • The user and all related content has been deleted.
  • I'm adding here a link to http://forum.status.net/discussion/537/xmpp-failure-queue-question for anyone trying to set up Status.Net on Dreamhost. As far as I can tell, Dreamhost's jabberd won't work with Status.Net. So anyone who wants XMPP will have to disable Dreamhost's jabberd and install Prosody. That limits it to Dreamhost PS users, but since the XMPP daemon won't stay running on shared accounts, I guess that's not a problem.
  • Any way to get sync / timeline import working on DreamHost?

    $ ./synctwitterfriends.php

    Fatal error: Call to undefined function pcntl_fork() in /home/username/mysite.com/lib/daemon.php on line 51
    $ ./twitterstatusfetcher.php

    Fatal error: Call to undefined function pcntl_fork() in /home/username/mysite.com/lib/daemon.php on line 51
  • @crutis can you start a new thread and give us some information on the specifics of your dream host install? It sounds like the version of php you have is not going to work.
  • @crutis @aric as @zcopley mentioned in this thread Dreamhost's php5 does not have pcntl compiled in. That's where those messages come from.

    A new version of php5 needs to be compiled to get pcntl support. I used the instructions and script found here:

    http://iamskwerl.com/tech/2008/09/customizing-php5-on-dreamhost/

    I didn't replace Dreamhost's php5, I just rolled this new one to use with the daemons. That means I had to edit startdaemons.sh to replace 'php' with the path to my new php binary, like '/home/smscotten/php5/bin/php'

    I hope that's helpful.
  • Thanks to @smscotten for the tip. I'm going to give the compiling of a new version of php5 a try. It seems terribly involved.

    I just spoke to support at Dreamhost (Sep 30, 2010) and they eventually acknowledged that there is no pcntl support in their command line installation of php5. The support tech was not sure why that was but said the admins 'usually have a good reason' for deactivating support for it.

    He also told me that in their sample configuration for their installation of 5.3 (which is not rolled out yet at Dreamhost) they do have support for it, but he cautioned that this is no guarantee that support for it will be included when they finally do roll out 5.3 support.

    Overall, I really wish there was much more simple detailed instructions for twitter bi-directional support in the installation instructions. I think a lot of people will want/need it until we can convince friends to migrate to federated solutions.
  • I was just told that pcntl was supposed to have been included in the compiled version of php on dreamhost serves. They recompiled it on my server and set it would gradually roll out to other servers as well. I can confirm that I can now run the scripts/startdaemons.sh command.

    However, while they work briefly, they get shutdown. The daemons needed for this violate the terms of shared hosting:
    http://wiki.dreamhost.com/Persistent_Processes

    Thus, anyone wanting bi-directional sync with twitter and need to run these daemons will need to upgrade to a VPS agreement with them (currently a minimum of $15 per month above the existing hosting cost of $9).
  • @kmlawson I have a Dreamhost vps as it should do the installation?

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!