playSMS with Docker

Visit playSMS docker project at Docker Hub. Search playsms/playsms at Docker Hub.

Current release is for playSMS 1.4.3 installed on Ubuntu 20.04.

Install docker locally, and run this to download playSMS 1.4.3 docker container:

docker pull playsms/playsms:1.4.3

And then run this to get playSMS up and running:

docker run -d -p 80:80 playsms/playsms

Access playSMS web admin by browsing localhost or your server\’s IP address, or domain if you have mapped it correctly.

To modify, or build your own docker container based on this project, visit playSMS docker project website at https://github.com/playsms/docker-playsms

Testing playSMS with Kannel

This article is about how to use Kannel for testing playSMS. Assumed you have a box of VPS, a droplet, a physical server, or a VM running and playSMS is installed and work properly. Follow manuals here to add Kannel to the playSMS server box, configure both playSMS and Kannel to make them work together.

Once you get a working playSMS connected to a well configured Kannel for testing, you can then send bulk SMS (fake non-delivered to the real cellphone of course) and see the performace of both software handling thousands of SMS.

Let\’s start the manual.

Continue reading “Testing playSMS with Kannel”

Gateway Plugin Twilio

playSMS is a web application for managing users, credits, features, routes and gateways, for sending and receiving SMS. playSMS is not an actual SMS gateway, it cannot send or receive SMS by itself. It needs another application or service, SMS gateway or gateway for short, to actually send and receive SMS. Twilio is one of those SMS gateway.

playSMS uses plugins for various functions and one of them is for handling those SMS gateways. Gateway Plugin in playSMS is referred to plugin that handles actions such as sending and receiving SMS for playSMS from/to actual SMS gateway.

In this article I will explain how to configure a Gateway Plugin Twilio to connect playSMS with SMS service in Twilio.

Continue reading “Gateway Plugin Twilio”

Install playSMS 1.4.3 on VirtualBox

This article is about playSMS 1.4.3 installation on VirtualBox. What you need is a computer that is connected to the internet and capable of running VirtualBox properly.

To actually send and/or receive SMS you will need another piece that is not part of this article. You can discuss that in playSMS Forum.

I will be using Ubuntu 18.04 on my VirtualBox. That means you can compare this article with previous article playSMS 1.4.3 on Ubuntu 18.04. There should be similarities, but of course the previous article focus on cloud installation and this one is more like local installation.

Since the installation is local you will need to download Ubuntu Server 18.04 ISO file from Ubuntu websites, save it somewhere in your computer.

This article is first published in: https://antonraharja.com/2020/04/24/playsms-1-4-3-on-virtualbox/

Continue reading “Install playSMS 1.4.3 on VirtualBox”

Install playSMS 1.4.3 on Ubuntu 18.04

playSMS version 1.4.3 has been released, and it is the recommended version as it contains fixes to several bugs and critical security vulnerability. This article is howto install playSMS 1.4.3 on Ubuntu 18.04.

I’m using DigitalOcean (DO) service to test the configuration and commands. Create new Droplet in DO account. Click here to register on DO if you don’t have an account.

Choose Ubuntu 18.0.4 (currently 18.04.3 LTS) and select at least the cheapest service (USD 5). Create and wait for a minute or two for the SSH to be ready. You can then login via SSH and start playSMS installation.

Login to your CentOS droplet (later we will call droplet as server) using SSH and follow instructions below step by step. Read carefully why you need to do each step correctly. Please pay attention to details.

This article first published in: https://antonraharja.com/2020/03/20/playsms-1-4-3-on-ubuntu-18-04/

Continue reading “Install playSMS 1.4.3 on Ubuntu 18.04”

Install playSMS 1.4.3 on CentOS 7

playSMS version 1.4.3 was released recently and currently it is the recommended playSMS version available. The release fixed critical security vulnerability and contains other bugfixes and improvements. This article shows you step by step howto install playSMS version 1.4.3 on CentOS 7.

I\’m using DigitalOcean (DO) service to test the configuration and commands. Create new Droplet in DO account. Click here to register on DO if you don\’t have an account.

Choose CentOS 7 (currently 7.6) and select at least the cheapest service (USD 5). Create and wait for a minute or two for the SSH to be ready. You can then login via SSH and start playSMS installation.

