1) Step-by-Step

- Install Apache with the PHP module. Installation instructions are included
  in the PHP distribution. Apache runs bij default als the user nobody!

- Unpack the BrijnSMS distribution
  After unpacking the archive move sms.php3 and sms_text.txt to your Apache
  document-root (or subdir).

- Create the SMS database
  - as root:
    #mysql mysql
    mysql> create database sms;
    mysql> mysql sms < sms.table.mysql
  - Setup the grand tables for the sms table (see MySQL docs). Remember user
    and password

- Install SMS Client.
  - Make sure the logfile (default /var/adm/smslog) can be read by the user
    Apache run under (default nobody). A "chmod 666 /var/adm/smslog" should
    work. If you don't, sms_client execution will fail: empty service
    selection etc.
  Edit /etc/sms/sms_config
  - Change SMS_lockfile to /tmp/smslock
  Edit /etc/sms/sms_modem
  - Change MDM_device to your modem, e.g ttyS1
  This can be tricky, when you also run mgetty+sendfax make sure to use the
  same device for both. I'm using /dev/ttyS1 and had to use the following
  setting for mgetty+sendfax:
  - /etc/mgetty+sendfax/mgetty.config
    port-owner nobody
    port-group nobody
    port-mode 0664
    port ttyS1

- Edit sms.php3
  Edit the settings under the heading "User definable settings"

- Edit sms_text.txt
  This is the text shown in the SMS-User screen. Put some HTML code here to
  explain the use. 

- Test
  - Fire up your browser and open http://<hosts>/<dir>/sms.php3
    You should see a login screen, if you see a lot of code: edit httpd.conf
    to recognize .php3 as PHP files (see PHP docs).
  - Login as User admin, Password adminpwd
    If you keep returning to the login screen, Apache can't set the cookie
    required for BrijnSMS. Change your browsers settings to allow cookies.

Please send problem reports with as much info as possible to bas@brijn.nu

Bas Rijniersce, Oktober 1999, bas@brijn.nu
