heroku-buildpack-php
heroku-buildpack-php copied to clipboard
Add option to use Apache HTTPD?
We could expand the compatibility with apps by a large margin if there was an option to use Apache instead of NGINX.
To satisfy the efficiency goals I have and to ease maintenance, I would use Apache 2.4 with the "Event" multiprocessing module and connect to PHP-FPM via FastCGI. This should give nearly the same efficiency as the NGINX setup, but with better out of the box compatibility with existing PHP apps and frameworks.
I could also imagine making the buildpack Apache only, but this would be a major break at this point.
Enabling Apache could look like this in composer.json
:
{
"extra": {
"heroku": {
"engines": {
"apache": "default"
}
}
}
}
Why would this increase compatibility with apps? Just curious, as my CakePHP application works just fine with this buildpack.
If you mean there is an issue with rewrites, then maybe thats correct, but most frameworks support nginx usage out of the box...
+1 for Apache support
Thank you for this great library