Login to your CentOS droplet (later we will call droplet as server) using SSH and follow instructions below step by step. Read carefully why you need to do each step correctly. Please pay attention to details.

This article first published in: https://antonraharja.com/2020/03/10/playsms-1-4-3-on-centos-7/

Continue reading “Install playSMS 1.4.3 on CentOS 7”

Again, timezone setup

This is the article of an example of how to fix timezone issue with playSMS.

This is my server\’s time, its in UTC:

[code lang=text]
$ date
Wed Aug 1 03:22:21 UTC 2018
[/code]

And then I check where is my php.ini, both for php-cli and php-fpm (I\’m using Nginx with php-fpm):

[code lang=text]
$ php -i | grep php.ini
Configuration File (php.ini) Path => /etc/php/7.0/cli
Loaded Configuration File => /etc/php/7.0/cli/php.ini
[/code]

I looked for date.timezone option on php.ini, edit it and set the option to my timezone Asia/Jakarta, its UTC+7. When done it will be like this:

[code lang=text]
$ cat /etc/php/7.0/cli/php.ini | grep date.timezone
; http://php.net/date.timezone
date.timezone = Asia/Jakarta
[/code]

I also set it in php-fpm php.ini, not just php-cli php.ini:

[code lang=text]
$ cat /etc/php/7.0/fpm/php.ini | grep date.timezone
; http://php.net/date.timezone
date.timezone = Asia/Jakarta
[/code]

Please note you need to restart php-fpm when you changed php-fpm php.ini.

In playSMS I set my default timezone to +0700 (its UTC+7):
\"\"

Restart playsmsd and do some test, for example send an SMS with a schedule.

As a reference please read this:
https://playsms.org/2013/12/07/fix-timezone-problem/

(obsolete) playSMS 1.4.2 on Ubuntu 18.04

EDIT:

This article is old. Please use playSMS version 1.4.3 instead. Previous version of playSMS contains security vulnerabilities and have been fixed in 1.4.3.

Same method described in this article can still be used to install playSMS 1.4.3, you just need to change 1.4.2 to 1.4.3.


This howto will show you how to install playSMS 1.4.2 on Ubuntu 18.04, the latest version as of today. By using Ubuntu 18.04 as base distribution you can test whether or not playSMS 1.4.2 work properly with PHP 7.2 and MySQL 5.7.

Let\’s Start

Login to your DigitalOcean web panel. If you haven\’t got one then register for free here: https://m.do.co/c/aeec1cef58b6

Shameless plug: Notice the referral link there ? Yes, please click it so that you can earn USD 10 credit on DigitalOcean (for testing this howto maybe?) and when you actually use and spent money on DigitalOcean then I\’ll also get something from them too 🙂

Quick FAQ:

Q: Can I install on different server other than DigitalOcean ?
A: Yes of course, you need Internet and preferably CLI root access

Continue reading “(obsolete) playSMS 1.4.2 on Ubuntu 18.04”

playSMS in Windows with Gammu

Are you still interested in using playSMS in Windows ?

Well, someone has wrote the manual for you in playSMS Forum. The manual is about installing playSMS in Microsoft Windows with Gammu for Windows as the gateway.

Check it out: https://forum.playsms.org/t/installing-playsms-on-windows/66

Please note that the playSMS in used was pretty old, version 0.9.9.2 or 0.9.8, and unfortunately the manual won\’t work for playSMS 1.0.

Enjoy.

Example use of SMS Command for Mikrotik

When you have working playSMS with Kannel, and Mikrotik configured to do something (not related to SMS), you can integrate them to serve something to your users. In the article below the author mentioned that the goals are:

  1. To renew expired users via sending Username and SCRATCH CODE to playSMS (Ubuntu Server)
  2. To renew expired users via sending SCRATCH CODE & verify the code with the user profile [later]

Users will be asked to send SMS to playSMS, and playSMS will handle it on its SMS Command to run a script that verify the SMS and commands Mikrotik to do something.

Visit complete article here:

https://aacable.wordpress.com/2015/05/12/sharing-ideas-mikrotik-with-kannelplaysms/

Enjoy.