This document explains about how to install and setup playSMS version 1.4
Most of on the requirements on this list must be fulfilled. Please read this part before starting the installation.
Minimum required hardware:
- Web server capable hardware
Optional hardware or infrastructure:
- GSM modem, single/modem pool (only when you plan to use Kannel, Gammu, Gnokii or smstools gateway plugins)
- Internet connection (only when you plan to use Clickatell, Nexmo, Twilio, Infobip gateway plugins)
- LAN (only when you plan to link 2 playSMS on different server in the same network using Uplink gateway plugin)
Minimum 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)
Minimum required server administrator (or developer):
- Understand howto make sure required softwares are installed
- Understand howto make sure installed PHP has MySQL module enabled/loaded
- Understand howto create/drop MySQL database
- Understand howto insert SQL statements into created database
- Basic knowledges to manage Linux (skill to navigate in console mode)
There are 2 methods explained in this document to install playSMS:
- Installation on Linux using install-script
- Installation on Linux step by step
You should pick only one method, do not do both methods.
Again, please do only one method, do not do both methods, unless of course you know what you're doing.
Install playSMS using install script install-playsms.sh
-
Extract playSMS package and go there (For example in
/usr/local/src
)tar -zxf playsms-1.4.tar.gz -C /usr/local/src ls -l /usr/local/src/ cd /usr/local/src/playsms-1.4/
-
Copy
install.conf.dist
toinstall.conf
and editinstall.conf
Read
install.conf
and make changes to suit your system configurationcp install.conf.dist install.conf vi install.conf
-
Run playSMS install script
./install-playsms.sh
-
Configure
rc.local
to getplaysmsd
started on bootLook for
rc.local
on/etc
,/etc/init.d
or/etc/rc.d/init.d
When you found it edit that
rc.local
and put:/usr/local/bin/playsmsd start
on the bottom of the file (before exit if theres an exit command).
This way
playsmsd
will start automatically on boot.
Note:
-
After successful installation, please run command
ps ax
and see ifplaysmsd
is runningps 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 to ask question in 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
Install playSMS by following step-by-step:
-
Extract playSMS package and go there (For example in
/usr/local/src
)tar -zxf playsms-1.4.tar.gz -C /usr/local/src ls -l /usr/local/src/ cd /usr/local/src/playsms-1.4/
-
Run
getcomposer.sh
./getcomposer.sh
-
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-datamkdir -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
-
Copy files and directories inside
web
directory to playSMS web root and set ownership to web server usercp -R web/* /var/www/html/playsms chown -R www-data /var/www/html/playsms
-
Setup database (import database)
mysqladmin -u root -p create playsms cat db/playsms.sql | mysql -u root -p playsms
-
Copy
config-dist.php
toconfig.php
and then editconfig.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
-
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
-
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
) -
Start
playsmsd
now from Linux console, no need to rebootplaysmsd start
-
Configure
rc.local
to getplaysmsd
started on bootLook for
rc.local
in/etc
,/etc/init.d
or/etc/rc.d/init.d
When you found it edit that
rc.local
and put:/usr/local/bin/playsmsd start
on the bottom of the file (before exit if theres an exit command).
This way
playsmsd
will start automatically on boot.
Note:
-
After successful installation, please run command
ps ax
and see ifplaysmsd
is runningps 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 to ask question in 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
Read more information and tutorial in playSMS documentation.