<div dir="ltr">to Zhou<div><br></div><div style><div>[root@opensips ~]# ps -axu | grep -i httpd</div><div>Warning: bad syntax, perhaps a bogus &#39;-&#39;? See /usr/share/doc/procps-3.2.8/FAQ</div><div>root      1798  0.0  0.5 285088 10616 ?        Ss   Oct26   0:04 /usr/sbin/httpd</div><div>apache    1831  0.0  0.2 285000  5832 ?        S    Oct26   0:00 /usr/sbin/httpd</div><div>apache    1834  0.0  0.5 287980 10964 ?        S    Oct26   0:00 /usr/sbin/httpd</div><div>apache    1837  0.0  0.5 288000 10900 ?        S    Oct26   0:00 /usr/sbin/httpd</div><div>apache    1840  0.0  0.5 287980 10964 ?        S    Oct26   0:00 /usr/sbin/httpd</div><div>apache    1842  0.0  0.5 287716 10784 ?        S    Oct26   0:00 /usr/sbin/httpd</div><div>apache    1844  0.0  0.4 287148 10060 ?        S    Oct26   0:00 /usr/sbin/httpd</div><div>apache    1845  0.0  0.5 287744 10760 ?        S    Oct26   0:00 /usr/sbin/httpd</div><div>apache    1847  0.0  0.4 287808 10188 ?        S    Oct26   0:00 /usr/sbin/httpd</div><div>apache    1849  0.0  0.5 287632 10696 ?        S    Oct26   0:00 /usr/sbin/httpd</div><div>root      1882  0.0  0.0 103252   864 pts/0    S+   10:04   0:00 grep -i httpd</div><div><br></div><div style>i think  httpd run as apache users</div><div style><br></div><div style>to Livui</div><div style><br></div><div style>i actually restart service and machine many times ,</div><div style>OMG, i just to restart opensips service and opensips-cp work fine now , </div><div style><br></div><div style>i really  think i did this steps before,<br><br></div><div style>any way ,thanks a lot</div><div style><br></div><div style>this the fifo issue has been solved , what about the carrierroute one? </div><div style><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 28, 2014 at 4:54 PM, Liviu Chircu <span dir="ltr">&lt;<a href="mailto:liviu@opensips.org" target="_blank">liviu@opensips.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <div><tt>Hello Michael,<br>
        <br>
        Have you restarted OpenSIPS after making the permission changes?
        I&#39;m saying this because:<br>
        <br>
        - you have correctly fixed the permissions issue in your script
        with:<br>
      </tt><span class=""><font face="monospace"><span style="font-size:13px">   
          modparam(&quot;mi_fifo&quot;, &quot;fifo_mode&quot;, 0666)</span></font></span><tt><br>
        <br>
        - however, these changes are not yet visible in your /tmp
        directory!</tt><tt><span class=""><b><br>
              prw-------  1 root root    0 10月 27 02:30 opensips_fifo</b><br>
        <br></span>
        It could also be possible that OpenSIPS is running on a
        different script than you are expecting.<br>
        <br>
        Best regards,<br>
      </tt>
      <pre cols="72">Liviu Chircu
