Is there any good tutos there?
Currently I'm using apache2/mod_php which is not efficient.
Shouldn't really matter which distribution you're running but here is the setup I'm using for my CentOS server but should be able to translate easy enough for whichever you're using. You'll want to use the Worker MPM for Apache2 vs the Prefork MPM for the best results.
Assumption is that you've already installed mod_fastcgi either by distribution packaging or from source code. Once you have mod_fastcgi installed then you want to ensure it's configured to be loaded via Apache2, I did so in
Next I created another file as
This then means in your
Of course update the PHP_CGI path if it's different for your system. You can also change the PHP_FCGI_CHILDREN value, I've seen some recommend setting it to 4 but I've left it at 0 and had good performance.
At this point you should be able to give Apache2 a restart to re-read the configurations and if you setup a simple phpinfo() page to query you should see it saying the
Here's a tutorial for moving from mod_php to mod_fcgid on Ubuntu: