[OpenSIPS-Users] Problem with /tmp/opensips_fifo

Bogdan-Andrei Iancu bogdan at voice-system.ro
Fri Mar 12 18:55:21 CET 2010


Erick,

as probably you run opensips as user root, the fifo file is owned by 
root, so opensips-cp (run by apache, with user apache/www-data) has no 
permission to write into the fifo.

A simple solution will be to grant larger permissions to the fifo file 
(in opensips.cfg):  

	modparam("mi_fifo", "fifo_mode", 0666)


http://www.opensips.org/html/docs/modules/1.6.x/mi_fifo.html#id227261

you need to restart opensips!

Regards,
Bogdan

Erick Chinchilla Berrocal wrote:
> Now the problem with the Control Panel 4.0 continues
> This is the situation with each module
>
>
> -Dialog= Warning: fopen(/tmp/opensips_fifo) [function.fopen]: failed to open
> stream: Permission denied in /var/www/opensips-
> cp/web/common/mi_comm.php  on line 147
> 			Array ( [0] => sorry -- cannot open write fifo )
>
>
> -Dispatcher = Warning: fopen(/tmp/opensips_fifo) [function.fopen]: failed to
> open stream: Permission denied in
> /var/www/opensips-cp/web/common/mi_comm.php on line 147
> 		Array ( [0] => sorry -- cannot open write fifo )
>
> 		Warning: fopen(/tmp/opensips_fifo) [function.fopen]: failed
> to open stream: Permission denied in /var/www/opensips-
> cp/web/common/mi_comm.php  on line 147
> 		Array ( [0] => sorry -- cannot open write fifo [1] => sorry
> -- cannot open write fifo )
>
> -MI Commands = /tmp/opensips_fifo
> 			Warning: fopen(/tmp/opensips_fifo) [function.fopen]:
> failed to open stream: Permission denied in
> /var/www/opensips-cp/web/common/mi_comm.php  on line 147
>
> -Monit = Process - opensips
> 	   Status - Execution Failed
>
> -SIP Trace = Warning: fopen(/tmp/opensips_fifo) [function.fopen]: failed to
> open stream: Permission denied in
> /var/www/opensips-cp/web/common/mi_comm.php  on line 147
> 		Array ( [0] => sorry -- cannot open write fifo )
>
> -Statics Monitor = Warning: fopen(/tmp/opensips_fifo) [function.fopen]:
> failed to open stream: Permission denied in
> /var/www/opensips-cp/web/common/mi_comm.php  on line 147
> 			sorry -- cannot open write fifo
>
>   

-- 
Bogdan-Andrei Iancu
www.voice-system.ro




More information about the Users mailing list