Re: [stunnel-users] launch stunnel server daemon from php?

This is a discussion on Re: [stunnel-users] launch stunnel server daemon from php? within the Stunnel Users forums, part of the Networking and Network Related category; --===============1481049045== Content-Type: multipart/alternative; boundary="----=_Part_19225_3910360.1209770824061" ------=_Part_19225_3910360.1209770824061 Content-Type: text/plain; charset=ISO-8859-1 ...


Go Back   Usenet Forums > Networking and Network Related > Stunnel Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 1 Week Ago
Wesley Kenzie
 
Posts: n/a
Default Re: [stunnel-users] launch stunnel server daemon from php?

--===============1481049045==
Content-Type: multipart/alternative;
boundary="----=_Part_19225_3910360.1209770824061"

------=_Part_19225_3910360.1209770824061
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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
interactively.

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
better.

Ideas?

.. . . . .
Wesley

On Fri, May 2, 2008 at 12:52 PM, Ludolf Holzheid <
lholzheid@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

> with
> > 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@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

> command
> > > > return control to the php script.
> > >
> > > Did you try to specify ``foreground = no'' in the configuration file?

>
> Wesley,
>
> 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.
>
> hth,
>
> Ludolf
>
> --
>
> 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?
>


------=_Part_19225_3910360.1209770824061
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<div>No, that does not work either.</div>
<div>&nbsp;</div>
<div>I can get stunnel to start fine outside of php, but not as an exec or shell_exec&nbsp;from within a running script, or even from within php -a interactively.</div>
<div>&nbsp;</div>
<div>I can get other programs to work fine this way, so it is specific to the stunnel executable as best I can tell.</div>
<div>&nbsp;</div>
<div>I have tried running various forms of bash scripts too, but none do any better.</div>
<div>&nbsp;</div>
<div>Ideas?</div>
<div>&nbsp;</div>
<div>. . . . .</div>
<div>Wesley<br><br></div>
<div class="gmail_quote">On Fri, May 2, 2008 at 12:52 PM, Ludolf Holzheid &lt;<a href="mailto:lholzheid@bihl-wiedemann.de">lholzheid@bihl-wiedemann.de</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="Ih2E3d">On Fri, 2008-05-02 12:32:19 -0700, Wesley Kenzie wrote:<br>&gt; Yes. Without this stunnel would not launch. With foreground = no and with<br>&gt; the trailing &amp; on the command line I got it to launch, but still control<br>
&gt; will not return to my php script ...<br>&gt;<br>&gt; . . . . .<br>&gt; Wesley<br>&gt;<br>&gt; On Fri, May 2, 2008 at 12:29 PM, Ludolf Holzheid &lt;<br>&gt; <a href="mailto:lholzheid@bihl-wiedemann.de">lholzheid@bihl-wiedemann.de</a>&gt; wrote:<br>
&gt;<br>&gt; &gt; On Fri, 2008-05-02 12:19:38 -0700, Wesley Kenzie wrote:<br>&gt; &gt; &gt; I am having problems launching stunnel from a php &quot;exec&quot; command. &nbsp;I<br>&gt; &gt; would<br>&gt; &gt; &gt; like to have it launch as a server daemon and then have the exec command<br>
&gt; &gt; &gt; return control to the php script.<br>&gt; &gt;<br>&gt; &gt; Did you try to specify ``foreground = no'' in the configuration file?<br><br></div>Wesley,<br><br>I must confess that I don't know php and its `exec' command. There<br>
must be something special about it.<br><br>I would try to start a shell, which starts stunnel, which, in turn,<br>detaches itself to the background (i.e. something like &quot;/bin/sh -c<br>'/usr/local/bin/stunnel /etc/stunnel/test.conf'&quot;). So that the process<br>
started by `exec' finishes and hopefully control returns to php.<br><br>hth,<br><br>Ludolf<br><font color="#888888"><br>--<br><br>A: Because it messes up the order in which people normally read text.<br>Q: Why is top-posting such a bad thing?<br>
A: Top-posting.<br>Q: What is the most annoying thing in e-mail?<br></font></blockquote></div>

------=_Part_19225_3910360.1209770824061--

--===============1481049045==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
stunnel-users mailing list
stunnel-users@mirt.net
http://stunnel.mirt.net/mailman/listinfo/stunnel-users

--===============1481049045==--
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:12 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0