#156: start liquidsoap via php website
------------------------+---------------------------------------------------
 Reporter:  mccurly     |       Owner:  admin    
     Type:  Bugs        |      Status:  new      
 Priority:  1           |   Milestone:  0.3.7    
Component:  Liquidsoap  |     Version:  0.3.7+svn
 Keywords:              |         Mac:  0        
    Linux:  1           |      Netbsd:  0        
    Other:  0           |     Freebsd:  0        
------------------------+---------------------------------------------------
 sometimes you may want to start your liquidsoap via internet site. this is
 useful, if you have a lot of people who want to start some automatics
 after human broadcast. ;) therefore the liquidsoap has to be started. i
 tryed it with a php script eg. exec() shell_exec() system(), but
 liquidsoap died without notification. as love-pingoo and toots could sort
 out, this is some php issue. in /var/log/apache/error.log could be found:
 "Fatal error: exception Not_found". this was the first hint, at the second
 glance "the env variable HOME was undefined with PHP, and liq choked on
 that" (love-pingoo). and here comes the workaround:

 your php snippet:
 system("HOME=foo /usr/bin/liquidsoap /path/to.conf 2>&1;");

 set HOME what ever you want, it has to be set somehow

 thx David Baelde and Romain Beauxis for the great help!
 liquidsoap rockz!!

-- 
Ticket URL: <http://savonet.rastageeks.org/ticket/156>
Savonet <http://savonet.rastageeks.org/>
Let's program our stream !
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Savonet-trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-trac

Reply via email to