playSMS 1.4 on CentOS 7.2 with MariaDB 5.5.50

Yet another playSMS 1.4 installation article, this time its on CentOS 7.2 with MariaDB 5.5.50 instead of MySQL.

Prepare VPS

I’m using DigitalOcean VPS service and install CentOS 7.2 with enough RAM and disk, I choose 512MB RAM and 20GB SSD disk.

Notes:
You can always use your own VPS or any other method to install CentOS.

Update CentOS

SSH to VPS and update CentOS:

[code lang=”bash”]
yum update
[/code]

Notes:
Updating CentOS may take sometime to finish, and if you know what you’re doing than you can just skip this step.

Install LAMP Stack

Install web server, database server and PHP:

[code lang=”bash”]
yum install php php-cli php-gd php-mysql httpd mariadb-server mariadb
[/code]

Notes:
For those who might now know MariaDB, put it simply that MariaDB is different database than MySQL but the usage and even command lines used are the same as MySQL. This article is choosing to use MariaDB simply because the default database server available on this CentOS repository is MariaDB.

Update MariaDB root password:

[code lang=”bash”]
mysqladmin -uroot -p password password
[/code]

Notes:
In this article the configured root password is password

Install playSMS 1.4

You can download playSMS 1.4 from SourceForge and upload it to VPS or from inside the VPS use wget to download it:

[code lang=”bash”]
wget -c http://ncu.dl.sourceforge.net/project/playsms/playsms/Version%201.4/playsms-1.4.tar.gz
[/code]

Extract the package:

[code lang=”bash”]
tar -zxf playsms-1.4.tar.gz
[/code]

Edit install configuration file install.conf to change WEBSERVERUSER and WEBSERVERGROUP from www-data to apache:

[code lang=”bash”]
cd playsms-1.4
cp install.conf.dist install.conf
vi install.conf
[/code]

Notes:
Do the editing carefully. Make sure the web server user and group is apache and your MySQL database configuration is correct. If you follow this article as is then you don’t need to change other option beside WEBSERVERUSER and WEBSERVERGROUP.

Save install.conf and exit.

Next, run install-playsms.sh:

[code lang=”bash”]
./install-playsms.sh
[/code]

Follow the install script until its done, answer y to all questions.

Make sure playSMS is installed correctly by the install script:

[code lang=”bash”]
playsmsd check
[/code]

Example output that is showing playSMS is installed correctly:

[code lang=”text”]
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 = 8284
PIDS ratesmsd = 8286
PIDS dlrssmsd = 8289
PIDS recvsmsd = 8293
PIDS sendsmsd = 8297
[/code]

Note that PIDS are not empty and the IS_RUNNING option is filled with 1.

Enter Web GUI

Use browser to visit playSMS web GUI. Following this article the web GUI address should be:

[code lang=”text”]
http://<web server IP or hostname>/playsms/
[/code]

The default playSMS web GUI user is admin and the password is admin.

2 thoughts on “playSMS 1.4 on CentOS 7.2 with MariaDB 5.5.50

Leave a Reply

Your email address will not be published. Required fields are marked *