Cannot access PHP/C++ shared memory over the web -


i sharing memory between c++ , php

at php end have:

   $inputshm_id = shmop_open($shid, "w", 0777, 1024); 

where shid identifier created ftok.

this works fine when run php script logged in root on server when try run remotely on web get:

warning: shmop_open() [function.shmop-open]: unable attach or create shared memory segment in /var/www/html/prof/phpsm.php on line 6

...where line 6 line i've shown above.

since runs fine when run server root i'm assuming somewhere preventing web user requests connecting shared memory.

does know causing this?

thanks

the issue selinux blocking shm access (you can verify running setenforce 0, testing, , running setenforce 1 after), don't know way of solving other modifying policy or switching mmap.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -