How to compile and install ========================== $ phpize5 $ ./configure $ make $ su # make install-modules How to test it ============== configure PHP: add /etc/php5/cli/conf.d/30-ancillary.ini with content: vvvvv ; configuration for php ancillary module ; priority=30 extension=ancillary.so ^^^^^ configure apache2: ----------------- In /etc/apache2/sites-enabled edit http default configuration: ProxyPass /php-ancillary/test001.php fd:///tmp/test001.sock keepalive=Off connectiontimeout=5 timeout=3 run test daemon with: ./test001.php and browse the web page: http:///php-ancillary/test001.php