GSM Brána

Z Poznámkový blok
Přejít na: navigace, hledání

Odkayz

Pár odkazů na různé řešení:

SMS Server Tools 3

sudo apt install -y gcc make tar wget

wget http://smstools3.kekekasvi.com/packages/smstools3-3.1.21.tar.gz
tar -xzf smstools*.tar.gz

Editovat soubor src/Makefile podle pokynů v něm.

make
make install

PlaySMS

sudo apt install -y apache2 mariadb-server git mc unzip
sudo apt install -y php php-cli php-mysql php-gd php-curl php-mbstring php-xml php-zip php-gettext-languages

git clone https://github.com/playsms/playsms.git
cd playsms
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === 'e21205b207c3ff031906575712edab6f13eb0b361f2085f1f1237b7126d785e826a450292b6cfd1d64d92e6563bbde02') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
sudo mcedit /etc/apache2/sites-available/dm143.playsms.org.conf

<VirtualHost *:80>
   ServerName dm143.playsms.org
   DocumentRoot /home/komodo/public_html
   ErrorLog /home/komodo/log/httpd-error.log
   CustomLog /home/komodo/log/httpd-accesss.log combined
   <Directory /home/komodo/public_html>
       AllowOverride FileInfo AuthConfig Limit Indexes
       Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
       Require method GET POST OPTIONS
       php_admin_value engine On
   </Directory>
</VirtualHost>
sudo mysqladmin create playsms

CREATE USER 'playsms'@'localhost' IDENTIFIED BY 'strongpasswordhere';
GRANT ALL PRIVILEGES ON playsms.* TO 'playsms'@'localhost';
FLUSH PRIVILEGES;
exit

Nastavit install.conf Spustit

cd /home/komodo/src/playSMS
./install-playsms.sh