Ubuntu 16.04 with Mysql 5.7 & Php 7 Login Page dont open


(Quazi JA) #1

Hi,

I have installed the PlaySMS but seems like the program is running in the server but my web dont work.

If I browse only the server IP I got Apache2 'it works" page but if I browse /playsms/ it shw up 500 error
any suggestion will be helpfull


(Quazi JA) #2

I had followed this link: https://antonraharja.com/2016/07/22/playsms-1-4-on-ubuntu-16-04-with-php-7-0/


(Edilson Spessoto) #3

Take a look at /var/log/httpd/error-log


(Quazi JA) #4

root@sms:~# cd /var/log/httpd/error-log
bash: cd: /var/log/httpd/error-log: No such file or directory

Cannot find it…
And there is some more I have found that I have … apache2 and nginx is that a conflict?

Here is my logs:–

tail -f /var/log/nginx/error.log

thrown in /var/www/html/playsms/plugin/core/tpl/fn.php on line 33" while readi ng response header from upstream, client: 68.193.37.227, server: sms.qsr-group.c om, request: "GET /playsms/index.php?app=main&inc=core_auth&route=login HTTP/1.1 ", upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: "sms.qsr-group.co m"
2017/09/15 16:08:10 [error] 2132#2132: *32 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught Error: Class ‘Playsms\Tpl’ not found in /var/www/htm l/playsms/plugin/core/tpl/fn.php:33
Stack trace:
#0 /var/www/html/playsms/plugin/core/tpl/fn.php(100): _tpl_apply(’/var/www/html/ p…’, Array, Array)
#1 /var/www/html/playsms/plugin/core/auth/login.php(78): tpl_apply(Array)
#2 /var/www/html/playsms/inc/app/main.php(33): include_once(’/var/www/html/p…’ )
#3 /var/www/html/playsms/index.php(34): include(’/var/www/html/p…’)
#4 {main}
thrown in /var/www/html/playsms/plugin/core/tpl/fn.php on line 33” while readi ng response header from upstream, client: 68.193.37.227, server: sms.qsr-group.c om, request: "GET /playsms/index.php?app=main&inc=core_auth&route=login HTTP/1.1 ", upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: "sms.qsr-group.co m"
2017/09/15 16:13:10 [notice] 2712#2712: signal process started

tail -f /var/log/apache2/error.log

[Fri Sep 15 08:21:47.340894 2017] [mpm_prefork:notice] [pid 1293] AH00169: caugh t SIGTERM, shutting down
[Fri Sep 15 08:23:26.305242 2017] [mpm_prefork:notice] [pid 11451] AH00163: Apac he/2.4.18 (Ubuntu) configured – resuming normal operations
[Fri Sep 15 08:23:26.305302 2017] [core:notice] [pid 11451] AH00094: Command lin e: ‘/usr/sbin/apache2’
[Fri Sep 15 08:23:51.781711 2017] [mpm_prefork:notice] [pid 11451] AH00169: caug ht SIGTERM, shutting down
[Fri Sep 15 08:23:52.924745 2017] [mpm_prefork:notice] [pid 20602] AH00163: Apac he/2.4.18 (Ubuntu) configured – resuming normal operations
[Fri Sep 15 08:23:52.924789 2017] [core:notice] [pid 20602] AH00094: Command lin e: ‘/usr/sbin/apache2’
[Fri Sep 15 09:06:46.851995 2017] [mpm_prefork:notice] [pid 20602] AH00169: caug ht SIGTERM, shutting down
[Fri Sep 15 09:06:48.077014 2017] [mpm_prefork:notice] [pid 24257] AH00163: Apac he/2.4.18 (Ubuntu) configured – resuming normal operations
[Fri Sep 15 09:06:48.077071 2017] [core:notice] [pid 24257] AH00094: Command lin e: ‘/usr/sbin/apache2’
[Fri Sep 15 10:16:36.288728 2017] [mpm_prefork:notice] [pid 24257] AH00169: caug

My Status:

sudo playsmsd check

PLAYSMSD_CONF = /etc/playsmsd.conf
PLAYSMS_PATH = /var/www/html/playsms
PLAYSMS_LIB = /var/lib/playsms
PLAYSMS_BIN = /usr/local/bin
PLAYSMS_LOG = /var/log/playsms
DAEMON_SLEEP = 1
ERROR_REPORTING = E_ALL ^ (E_NOTICE | E_WARNING)
IS_RUNNING = 1
PIDS schedule = 1811
PIDS ratesmsd = 1813
PIDS dlrssmsd = 1815
PIDS recvsmsd = 1817
PIDS sendsmsd = 1819

Any help by seeing above this…


(Edilson Spessoto) #5

there´s something wrong with your php install/config, but I don´t know what