FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » problems with exec()
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: problems with exec() [message #177730 is a reply to message #177729] Wed, 18 April 2012 16:02 Go to previous messageGo to previous message
J.O. Aho is currently offline  J.O. Aho
Messages: 194
Registered: September 2010
Karma:
Senior Member
Une Bévue wrote:
> Le 16/04/2012 19:29, J.O. Aho a écrit :
>> I suspect it could have the same issue, try to use shell_exec and let us
>> know if it works.
>
> Unfortunately, not.
> i suspect because the line :
>
> $cmd = ssh -L 63333:localhost:5432 -f yt@iMac -N
>
> is without password for the user 'yt' not for php being of user 'www_data' on
> Ubuntu.
>
> Nevertheless i got that pgsql db working remotly after editing pg_hba.conf.

Otherwise, you can copy the public key to the www-data users ~/.ssh and the
ssh would have worked. Of course you could have setup a cron job instead which
would recreated the tunnel each time it went down.
Of course those two solutions aren't as good as using the proper method.

--

//Aho
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: $this->delimiter in php explode
Next Topic: We Need Speakers For MOSC2012
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 21:27:07 GMT 2024

Total time taken to generate the page: 0.05149 seconds