# yum install php-pear-DBdownloads playsms free sms gateway
# adduser playsms
# passwd playsms
# wget http://sourceforge.net/projects/playsms/files/playsms/Version%200.9.3/playsms-0.9.3.tar.gz/download
# cd playsms-0.9.3
# mkdir /var/www/html/playsms
# cp -R web/* /var/www/html/playsms
# mysql -u root -p
# mysql -u root -p playsms < /root/playsms-0.9.3/db/playsms.sql
# cd /var/www/html/playsms/
# cp config-dist.php config.php
Rubahlah file config.php pada bagian password untuk root di mysql. Berikut adalah file config.php penulis:
# vi config.php
$db_param['type'] = ‘mysql’; // database engine
$db_param['host'] = ‘localhost’; // database host/server
$db_param['port'] = ”; // database port
$db_param['user'] = ‘root’; // database username
$db_param['pass'] = ’123456′; // database password
$db_param['name'] = ‘playsms’; // database name
$db_param['pref'] = ‘playsms’; // table’s prefix without trailing underscore
Kemudian lakukan pengopian:
# cd /root/playsms-0.9.3/bin/
# cp kannel_incoming /usr/local/bin/
# cp playsmsd playsmsd.php playsmsd_start /usr/local/bin/
# cp playsms /etc/default/
# service httpd restart
Buka browser dan ketikkan:
# http://localhost(ip)/playsms
inspirations
sms-gateway-di-centos-5-5
install-playsms-and-kannel-on-centos-6
1 Komentar
how do i configure this to get sms from my modem which is huawei e1552
BalasPenulisan markup di komentar