It could be either a permissions problem, or current directory if it works
with php-cli and not under Apache.

php-cli will run under the current user, and current directory is where
ever you happen to be when you run php-cli.

Apache is running under the Apache user (depends on how apache is set up),
and current directory is where the URL was pointing.

Make sure you read the PHP docs about exec and how to keep it from hanging
the web server.

Nick


On Tue, Apr 29, 2014 at 12:28 AM, <[email protected]> wrote:

>
> Try exec("q"); with the quotes. It works for me on the same OS.
>
> or simply drop the variable altogether:
>
>
> <?php
>
> ...
>
> exec("HOME=/home/stream /usr/local/bin/liquidsoap -d
>   --errors-as-warnings --debug > /home/stream/log 2>&1");
>
> ?>
>
> Regards,
> kronos
>
>
> On Thu, 27 Mar 2014 09:48:09 -0400, [email protected] <[email protected]>
> wrote:
>
> > Hello!
> >
> > I'm trying to start liquidsoap via PHP script. My command looks like:
> > $q = "HOME=/home/stream /usr/local/bin/liquidsoap -d
> > --errors-as-warnings --debug > /home/stream/log 2>&1";
> > shell_exec($q);
> >
> > Liquidsoap puts to log an error:
> > Fatal error: exception Not_found
> >
> > I tried also running it using tmux & screen. Same result. When I am
> > using php-cli it works good. I found that:
> > http://dev.sourcefabric.org/browse/LS-167
> > and it didn't work for me.
> >
> > I am using FreeBSD 10, what can be wrong?
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> > _______________________________________________
> > Savonet-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/savonet-users
>
>
> --
> Using Opera's mail client: http://www.opera.com/mail/
>
>
> ------------------------------------------------------------------------------
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos.  Get
> unparalleled scalability from the best Selenium testing platform available.
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users
>
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to