Debian SMS system
My system is Debian 7.6
apt-get install gnokii gnokii-smsd-mysql mysql-server mysql -u root -p create database smsgw; mysql -u root -p smsgw < /usr/share/doc/gnokii-smsd-mysql/sms.tables.mysql.sql vi /etc/gnokiirc vi /root/.config/gnokii/config [global] port = /dev/ttyS0 model = AT connection = serial use_locking = no serial_baudrate = 9600 smsc_timeout = 10 serial_write_usleep = 1 require_dcd = 0 /usr/sbin/smsd -u root -p -d smsgw -c localhost -m mysql When system boots vi sms.sh sleep 30 rm -rf /var/lock/LCK..ttyS0. /usr/sbin/smsd -u sms -p -d smsgw -c localhost -m mysql
install nginx php5
apt-get install nginx php5-fpm php5-mysql memcached
/etc/php5/fpm/pool.d/www.conf
listen = /var/run/php5-fpm.sock
Check system
mysql -u root -p smsgw select * from inbox; insert into outbox (number,text) values('+642', 'Tetsing Testing everyone');