Ok when you run php startdaemons.sh what shoud be the output?

edited May 2011 in Installation
I get:


# StatusNet - a distributed open-source microblogging tool

# Copyright (C) 2008, 2009, StatusNet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see .

# This program tries to start the daemons for StatusNet.
# Note that the 'maildaemon' needs to run as a mail filter.

ARGSG=
ARGSD=

if [ $# -gt 0 ]; then
ARGSG="$ARGSG -s$1"
ID=`echo $1 | sed s/\\\\./_/g`
ARGSD="$ARGSD -s$1 -i$ID"
fi

if [ $# -gt 1 ]; then
ARGSD="$ARGSD -p$2"
ARGSG="$ARGSG -p$2"
fi

DIR=`dirname $0`
DAEMONS=`php $DIR/getvaliddaemons.php $ARGSG`

for f in $DAEMONS; do

printf "Starting $f...";
php $f $ARGSD
printf "DONE.\n"

done

Comments

  • @ufshane it's a shell script, not a php script, start it with
    bash startdaemons.sh
  • Ahh ok so now I get...


    Starting /home/gametwit/public_html/scripts/queuedaemon.php...
    Fatal error: Call to undefined function pcntl_fork() in /home/gametwit/public_html/lib/daemon.php on line 51
    DONE.
    Starting /home/gametwit/public_html/plugins/TwitterBridge/daemons/synctwitterfriends.php...
    Fatal error: Call to undefined function pcntl_fork() in /home/gametwit/public_html/lib/daemon.php on line 51
    DONE.
    Starting /home/gametwit/public_html/plugins/TwitterBridge/daemons/twitterstatusfetcher.php...
    Fatal error: Call to undefined function pcntl_fork() in /home/gametwit/public_html/lib/daemon.php on line 51
    DONE.
  • ok so line 51 is $pid = pcntl_fork();
  • edited May 2011
    @ufshane do you have php-cli installed?
    EDIT: you also need to have PCNTL enabled in your php setup.
  • i do have php cli but I do not see PCNTL in my php options list...
  • Ok did a little research and found you have to add it manually via

    echo "--enable-pcntl" >/var/cpanel/easy/apache/rawopts/all_php5

    if you are using php4 you change the 5 to 4
  • edited May 2011
    ok now that that is working here is the new output...

    bash startdaemons.sh Starting /home/gametwit/public_html/scripts/queuedaemon.php...DONE.
    Starting /home/gametwit/public_html/plugins/TwitterBridge/daemons/synctwitterfri ends.php...PHP Fatal error: Uncaught ServerException: [400]: [Foreign_link] DB_ DataObject error []: DB Error: unknown error

    thrown in /home/gametwit/public_html/classes/Memcached_DataObject.php on line 593

    Fatal error: Uncaught ServerException: [400]: [Foreign_link] DB_DataObject error []: DB Error: unknown error

    thrown in /home/gametwit/public_html/classes/Memcached_DataObject.php on line 593
    DONE.
    Starting /home/gametwit/public_html/plugins/TwitterBridge/daemons/twitterstatusf etcher.php...DONE.
  • @ufshane do you have php PEAR installed?
  • root@server [/home/gametwit/public_html/scripts]# php -v
    PHP 5.2.17 (cli) (built: May 3 2011 14:23:16)
    Copyright (c) 1997-2010 The PHP Group
    Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
    with the ionCube PHP Loader v3.3.20, Copyright (c) 2002-2010, by ionCube Ltd., and
    with Zend Optimizer v3.3.9, Copyright (c) 1998-2009, by Zend Technologies
    with Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins GmbH
    root@server [/home/gametwit/public_html/scripts]# php -m
    [PHP Modules]
    bcmath
    calendar
    ctype
    curl
    date
    dom
    filter
    ftp
    gd
    gettext
    hash
    iconv
    imap
    ionCube Loader
    json
    libxml
    mbstring
    mcrypt
    mysql
    mysqli
    openssl
    pcntl
    pcre
    PDO
    pdo_mysql
    pdo_sqlite
    posix
    pspell
    Reflection
    session
    SimpleXML
    sockets
    SPL
    SQLite
    standard
    suhosin
    tokenizer
    xml
    xmlreader
    xmlwriter
    Zend Optimizer
    zlib

    [Zend Modules]
    Zend Optimizer
    the ionCube PHP Loader
  • Twitter is working fine, having issues with:

    Facebook
    Memcache
    Meator

    Other than that seems to be working fine at this point
  • Ok I stopped and restarted daemons and i think it is good
  • Ahh, great!
Sign In or Register to comment.

Howdy, Stranger!

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

Sign In with Google Sign In with OpenID