Hi,
I try install playsms 1.4.2 on ubuntu. Here is step by step:
apt update && apt -y upgrade
apt -y install nginx mysql-server php-fpm php-cli php-mysql php-gd php-imap php-curl php-xml php-mbstring
mkdir -p /var/www/html/playsms
mkdir -p /var/www/html/playsms/logs
cd /etc/nginx/sites-available
nano playsms.conf
GNU nano 2.9.3 playsms.conf
server {
listen 80;
server_name playsms;
root /var/www/html/playsms;
index index.html index.htm index.php;
access_log /var/www/html/playsms/logs/access.log;
error_log /var/www/html/playsms/logs/error.log;
location / {
try_files $uri $uri/ =404;
}
location ~ .php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.2-fpm.sock;
}
}
cd /etc/nginx/sites-enabled
ln -s âŚ/sites-available/playsms.conf .
systemctl restart nginx
mysql
mysqladmin create playsms
mysql
CREATE USER âplaysmsâ@âlocalhostâ IDENTIFIED BY âmynewpasswordâ;
GRANT ALL PRIVILEGES ON playsms.* TO âplaysmsâ@âlocalhostâ WITH GRANT OPTION;
FLUSH PRIVILEGES;
quit
Playsms
cd ~
wget -c âhttps://sourceforge.net/projects/playsms/files/playsms/Version%201.4.2/playsms-1.4.2.tar.gz/downloadâ -O playsms-1.4.2.tar.gz
tar -zxf playsms-1.4.2.tar.gz
cd playsms-1.4.2/
cp install.conf.dist install.conf
nano install.conf
DBUSER="playsms"
DBPASS="mynewpassword"
./install-playsms.sh
plasysmsd /etc/playsmsd.conf check
smsd.conf 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 = 6283
PIDS ratesmsd = 6285
PIDS dlrssmsd = 6287
PIDS recvsmsd = 6289
PIDS sendsmsd = 6291
when I try URL localhost/playsms or IP/playsms- I recieved 403 Forbidden.
Any ideas?