dokku-buildpack-apt-apache-php

by micwallace

GitHub Readme.md

Apache+PHP build pack

This is a build pack bundling PHP and Apache for Heroku apps. It tests for the presence of an index.html or index.php file and then serves out of root with Apache.

Use

For new apps:

$ heroku create --stack cedar --buildpack https://github.com/stevenosloan/heroku-buildpack-ruby.git

For existing apps:

$ heroku config:add BUILDPACK_URL=https://github.com/stevenosloan/heroku-buildpack-apache.git

Basic Authentication

in .htaccess add:

AuthUserFile /app/.htpasswd
AuthType Basic
AuthName "Restricted Access"
Require valid-user

generate and add an .htpasswd to root

Configuration

The config files are bundled with the build pack itself:

  • conf/httpd.conf
  • conf/php.ini

Meta

Big thanks to the guys behind the php buildpack

Released under the MIT License