INSTALL
上传用户:eo_sii
上传日期:2007-01-05
资源大小:91k
文件大小:2k
- SMSLink Web Interface Installation Procedure
- ============================================
- (Last modified on 25/06/99)
- 1./ Install the HTML document.
- Copy the file called index.html to some place under your web site's
- document-root.
- 2./ Customize the HTML doc.
- Some items on the page will have to be changed to match your site
- setup. Among those are:
- - the URL leading to the CGI script
- - the email address of your local webmaster
- - the choice of included logos at the bottom of the page
- This page also contains an informational blurb about SMS in general
- in its routing between networks in particular. You might want to
- review this to make sure it's relevant in your case (or to delete
- it alltogether).
- 3./ Install the CGI script.
- Copy the file called smsgw.pl to your cgi-bin/ directory. If you're
- working with a recent version of Apache (as of 1.3.x for sure), the
- server by default doesn't allow a CGI script to call any program
- outside of the cgi-bin tree (for security reason). What you'll
- want to do in this case is either create in the cgi-bin/ a symlink
- to the sms client program (normally in /usr/local/bin), or copy the
- executable to the cgi-bin/ directory. Both ways work.
- 4./ Customize the CGI script.
- In the case your http server restricts the execution of programs
- outside of the cgi-bin tree, it also strips the environment. So,
- you'll have to adapt the system() call in the script by giving the
- path (be it relative) to the sendsms utility. For instance:
- $retval = system ("./sendsms", "-d$dest", "-u$userid", ...
- On this same line, also replace my server name (zenobe) with yours.