[OpenSIPS-Users] OpenSIPS-CP: mi_fifo and "cannot open write fifo"
bogdan at voice-system.ro
Fri Jun 4 17:33:05 CEST 2010
What user is the apache server running as ? as simple test, you can "su"
as that user and try to open for write the fifo file.
On a first look, everything seams to be ok....
Joe Micciche wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> Running OpenSIPS 1.6.2 with OpenSIPS-CP 4.0 (downloaded Monday) on RHEL
> 5.5, Apache/2.2.3.
> In CP, I cannot apply any changes to server, each time it errors out
> with "sorry - cannot open write fifo".
> I am running opensips as root. modules/mi_fifo.so is loading properly
> when opensips is started.
> ls -l /tmp:
> prw-rw-rw- 1 root root 0 Jun 4 07:58 opensips_fifo
> boxes.global.inc.php has:
> // mi host:port pair || fifo_file
> /etc/opensips/opensips.cfg has:
> # ----- mi_fifo params -----
> modparam("mi_fifo", "fifo_name", "/tmp/opensips_fifo")
> modparam("mi_fifo", "fifo_mode", 0666)
> I've also tried various iterations of users and groups for mi_fifo, all
> with the same results. This includes setting owner:group to apache. I
> also tried to start it with 0777, same result.
> Sample from httpd/error_log:
> [Fri Jun 04 07:46:37 2010] [error] [client 10.11.226.42] PHP Warning:
> fopen(/tmp/opensips_fifo) [<a href='function.fopen'>function.fopen</a>]:
> failed to open stream: Permission denied in
> /opt/opensips_cp4/web/common/mi_comm.php on line 91, referer:
> I've been googling and reading for a day and a half now and can't
> resolve this. Anyone have other suggestions on where to look?
> - --
> Joe Micciche jmiccich at redhat.com
> Red Hat, Inc. http://www.redhat.com
> Senior Communications Engineer X(81) 44554
> +1.919.754.4554 Key: 65F90FE1
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.14 (GNU/Linux)
> Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
> -----END PGP SIGNATURE-----
> Users mailing list
> Users at lists.opensips.org
More information about the Users