On my gentoo box and before that on my debian box I use pppconfig which sets things up so that pppd (or possibly the scripts that call it (pon and poff) are in a dialup group which you can add users to - you could add the apache user to this group. It also takes care of the chatscripts and default route etc. I can send you a more detailed description of my setup when I get home if you want it. To actually connect etc I use the gnome modem-lights panel applet which calls the pon and poff scripts and can show usage information. I'm sure writing an apache script to call them wouldn't be much more difficult.
HTH On Thu, 15 Jul 2004 14:57:00 +1200, Mark Carey <[EMAIL PROTECTED]> wrote: > Hi all, > > Am recently married and are trying to find a way for my wife to connect > to the internet, currently I plug modem into phone line open an ssh > session to linux box (angus), login, su, and issue the following two > commands; > > 1. [EMAIL PROTECTED] 2004]# /sbin/route del default > > 2. [EMAIL PROTECTED] 2004]# /usr/sbin/pppd /dev/ttyS2 115200 remotename > paradise user me connect "/usr/sbin/chat -v '' AT OK > ATD086727234 CONNECT '\d\c'"; tail -f /var/log/ppp > > DNS handled statically and MASQ handled by iptables rules which execute > as link comes up. > > Now the box is a LAMP box (Linux + Apache + MySQL + PHP) and the deault > page for the web browsers on my windows box point to my apache server. > > I could write a script that apache could execute to bring the link up, > however I have apache running as a non root user. Only root has > sufficient permissions to run pppd. > > I am not interested in implementing demand dialing, the internet is full > of lovely mail while you are at work zombies and I am not prepared to > have my windows box add to the noise, if it became infected. > > Any sugestions? or other help? > > Thanks, > > Mark Carey >
