[stunnel-users] launch stunnel server daemon from php?
wkenzie at gmail.com
Sat May 3 01:27:04 CEST 2008
No, that does not work either.
I can get stunnel to start fine outside of php, but not as an exec or
shell_exec from within a running script, or even from within php -a
I can get other programs to work fine this way, so it is specific to the
stunnel executable as best I can tell.
I have tried running various forms of bash scripts too, but none do any
. . . . .
On Fri, May 2, 2008 at 12:52 PM, Ludolf Holzheid <
lholzheid at bihl-wiedemann.de> wrote:
> On Fri, 2008-05-02 12:32:19 -0700, Wesley Kenzie wrote:
> > Yes. Without this stunnel would not launch. With foreground = no and
> > the trailing & on the command line I got it to launch, but still control
> > will not return to my php script ...
> > . . . . .
> > Wesley
> > On Fri, May 2, 2008 at 12:29 PM, Ludolf Holzheid <
> > lholzheid at bihl-wiedemann.de> wrote:
> > > On Fri, 2008-05-02 12:19:38 -0700, Wesley Kenzie wrote:
> > > > I am having problems launching stunnel from a php "exec" command. I
> > > would
> > > > like to have it launch as a server daemon and then have the exec
> > > > return control to the php script.
> > >
> > > Did you try to specify ``foreground = no'' in the configuration file?
> I must confess that I don't know php and its `exec' command. There
> must be something special about it.
> I would try to start a shell, which starts stunnel, which, in turn,
> detaches itself to the background (i.e. something like "/bin/sh -c
> '/usr/local/bin/stunnel /etc/stunnel/test.conf'"). So that the process
> started by `exec' finishes and hopefully control returns to php.
> A: Because it messes up the order in which people normally read text.
> Q: Why is top-posting such a bad thing?
> A: Top-posting.
> Q: What is the most annoying thing in e-mail?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the stunnel-users