December 22, 2024
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 Kumar

Currently I'm working as an Implementation Engineer, Started my career as an System Administrator - Linux. Additionally loves to explore new technologies and research about new open-source software that ease the development cycle.

View all posts by Vedant Kumar →

Leave a Reply

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


The reCAPTCHA verification period has expired. Please reload the page.

close

Ad Blocker Detected!

VEDANT EXPLAINS
We've noticed that you are using an ad blocker. Advertising helps fund our server cost and keep it truly independent. It helps to build our content creator team. So please disable your ad blocker, and help us to keep providing you with free- great content - for free. Thank you for your support.

Refresh