Selasa, 13 Mei 2008

SMS Gateway with Gnokii and PlaySMS

WARNING !!!
———–
PlaySMS is not save for kids!
But if you’re a kid, and you can meet requirement’s below, you can use
PlaySMS, savely!
Kids must:
1. Not nervous when login to Linux console remotely
2. Able to read and understand README first, INSTALL and then FAQ in
this package
3. Able to use Yahoo! to send join PlaySMS mailing list, and ask good
questions
4. Be serious after this WARNING

REQUIREMENT
———–
Download PlaySMS : http://playsms.sourceforge.net/
Download Gnokii : http://www.gnokii.org/

Minimum Required Hardware
- Web servers hardware
- Disk freespace for software and data disk at least 10 MB
Minimum Required Software
- Operating System *NIX based (Linux preferred)
- Web Server (Apache preferred http://httpd.apache.org)
- Database Server MySQL 3.23.47 or latest stable release (http://
www.mysql.com)
- PHP 4.2.2 or latest stable release with mysql module enabled and CGI
version
(http://www.php.net)
Minimum Required Server Operator (or Developer)
- Understand howto make sure installed PHP has MySQL module enabled
(phpinfo)
- Understand howto create/drop MySQL database
- Understand howto insert SQL statement into created database
- OK to read README, INSTALL, FAQ and other docs :)

Gnokii’s Installation:
1. Extract gnokii source package somewhere (eg: /usr/local/src)
2. Configure it to make sure installation path is in /usr/local
# ./configure –prefix=/usr/local
Note: if you want to change to another directory, you better
understand how to
read source of /path_to_source_of_playsms/bin/* files written in bash
script
3. Make and make install, these actions should install gnokii to /usr/
local
# make
# make install
4. Enter directory named smsd in gnokii source directory, compile and
install smsd
Note: if you use gnokii version <>

PlaySMS Web Interface:
1. It is important to meet all minimum requiments above (Its a must!)
2. Setup a system user named ‘playsms’ to manage PlaySMS
# adduser playsms
# passwd playsms
Note: on some Linux distributions adduser and passwd combined
3. On most Linux distributions actions (2) will create system user and
group named playsms
with home directory /home/playsms, there you will install all PlaySMS
files
4. Create public_html on user’s home directory, if its not already
exists
# mkdir /home/playsms/public_html
5. Extract PlaySMS package somewhere (Place in /usr/local/src if you
want to)
tar -zxvf playsms-x.x.x.tar.gz
6. Copy ‘web’ directory to public_html directory and set owner back to
user playsms again
(for security reason)
# cp -rR web/* /home/playsms/public_html
# chown -R playsms /home/playsms/public_html
# chmod 701 /home/playsms
7. Setup database (import database)
# mysqladmin -u root -p create playsms
# mysql -u root -p playsms < /path_to_source_of_playsms/db/playsms.sql Note: you dont need to use MySQL root access nor this method to setup PlaySMS database, but this is beyond our scope, you should read MySQL manual for custom installation method 8. Edit config.php on playsms web directory (/home/playsms/public_html/ config.php) Please read and fill all fields required carefully 9. Enter bin directory and copy playsmsd and playsmsd_start to /usr/ local/bin # cd bin # cp playsmsd playsmsd_start /usr/local/bin/ 10. Enter /etc/init.d or /etc/rc.d/init.d and look for file rc.local, im sure you’ll found it. Edit that file and put “/usr/local/bin/ playsmsd_start” (without quotes) on the bottom of the file (before exit if theres exit). This way playsmsd_start will be run everytime the system startup 11 Browse http://localhost/~playsms and login using default
administrator user
username: admin
password: admin
12. At this point you should be able to logon PlaySMS webbased
interface.

NOTES
—–
1. It is VERY important to set these settings below on your php.ini
safe_mode = Off
register_globals = Off
magic_quotes_gpc = On
2. Dont forget to read FAQ and CHANGELOG carefully

0 coment-ar: