playSMS Forum

[solved] Playsmsd not running (move from googlegroups)

Hi there

this is my question from googlegroups, i put my playsms config in here

<?php 2 // PHP PEAR DB compatible database engine: 3 // mysql, mysqli, pgsql, odbc and others supported by PHP PEAR DB 4 $core_config['db']['type'] = 'mysql'; // database engine 5 $core_config['db']['host'] = 'localhost'; // database host/server 6 $core_config['db']['port'] = ''; // database port 7 $core_config['db']['user'] = 'root'; // database username 8 $core_config['db']['pass'] = 'zVs1qQzDLxHtD05V'; // database pass word 9 $core_config['db']['name'] = 'playsms'; // database name 10 11 // alternatively you can pass DSN and connect options 12 // ref: 13 // - http://pear.php.net/manual/en/package.database.db.intro-dsn.php 14 // - http://pear.php.net/manual/en/package.database.db.intro-connect.php 15 //$core_config['db']['dsn'] = 'mysql://root:password@localhost/playsms'; 16 //$core_config['db']['options'] = $options = array('debug' => 2, 'portab ility' => DB_PORTABILITY_ALL); 17 18 // SMTP configuration 19 $core_config['smtp']['relm'] = ''; // yes, not realm, it's relm 20 $core_config['smtp']['user'] = ''; 21 $core_config['smtp']['pass'] = ''; 22 $core_config['smtp']['host'] = 'localhost'; 23 $core_config['smtp']['port'] = '25'; 24 25 26 // Do not change anything below this line unless you know what to do // ----------------------------------------------------------------- 28 29 30 // you can turn on or off PHP error reporting 31 // on production level you should turn off PHP error reporting (set to 0 ), by default it's on 32 //error_reporting(0); 33 //error_reporting(E_ALL ^ (E_NOTICE | E_WARNING | E_DEPRECATED)); 34 error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING & ~E_STRICT); 35 36 // logs directories 37 $core_config['apps_path']['logs'] = '#PATHLOG#'; 38 39 // log level: 0=disabled, 1=info, 2=warning, 3=debug, 4=verbose 40 // WARNING: log level 3 and 4 will also save sensitive information such as password for used gateway 41 $core_config['logstate'] = 2; 42 43 // log file 44 $core_config['logfile'] = 'playsms.log'; 45 46 // WARNING: will log almost anything but passwords 47 $core_config['logaudit'] = true; 48 49 // log audit file 50 $core_config['logauditfile'] = 'audit.log'; 51 52 // are we using http or https ? the default is using http instead https 53 $core_config['ishttps'] = false; 54 55 // are we using dlrd or not. the default is using dlrd 56 $core_config['isdlrd'] = true; 57 58 // limit the number of DLR processed by dlrd in one time 59 $core_config['dlrd_limit'] = 100; 60 61 // are we using recvsmsd or not. the default is using recvsmsd 62 $core_config['isrecvsmsd'] = true; 63 64 // limit the number of incoming SMS processed by recvsmsd in one time 65 $core_config['recvsmsd_limit'] = 200; 66 67 // are we using sendsmsd or not. the default is using sendsmsd 68 $core_config['issendsmsd'] = true; 69 70 // limit the length of each queue processed by sendsmsd in one time 71 $core_config['sendsmsd_limit'] = 1000; 72 73 // limit the number of queue processed by sendsmsd in one time 74 $core_config['sendsmsd_queue'] = 30; 75 76 // webservices require username 77 $core_config['webservices_username'] = true; i'm using centos, mariadb and nginx

config.php has little to do with why playsmsd cannot be run

you need to do this:

try to run playsmsd sendsmsd see if it printed out error messages, exited immediately, or hanging (and you need to Ctrl+C to exit).

anton

unfortunately sir, after execute playsmsd sendsmsd i got not error log

this is my screenshoot

[root@sms public]# playsmsd start
playsmsd has been started
schedule at pid 7541
dlrssmsd at pid 7543
recvsmsd at pid 7545
sendsmsd at pid 7547
[root@sms public]# playsmsd sendsmsd
[root@sms public]# playsmsd status
playsmsd is not running

you need to run playsmsd sendsmsd and let us know what happen, thats all

we are debugging, so do not do anything that is not being told :slight_smile:

like you see, there’s no error log after execute sendsmsd command, that’s why i put the playsmsd history command

what I need to know is whether its “hanging” or exitted

anton

it’s exited immediately sir

confirm me quick, can you login from browser ? login as admin

anton

yup, i can login as admin

ok, can you find and edit php.ini for cli ? if its centos I think its in the same location, in /etc/php.ini

look it up by running php -i | grep php.ini

edit the file, and make sure:

  • display_errors = On
  • error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT

no need to restart httpd, after above changes, run again playsmsd sendsmsd

anton

ok i will try it sir

still the same sir, exited

with no error messages ?

anton

yup, with no error messages

btw, its pretty odd that you can run playsmsd start and all daemons up but then status said its not running

can you tell me what you saw after you run playsmsd start and ps ax | grep sms, do you see all those 4 daemons, wait for a while and ps ax again, see if those daemons died after a while

anton

if i use ps ax | grep sms the the result is this
1186 ? S 0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/var/lib/mysql/sms.berkahbersama.com.pid
2209 ? Sl 0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --user=mysql --log-error=/var/log/mysqld.log --open-files-limit=8192 --pid-file=/var/lib/mysql/sms.berkahbersama.com.pid --socket=/var/lib/mysql/mysql.sock
2578 pts/0 S+ 0:00 grep sms

but if i use grep playsmsd
ps ax | grep playsmsd
2619 pts/0 S+ 0:00 grep playsmsd

no daemon

is it possible other program killed them ? where are you installing this ?

anton

on centos in virtualbox in my linux machine

I’m keen to know what’s going on, if its alright let me in to your server, use ngrok service for tunnel to your virtualbox (or if you have already setup the tunnel, or using IP publik)

https://ngrok.com/

anton

./ngrok tcp 22
the result is like this?
tcp://0.tcp.ngrok.io:37358