Install playSMS 1.0 using install script

Below content is copy-pasted from playSMS Book Project.

Install playSMS using install script install-playsms.sh

  1. Login as root

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

    tar -zxf playsms-1.0.tar.gz -C /usr/local/src
    ls -l /usr/local/src/
    cd /usr/local/src/playsms-1.0/
    
  3. Copy install.conf.dist to install.conf and edit install.conf

    Read install.conf and make changes to suit your system configuration

    cp install.conf.dist install.conf
    vi install.conf
    
  4. Run installer script

    ./install-playsms.sh
    
  5. Configure rc.local to get playsmsd started on boot

    Look for rc.local on /etc, /etc/init.d, /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 if playsmsd is running

    ps ax | grep playsms
    4069 pts/12  S    0:00 /usr/bin/php -q /usr/local/bin/playsmsd schedule
    4071 pts/12  S    0:00 /usr/bin/php -q /usr/local/bin/playsmsd dlrssmsd
    4073 pts/12  S    0:00 /usr/bin/php -q /usr/local/bin/playsmsd recvsmsd
    4075 pts/12  S    0:00 /usr/bin/php -q /usr/local/bin/playsmsd 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 a 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
    

While installation i get this error:

Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1
- gregwar/captcha v1.0.9 requires ext-gd * -> the requested PHP extension gd is missing from your system.
- gregwar/captcha v1.0.8 requires ext-gd * -> the requested PHP extension gd is missing from your system.
- gregwar/captcha v1.0.7 requires ext-gd * -> the requested PHP extension gd is missing from your system.
- gregwar/captcha v1.0.6 requires ext-gd * -> the requested PHP extension gd is missing from your system.
- gregwar/captcha v1.0.5 requires ext-gd * -> the requested PHP extension gd is missing from your system.
- gregwar/captcha v1.0.4 requires ext-gd * -> the requested PHP extension gd is missing from your system.
- gregwar/captcha v1.0.3 requires ext-gd * -> the requested PHP extension gd is missing from your system.
- gregwar/captcha v1.0.2 requires ext-gd * -> the requested PHP extension gd is missing from your system.
- gregwar/captcha v1.0.12 requires ext-gd * -> the requested PHP extension gd is missing from your system.
- gregwar/captcha v1.0.11 requires ext-gd * -> the requested PHP extension gd is missing from your system.
- gregwar/captcha v1.0.10 requires ext-gd * -> the requested PHP extension gd is missing from your system.
- gregwar/captcha v1.0.1 requires ext-gd * -> the requested PHP extension gd is missing from your system.
- gregwar/captcha v1.0 requires ext-gd * -> the requested PHP extension gd is missing from your system.
- Installation request for gregwar/captcha 1.0.* -> satisfiable by gregwar/captcha[v1.0, v1.0.1, v1.0.10, v1.0.11, v1.0.12, v1.0.2, v1.0.3, v1.0.4, v1.0.5, v1.0.6, v1.0.7, v1.0.8, v1.0.9].

Kindly help!!

Install php gd, you might also need other exstensions such mysql, imap, mcrypt

Read requirementsl, read playSMS book project, search this forum

Anton

Thanks for your reply.

I am planning to prepare a new system (ubuntu/debian) and try installation afresh and keep you updated.

regards/

Hi
I got the following error when installing. Any idea how to solve this?

When you’re ready press [y/Y] or press [Control+C] to cancel ^C
root@hebat:/var/www/telbru# /usr/local/bin/composer.phar update
Warning: This development build of composer is over 30 days old. It is recommended to update it by running “/usr/local/bin/composer.phar self-update” to get the latest version.
Loading composer repositories with package information
The “https://packagist.org/packages.json” file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
Failed to enable crypto
failed to open stream: operation failed
https://packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date
Updating dependencies (including require-dev)

[Composer\Downloader\TransportException]
The “http://packagist.org/p/pear/archive_tar$400e951122eb3721c070ecc1071b30b0d054eacc2cb0231c0a1d2b63df825c33.json” file could not be downl
oaded: SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
Failed to enable crypto
failed to open stream: operation failed

update [–prefer-source] [–prefer-dist] [–dry-run] [–dev] [–no-dev] [–lock] [–no-plugins] [–no-custom-installers] [–no-autoloader] [–no-scripts] [–no-progress] [–with-dependencies] [-v|vv|vvv|–verbose] [-o|–optimize-autoloader] [–ignore-platform-reqs] [–prefer-stable] [–prefer-lowest] [packages1] … [packagesN]

what distro, which version do you use ?

anton

LSB Version: core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch
Distributor ID: Ubuntu
Description: Ubuntu 15.04
Release: 15.04
Codename: vivid

never had this issue before, googled and I got these:

try to update composer first:

 /usr/local/bin/composer.phar self-update

I have done that /usr/local/bin/composer.phar self-update and got the same message
tried /usr/local/bin/composer.phar update too still same message

I managed to fix it based on this help from https://github.com/composer/composer/issues/3346 last tips. i.e copy the certificate as in the url