Latest offical v8.1 PHP-FPM container configured with basic extensions and production settings. Includes ionCube Loader php extension as required for WHMCS.
- pdo_mysql
- mysqli
- calendar
- intl
- ionCube Loader
- date.timezone = Etc/UTC
- upload_max_filesize = 25M
- post_max_size = 25M
See example directory for sample config file showing how to use this container with nginx.
If using this container for WHMCS I suggest also adding a cron job to your host machine like the following...
/etc/cron.d/whmcs
*/5 * * * * root /usr/bin/docker exec whmcs_whmcs_1 /usr/local/bin/php -q /var/www/html/crons/cron.php
whmcs:
image: sonoransoftware/whmcs
volumes:
# Website files
- ./www:/www
ports:
- "9000:9000"
You will need to supply the WHMCS files and replace the index.php file in the www directory in the example directory. Once you do this, connecting to your server on port 80 should give you WHMCS. If you do not supply the files downloaded from the WHMCS website then you should see the PHP test page.