is Magento thread-safe? is Magento thread-safe? php php

is Magento thread-safe?


PHP5 is thread-safe, but PHP extensions aren't all thread-safe. So it's considered harmfull to run a PHP application on a worker-mpm. And Magento is a PHP application like any other, chances are that you are using some PHP extensions somewhere (GD, Xml, etc) and that you can't test it for thread stability (really hard to test).

But what you can do is use apache as worker (really a lot more HTTP request handled, very useful for all static files), and push PHP out of Apache (so with no mod_php).

For that you will have to use PHP with fcgid or php-fpm, that is modern version of cgi to say it in a few words.