WOW-TO install “PLAYSMS 1.0-rc9” on “RASPBERRY PI 2 B

note: playsms is a free and universal sms-gateway

see all WOW-TO’s


v1.2.0 [20150502]


resources:

Links:


This is a short and comprehensive introduction how to install “playSMS” freeware onto a Raspberry Pi 2 B, you can use by your webbroser in a very simple way. As old versions are no longer recommended. I tried to install version 1.0-rc9:

http://playsms.org/the-last-rc-version-for-1-0-has-been-released-1-0-rc9/#more-580

This was not so easy as supposed. But i did it and refurbished this WOW-TO :)


Requirements:

sudo bash

sudo apt-get install -y rpi-update

sudo apt-get update -y && sudo apt-get upgrade -y


First installing steps

sudo bash

sudo apt-get install -y rpi-update

sudo apt-get update -y && sudo apt-get upgrade -y

uname -a

Linux raspberrypi 3.18.12-v7+ #782 SMP PREEMPT Tue Apr 28 19:54:13 BST 2015 armv7l GNU/Linux

sudo reboot

sudo bash

cd

sudo apt-get -y install mysql-server mysql-client apache2 php5 php5-cli php5-mysql php-gettext libapache2-mod-php5 php-pear php5-mysql php5-curl php5-gd php5-idn php5-imagick php5-imap php5-mcrypt php5-memcache php5-mhash php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl php5-json php-pear php-apc php5-gd

When the mysql-server is installed, you will probably be asked a password during the installation process. Note this password!

Now, lets fetch the program file, here it is 1.0-rc9; just change this when new release:

wget https://github.com/antonraharja/playSMS/archive/1.0-rc9.tar.gz

sudo tar -zxf 1.0-rc9.tar.gz -C /usr/local/src/

rm 1.0-rc9.tar.gz

<info: next line only needed, when upgrading to a new release

sudo rm -R /var/www/playsms /var/spool/playsms /var/log/playsms /var/lib/playsms

/>

sudo mkdir -p /var/www/playsms /var/spool/playsms /var/log/playsms /var/lib/playsms

sudo chown -R www-data /var/www/playsms /var/spool/playsms /var/log/playsms /var/lib/playsms

cd /usr/local/src/playSMS-1.0-rc9


https://github.com/antonraharja/playSMS/blob/master/INSTALL.md


There is also a very comfortable installing script available, you should use instead of the manual way described below, because of possible errors.

.

Follow just these steps::

cd /usr/local/src/playSMS-1.0-rc9

root@raspberrypi:/usr/local/src/playSMS-1.0-rc9#

ls -a

cp install.conf.dist install.conf

sudo nano install.conf

edit install.conf suiting to your needs

sudo ./install-play.sh

just follow the instructions

and you are done!

my congrats!



sudo cp -rR /usr/local/src/playSMS-1.0-rc9/web/* /var/www/playsms

Now, let’s create the playsms database in mysql and fill in the tables with right data.

mysqladmin -u root -p create playsms

You must enter the mysql password here

 
mysql -u root -p playsms < /usr/local/src/
playSMS-1.0-rc9/db/playsms.sql

You must enter the mysql password here

sudo cp -a /var/www/playsms/config-dist.php /var/www/playsms/config.php

sudo nano /var/www/playsms/config.php

my password setting is not shown here. Fill in your passwort you noted above!

sudo mkdir -p /etc/default /usr/local/bin

sudo cp /usr/local/src/playSMS-1.0-rc9/daemon/linux/etc/playsmsd.conf   /etc/default/

sudo cp -rR /usr/local/src/playSMS-1.0-rc9/daemon/linux/bin/* /usr/local/bin/


To ensure, that PlaySMS is starting “automagically”, pls follow this step:

sudo nano /etc/rc.local

pls, ake sure, that

/usr/local/bin/playsmsd_start

is filled in before

exit 0



< info about composer problem and how to solve:

Now here my steps how to solve thos composer thing.

1st  i got this on screen

after a little digging i solved it, installing composer like  this:

cd /usr/local/src/playSMS-1.0-rc9

sudo ./getcomposer.sh

then i copied it into the www directory

sudo cp -rR /usr/local/src/playSMS-1.0-rc9/web/* /var/www/playsms

Thus it worked fine

/info>



Installation has been finished now and we can start the program:

playsmsd start


You will reach playSMS typing into your browser:

http://raspberrypi/playsms

or e.g. IP= ip adress of Raspberry Pi 2 B

http://IP/playsms

1st login is: admin | admin

change admin-> manage gateway

Then just click on the correct button to activate smstools:


That’s all we had to do!

Here we go!

Have fun!

+++

ps: postfix on raspberry will be the next


 /

http://pimail.blogspot.com | contact : pimail.project@gmail.com