News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Pavel Shevaev's Blog:
Make php-fpm execute arbitrary PHP scripts via socket
October 26, 2011 @ 11:19:23

Pavel Shevaev has a quick new post to his blog showing how to get PHP-FPM to execute PHP scripts via a socket request.

We are using APC cache very heavily in our projects and during project deployment the cache must be flushed and warmed up. A common solution to warmup the APC cache is to fetch some special page via HTTP which does the job. The problem with this approach is that it's not reliable enough when PHP is served via several fastcgi back-ends.

To solve the problem, he uses a PHP-FPM module to work with the FastCGI socket and execute any file (as permissions allow, of course). In his case, he uses it to "warm up" his APC cache for the user. A code snippet is provided as an example.

0 comments voice your opinion now!
phpfpm execute socket fastcgi module tutorial


blog comments powered by Disqus

Similar Posts

Gentoo Blog: Reminder - You *Can* Run PHP4 And PHP5 On The Same Box At The Same Time

ServerGrove Blog: Symfony2 components overview: EventDispatcher

Fawad Hassan's Blog: Load More Using KnockoutJS, PHP/CodeIgniter (Part 1)

Zend Developer Zone: AJAX Chat Tutorial Part 6 : Updating the User List

NETTUTS.com: Simple Techniques to Lock Down your Website


Community Events





Don't see your event here?
Let us know!


laravel opinion version community update library introduction composer symfony release package language podcast install tool security series framework interview voicesoftheelephpant

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework