Skip to content

Commit

Permalink
DVL-012 #107 Allow to load custom PHP modules
Browse files Browse the repository at this point in the history
  • Loading branch information
cytopia committed Aug 12, 2017
1 parent 817a942 commit d6bf969
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@
/cfg/php-fpm-7.2/*.ini
/cfg/hhvm-latest/*.ini

# Ignore custom PHP-FPM modules
/mod/php-fpm-5.4/*.so
/mod/php-fpm-5.5/*.so
/mod/php-fpm-5.6/*.so
/mod/php-fpm-7.0/*.so
/mod/php-fpm-7.1/*.so
/mod/php-fpm-7.2/*.so
/mod/hhvm-latest/*.so


######################################
# GENERIC
Expand Down
4 changes: 4 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,10 @@ services:
# to overwrite the default PHP configuration
- ${DEVILBOX_PATH}/cfg/${PHP_SERVER}:/etc/php-custom.d:ro

# Mount devilbox user-defined *.so files in order
# to load custom PHP modules
- ${DEVILBOX_PATH}/mod/${PHP_SERVER}:/usr/lib64/php/custom-modules:ro

# Mount custom mass virtual hosting
# (configured in /etc/${HTTPD_SERVER}/02-vhost-mass.conf)
- ${HOST_PATH_HTTPD_DATADIR}:/shared/httpd
Expand Down
3 changes: 3 additions & 0 deletions mod/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Devilbox user-defined PHP modules

Use this folders to add your custom PHP modules.
Empty file added mod/hhvm-latest/.keepme
Empty file.
Empty file added mod/php-fpm-5.4/.keepme
Empty file.
Empty file added mod/php-fpm-5.5/.keepme
Empty file.
Empty file added mod/php-fpm-5.6/.keepme
Empty file.
Empty file added mod/php-fpm-7.0/.keepme
Empty file.
Empty file added mod/php-fpm-7.1/.keepme
Empty file.
Empty file added mod/php-fpm-7.2/.keepme
Empty file.

0 comments on commit d6bf969

Please sign in to comment.