<HTML dir=ltr><HEAD>
<META content="text/html; charset=unicode" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18939"></HEAD>
<BODY>
<DIV><FONT color=#000000 size=2 face=Arial>I have a curios problem. I have 2 machines configured to run mpd and mpich2 via ubuntu linux server x64. From console i can run mpd and verify that i have a functional ring. I can run jobs as well. I have verified that i can do via root or via a user on the machines. I am developing a project where i need to be able to start mpich2 jobs via a web browser. I have set up apache2 with php5 and use system calls such as :</FONT></DIV>
<DIV><FONT size=2 face=Arial>exec()</FONT></DIV>
<DIV><FONT size=2 face=Arial>passthru()</FONT></DIV>
<DIV><FONT size=2 face=Arial>system()</FONT></DIV>
<DIV><FONT size=2 face=Arial>I have verified that apache is running as a user called 'wwwserveruser' and have set up a .mpd.conf file in the users home directory with the mpd password option. I also have a mpd.conf file in /etc/mpd.conf with the same settings.</FONT></DIV>
<DIV><FONT size=2 face=Arial>If i log in to the machines via SSH i am able to start mpd, verify the ring, and run jobs. Howevr when i call any mpich2 or mpd commands via php system calls they <FONT color=#ff0000>fail with:</FONT></FONT></DIV>
<DIV><FONT size=2 face=Arial><?</FONT></DIV>
<DIV><FONT size=2 face=Arial>echo passthrough("whoami");</FONT></DIV>
<DIV><FONT size=2 face=Arial>
<DIV><FONT size=2 face=Arial>echo passthrough("mpdtrace -l");</FONT></DIV></FONT></DIV>
<DIV><FONT size=2 face=Arial>?></FONT></DIV>
<DIV><FONT color=#ff0000 size=2 face=Arial>my output is :</FONT></DIV>
<DIV><FONT size=2 face=Arial>wwwserveruser</FONT></DIV>
<DIV><SPAN style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: medium 'Times New Roman'; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class=Apple-style-span><FONT size=2 face=Arial>unable to find mpd.conf file</FONT></SPAN></DIV>
<DIV><SPAN style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: medium 'Times New Roman'; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class=Apple-style-span><FONT size=2 face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: medium 'Times New Roman'; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class=Apple-style-span><FONT size=2 face=Arial>What am i doing wrong??</FONT></SPAN></DIV>
<DIV><SPAN style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: medium 'Times New Roman'; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class=Apple-style-span><FONT size=2 face=Arial>Leon Yuhanov</FONT></SPAN></DIV>
<DIV><SPAN style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: medium 'Times New Roman'; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class=Apple-style-span><FONT size=2 face=Arial>PCAT</FONT></SPAN></DIV>
<DIV><SPAN style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: medium 'Times New Roman'; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class=Apple-style-span><FONT size=2 face=Arial><A href="mailto:leon@philipchun.com">leon@philipchun.com</A></FONT></SPAN></DIV></BODY></HTML>