OpenSIPS Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre><div><div class="h5">
      On 10/27/2014 04:15 AM, Michael Leung wrote:<br>
    </div></div></div>
    <blockquote type="cite"><div><div class="h5">
      <div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Hi Guys</span><br style="font-family:arial,sans-serif;font-size:13px">
        <br style="font-family:arial,sans-serif;font-size:13px">
        <span style="font-family:arial,sans-serif;font-size:13px">i run
          opensips and opensips-cp well on ubuntu 14.04 but i get error </span><br style="font-family:arial,sans-serif;font-size:13px">
        <br style="font-family:arial,sans-serif;font-size:13px">
        <span style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;text-align:-webkit-center;background-color:rgb(233,236,239)">Array
          ( [0] =&gt; sorry -- cannot open write fifo</span><br style="font-family:arial,sans-serif;font-size:13px">
        <br style="font-family:arial,sans-serif;font-size:13px">
        <span style="font-family:arial,sans-serif;font-size:13px">when i
          run opensips and opensips-cp on CentosOS 6 x86_64</span><br style="font-family:arial,sans-serif;font-size:13px">
        <br style="font-family:arial,sans-serif;font-size:13px">
        <span style="font-family:arial,sans-serif;font-size:13px">that
          is so wired </span><br style="font-family:arial,sans-serif;font-size:13px">
        <br style="font-family:arial,sans-serif;font-size:13px">
        <span style="font-family:arial,sans-serif;font-size:13px">i
          pretty so i modify /etc/default/opensip  to make sure that
          opensips is run root use </span><br style="font-family:arial,sans-serif;font-size:13px">
        <br style="font-family:arial,sans-serif;font-size:13px">
        <span style="font-family:arial,sans-serif;font-size:13px">and i
          check the following lines in /usr/local/opensips_proxy/etc/</span><span style="font-family:arial,sans-serif;font-size:13px">opensips/opensips_residential_</span><span style="font-family:arial,sans-serif;font-size:13px">xxxxx.cfg</span><br style="font-family:arial,sans-serif;font-size:13px">
        <br style="font-family:arial,sans-serif;font-size:13px">
        <span style="font-family:arial,sans-serif;font-size:13px">####
          FIFO Management Interface</span><br style="font-family:arial,sans-serif;font-size:13px">
        <span style="font-family:arial,sans-serif;font-size:13px">loadmodule
          &quot;mi_fifo.so&quot;</span><br style="font-family:arial,sans-serif;font-size:13px">
        <span style="font-family:arial,sans-serif;font-size:13px">modparam(&quot;mi_fifo&quot;,
          &quot;fifo_name&quot;, &quot;/tmp/opensips_fifo&quot;)</span><br style="font-family:arial,sans-serif;font-size:13px">
        <span style="font-family:arial,sans-serif;font-size:13px">modparam(&quot;mi_fifo&quot;,
          &quot;fifo_mode&quot;, 0666)</span><br style="font-family:arial,sans-serif;font-size:13px">
        <br style="font-family:arial,sans-serif;font-size:13px">
        <span style="font-family:arial,sans-serif;font-size:13px">i also
          check opensips_fifo in /tmp as the screenshot next</span><br style="font-family:arial,sans-serif;font-size:13px">
        <br style="font-family:arial,sans-serif;font-size:13px">
        <span style="font-family:arial,sans-serif;font-size:13px">seems
          rights of fifo are correct</span>
        <div><br style="font-family:arial,sans-serif;font-size:13px">
          <div>[root@opensips ~]# ls -l /tmp/</div>
          <div>total 4</div>
          <div>srwxrwxrwx  1 root root    0 10月 26 12:46
            OpenSIPS.2729.UzgMCc</div>
          <div><b>prw-------  1 root root    0 10月 27 02:30
              opensips_fifo</b></div>
          <div>drwxr-xr-x. 3 root root 4096 10月 23 09:19 pear</div>
          <div>prw-rw-rw-  1 root root    0 10月 26 11:40
            webfifo_<a href="tel:1073486329" value="+861073486329" target="_blank">1073486329</a></div>
          <div>prw-rw-rw-  1 root root    0 10月 26 11:45
            webfifo_1470388925</div>
          <div>prw-rw-rw-  1 root root    0 10月 26 11:46
            webfifo_1476361529</div>
          <div>prw-rw-rw-  1 root root    0 10月 26 11:44
            webfifo_1502401728</div>
          <div>prw-rw-rw-  1 root root    0 10月 26 11:43
            webfifo_1518457939</div>
          <div>prw-rw-rw-  1 root root    0 10月 26 11:38
            webfifo_1873894080</div>
          <div>prw-rw-rw-  1 root root    0 10月 26 11:47
            webfifo_1952463342</div>
          <div>prw-rw-rw-  1 root root    0 10月 26 11:42
            webfifo_1972326408</div>
          <div>prw-rw-rw-  1 root root    0 10月 26 11:36
            webfifo_314032636</div>
          <div>prw-rw-rw-  1 root root    0 10月 26 11:35
            webfifo_411862295</div>
          <div>prw-rw-rw-  1 root root    0 10月 26 11:39
            webfifo_428297397</div>
          <div>prw-rw-rw-  1 root root    0 10月 26 11:37
            webfifo_452862263</div>
          <div>prw-rw-rw-  1 root root    0 10月 26 11:41
            webfifo_978440604</div>
          <div>-rw-------. 1 root root    0 10月 23 06:15 yum.log</div>
          <div><br>
          </div>
          <br style="font-family:arial,sans-serif;font-size:13px">
          <br style="font-family:arial,sans-serif;font-size:13px">
          <span style="font-family:arial,sans-serif;font-size:13px">from
            output of /var/log/httpd/error.log</span><br style="font-family:arial,sans-serif;font-size:13px">
          <span style="font-family:arial,sans-serif;font-size:13px">i
            was told user did not have permission to write /read
            /tmp/opensips_fifo file</span><br style="font-family:arial,sans-serif;font-size:13px">
          <br style="font-family:arial,sans-serif;font-size:13px">
          <br style="font-family:arial,sans-serif;font-size:13px">
          <font style="font-family:arial,sans-serif;font-size:13px" color="#3366ff"><small>[Sun Oct 26 12:55:55 2014] [error]
              [client 10.67.67.11] PHP Notice:  A session had already
              been started - ignoring session_start() in
              /var/www/opensips-cp/web/tools/system/smonitor/lib/put_select_boxes.php
              on line 25, referer:<a href="http://10.67.255.154/cp/menu.php" target="_blank">http://10.67.255.154/cp/menu.php</a><br>
              [Sun Oct 26 12:55:55 2014] [error] [client 10.67.67.11]
              PHP Notice:  Undefined variable: box_val in
              /var/www/opensips-cp/web/tools/system/smonitor/lib/functions.inc.php
              on line 306, referer: <a href="http://10.67.255.154/cp/menu.php" target="_blank">http://10.67.255.154/cp/menu.php</a><br>
              [Sun Oct 26 12:55:55 2014] [error] [client 10.67.67.11]
              PHP Notice:  Undefined variable: arg_list in
              /var/www/opensips-cp/web/common/mi_comm.php on line 178,
              referer: <a href="http://10.67.255.154/cp/menu.php" target="_blank">http://10.67.255.154/cp/menu.php</a><br>
              [Sun Oct 26 12:55:55 2014] [error] [client 10.67.67.11]
              PHP Warning:  fopen(/tmp/opensips_fifo): failed to open
              stream:<b> </b><font color="#ff0000"><b>Permission denied</b></font> in
              /var/www/opensips-cp/web/common/mi_comm.php on line 193,
              referer:<a href="http://10.67.255.154/cp/menu.php" target="_blank">http://10.67.255.154/cp/menu.php</a></small></font><br style="font-family:arial,sans-serif;font-size:13px">
          <br style="font-family:arial,sans-serif;font-size:13px">
          <span style="font-family:arial,sans-serif;font-size:13px">anyone
            faced my problem before?</span><br style="font-family:arial,sans-serif;font-size:13px">
          <br style="font-family:arial,sans-serif;font-size:13px">
          <br style="font-family:arial,sans-serif;font-size:13px">
          <span style="font-family:arial,sans-serif;font-size:13px">there
            is another problem </span><br style="font-family:arial,sans-serif;font-size:13px">
          <br style="font-family:arial,sans-serif;font-size:13px">
          <span style="font-family:arial,sans-serif;font-size:13px">i
            read opensips support document </span><a href="http://www.opensips.org/html/docs/modules/1.11.x/carrierroute.html#id295092" style="font-family:arial,sans-serif;font-size:13px" target="_blank">http://www.opensips.org/html/docs/modules/1.11.x/carrierroute.html#id295092</a><span style="font-family:arial,sans-serif;font-size:13px"> for
            twice </span><br style="font-family:arial,sans-serif;font-size:13px">
          <br style="font-family:arial,sans-serif;font-size:13px">
          <span style="font-family:arial,sans-serif;font-size:13px">but
            i still dont figure out where and how can i generate a
            config file that required by carrierroute.so before opensips
            initialated . </span><br style="font-family:arial,sans-serif;font-size:13px">
          <br style="font-family:arial,sans-serif;font-size:13px">
          <br style="font-family:arial,sans-serif;font-size:13px">
          <span style="font-family:arial,sans-serif;font-size:13px">thanks
            for your help  very much </span><br style="font-family:arial,sans-serif;font-size:13px">
          <br style="font-family:arial,sans-serif;font-size:13px">
          <br style="font-family:arial,sans-serif;font-size:13px">
          <span style="font-family:arial,sans-serif;font-size:13px">Michael
            Leung</span><br>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </div>

<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>