heroku-buildpack-php icon indicating copy to clipboard operation
heroku-buildpack-php copied to clipboard

Add option to use Apache HTTPD?

Open CHH opened this issue 11 years ago • 2 comments

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"
      }
    }
  }
}

CHH avatar Aug 27 '13 08:08 CHH

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...

josegonzalez avatar Sep 04 '13 08:09 josegonzalez

+1 for Apache support

Thank you for this great library

nnnnathann avatar Aug 15 '14 22:08 nnnnathann