October 14, 2019
playsms

How to install playSMS server on centos 7

playSMS is a free and open source SMS management software.

A flexible Web-based mobile portal system that it can be made to fit various services such as an SMS gateway, bulk SMS provider, personal messaging system, corporate and group communication tools. It is Licensed under GNU General Public License as published by the Free Software Foundation.

Inorder to install playSMS on your server you should have the following required softwares installed on your server.

 required softwares:

  • Operating System Linux (distro such as Ubuntu, Debian, CentOS etc)
  • Web server software (for example Apache2, nginx or lighttpd)
  • Database Server MySQL 5.x.x or latest stable release (with adjustments for MySQL 5.7.x)
  • PHP 5.3 or latest stable release (must be at least version 5.3)
  • PHP MySQL module must be installed and enabled
  • PHP CLI must be installed
  • PHP gettext extension must be installed and enabled for text translation
  • PHP mbstring extension must be installed and enabled for unicode detection
  • PHP GD extension must be installed and enabled to draw graphs
  • Access to SMTP server to send Email
  • Downloaded playSMS official release package from SF.net or master version from Github
  • Properly installed composer from https://getcomposer.org (will be installed by playSMS install script)

If you have already installed the above-mentioned software on your system, then let’s start the following installation process as follows:-

Step #1: Download the playSMS from the link given below:-

https://sourceforge.net/projects/playsms/files/playsms/Version%201.4.2/

Step # 2: Extract playSMS package and go there (For example in /usr/local/src)

tar -zxf playsms-1.4.2.tar.gz -C /usr/local/src
ls -l /usr/local/src/
cd /usr/local/src/playsms-1.4.2/

Step #3: Run getcomposer.sh

./getcomposer.sh

Step # 4: Create playSMS web root, log, lib and set ownership to user www-data or web server user

Assumed that your web root is /var/www/html and your web server user is www-data

mkdir -p /var/www/html/playsms /var/log/playsms /var/lib/playsms
chown -R www-data /var/www/html/playsms /var/log/playsms /var/lib/playsms

Please note that there are Linux distributions using apache as web server user instead of www-data

And also note that there are Linux distributions having /var/www as default web root instead of /var/www/html

Step # 5: Copy files and directories inside web directory to playSMS web root and set ownership to web server user

cp -R web/* /var/www/html/playsms 
chown -R www-data /var/www/html/playsms

Step 6: Setup database (import database)

mysqladmin -u root -p create playsms 
cat db/playsms.sql | mysql -u root -p playsms

Step 7: Copy config-dist.php to config.php and then edit config.php

cp /var/www/html/playsms/config-dist.php /var/www/html/playsms/config.php vi /var/www/html/playsms/config.php

Please read and fill all fields with correct values of your database name, user and password.

user and password.

Step 8: Enter daemon/linux directory, copy files and folder, and set correct permission

cp daemon/linux/etc/playsmsd.conf /etc/playsmsd.conf 
cp daemon/linux/bin/playsmsd.php /usr/local/bin/playsmsd 
chmod +x /usr/local/bin/playsmsd

Step 9: Just to make sure every paths are correct, please edit /etc/playsmsd.conf

vi /etc/playsmsd.conf

Make sure that PLAYSMS_PATH is pointing to a correct playSMS installation path (in this example to /var/www/html/playsms)

Also Make sure that PLAYSMS_BIN is pointing to a correct playSMS daemon scripts path (in this example to /usr/local/bin)

Step 10: Start playsmsd now from Linux console, no need to reboot

playsmsd start

Congrats you have sucessfully installed playSMS on your centos 7 server.

NOTE:

After successful installation, please run command ps ax and see if playsmsd is running

ps ax | grep playsms

4069 pts/12  S    0:00 /usr/bin/php -q /usr/local/bin/playsmsd /etc/playsmsd.conf schedule 
4071 pts/12  S    0:00 /usr/bin/php -q /usr/local/bin/playsmsd /etc/playsmsd.conf dlrssmsd 
4073 pts/12  S    0:00 /usr/bin/php -q /usr/local/bin/playsmsd /etc/playsmsd.conf recvsmsd 
4075 pts/12  S    0:00 /usr/bin/php -q /usr/local/bin/playsmsd /etc/playsmsd.conf sendsmsd

Run several checks

playsmsd status 
playsmsd check
  • Stop here and review your installation steps when playsmsd is not running
  • Consider asking a question in the playSMS forum when you encountered any problem
  • If all seems to be correctly installed you may try to login from web browser
URL                    : http://[your web server IP]/playsms/
Default admin username : admin
Default admin password : admin

For more information and tutorial related to playSMS follow the link playSMS documentation.

Vedant Singh

Linux System Administrator | Entrepreneur | Founder Techmion. I have started my career as a Linux system Administrator after that quit my job to start something new that excites me and started a Tech Company in order to provide the best technology to my clients. My Company website link: Technology at its best For Bulk, SMS-Marketing follows the link : https://www.pingsms.in/

View all posts by Vedant Singh →

Leave a Reply

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