Skip to content

Commit

Permalink
Add /tmp to open_basedir.
Browse files Browse the repository at this point in the history
/tmp is a location that many PHP scripts want access to, especially for
build purposes.
  • Loading branch information
nubs committed Jul 24, 2014
1 parent 15f9fd1 commit 0f3cbb3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ purpose of building PHP composer packages. It provides several key features:
* Access to the build location will be in the volume located at `/code`. This
directory will be the default working directory.
* PHP limited access using `open_basedir`. By default, access is only granted
to `/code` and `$COMPOSER_HOME`. For general builds this should likely be
sufficient, but should you need to override the settings you can do so by
updating `/etc/php/conf.d/basedir.ini`.
to `/code`, `/tmp`, and `$COMPOSER_HOME`. For general builds this should
likely be sufficient, but should you need to override the settings you can do
so by updating `/etc/php/conf.d/basedir.ini`.
* Composer bin directories are automatically included in `PATH`. Both a
relative `vendor/bin` directory, and the global `$COMPOSER_HOME/vendor/bin`
directory are included in the `PATH`.
Expand Down
2 changes: 1 addition & 1 deletion basedir.ini
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[PHP]
open_basedir = /code:/home/build/.composer
open_basedir = /code:/home/build/.composer:/tmp

0 comments on commit 0f3cbb3

Please # to comment.