Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

wonderyan's avatar

php-fpm or public folder ?

I find confusing that Laracast documentation on Deployement (sorry no link permitted) explains with Ngix (exit apache :/ ) server configuration using PHP-fpm pointing to index . php while every other tutorials I can find points DocumentRoot to the public folder and that's it. No use of PHP-fpm..

Does it make a difference not to use PHP-fpm ? (performance ??) Is it impossible with apache ??!?

Thanks for any insights

0 likes
1 reply
wonderyan's avatar

Ok I understood :

There is a .htaccess in public folder that redirects everything to index . php

And so of course php-fpm is required in apache virtualhost config

I understand also why Ngix is primarily described in the documentation; to explain the redirection that is already made for apache.

But it would be nice to explain the trick for apache anyway (which is used by 33% of all the www!...) ?

Please or to participate in this conversation.