Inter-process communication is estimated to be the company's inspection of fresh graduates (embedded industry), of course, many companies test is the algorithm.
I can think of it in my head without checking the information.
[1] pipeline, (famous, nameless)
[2] Parent-child process
[3] System V (Message Queuing, shared memory, semaphore)
[4] Socket (local, network)
[5] signal
Kernel and application
[1] shared memory
[2] /proc/file system
In this case, the communication between PHP and the Linux process is implemented using Message Queuing.
But here's the problem. LIGHTTPD permissions are lighttpd This user, the Linux process permissions are root, if establishing a message queue in the/tmp directory will cause LIGHTTPD to send a message failed.
WORKAROUND: Set up the message queue under the directory of the user rights of LIGHTTPD, the permission is 0666
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.