Playsms ubuntu 18.04

Rendy wijaya
3 min readSep 2, 2020

--

Hello there, its just my another diary, to install playsms on ubuntu 18.04

first my engine looks like this apache2, mariadb-server, php7.2, vim, unzip

im installing playsms with this two referrence https://playsms.org/2020/03/20/install-playsms-1-4-3-on-ubuntu-18-04/ and this one https://blog.dgprasetya.com/gammu-install-configure-playsms/

okay first we build environment for playsms

Apache2, php7.2, mariadb-server

okay first easy one apache2

to install apache2 its just “ Sudo apt-get install apache2”

then install php.7.2

sudo apt install php7.2 php7.2-cli php7.2-mysql php7.2-gd php7.2-curl php7.2-mbstring php7.2-xml php7.2-zip

Okay then install mariadb-server

sudo apt-get install mariadb-server

dont forget to secure it

sudo mysql_secure_installation

and my guess is, it doesnt work like you thought

so do this

  1. First, connect in sudo mysql
  • sudo mysql -u root

Check your accounts present in your db

  • SELECT User,Host FROM mysql.user; +------------------+-----------+ | User | Host | +------------------+-----------+ | admin | localhost | | debian-sys-maint | localhost | | magento_user | localhost | | mysql.sys | localhost | | root | localhost |

Delete current root@localhost account

mysql> DROP USER 'root'@'localhost'; Query OK, 0 rows affected (0,00 sec)

Recreate your user

  • mysql> CREATE USER 'root'@'%' IDENTIFIED BY '123456'; Query OK, 0 rows affected (0,00 sec)

Give permissions to your user (don’t forget to flush privileges)

  • mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION; Query OK, 0 rows affected (0,00 sec) mysql> FLUSH PRIVILEGES; Query OK, 0 rows affected (0,01 sec)

Exit MySQL and try to reconnect without sudo.

so now you have user root and password 123456

Note this is for fresh or clean install ubuntu

Next we install playsms
To Download folder
cd ~/Downloads
wget -c "https://github.com/antonraharja/playSMS/archive/master.zip" && unzip master.zip
#We've Downloaded playsms 1.4.4alpha
cd playSMS-master/;
cp install.conf.dist install.conf;
edit install.conf so it looks like this
sudo vim install.conf
# INSTALL DATA
# ============

# Please change INSTALL DATA below to suit your system configurations

# Please do not change variable name, you may change only the value

# MySQL database username
DBUSER=”root”

# MySQL database password
DBPASS=”123456"

# MySQL database name
DBNAME=”playsms”

# MySQL database host
DBHOST=”localhost”

# MySQL database port
DBPORT=”3306"

# Web server’s user, for example apache2 user by default is www-data
# note: please make sure your web server user
WEBSERVERUSER=”www-data”

# Web server’s group, for example apache2 group by default is www-data
# note: please make sure your web server group
WEBSERVERGROUP=”www-data”

# Path to playSMS extracted source files
PATHSRC=”$(pwd)”

# Path to playSMS web files
# note: please make sure your web root path, in this example its /var/www/html
PATHWEB=”/var/www/html/playsms”

# Path to playSMS additional files
PATHLIB=”/var/lib/playsms”

# Path to playSMS daemon and other binary files
PATHBIN=”/usr/local/bin”

# Path to playSMS log files
PATHLOG=”/var/log/playsms”

# Path to playSMS storage
PATHSTR=”/var/storage/playsms”

# Path to playSMS daemon configuration file
# note: this example will create playsmsd.conf in /etc
PATHCONF=”/etc”

# END OF INSTALL DATA
# ===================

then instll playsms

sudo ./install-playsms.sh

why we used sudo? because there is some privileged action needed, like make file in root folder.

right after install change config.php in
sudo vim /var/www/playsms/config.php

Search for ishttps and set it to false.
because we use it in local development, if you use true it will turn to https, and not gonna work unless you use hosting and give it ssl

start service
playsmsd /etc/playsmsd.conf start

then go to your localhost/playsmsd/index.php

user = admin
password=changemeplease

if you use older playsms
user=admin
password=admin

cheers

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response