Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 787 Bytes

README.md

File metadata and controls

22 lines (17 loc) · 787 Bytes

OpenShift Nginx PHP-FPM Cartridge

This cartridge serves static content using nginx web server, passing requests to .php files down to php-fpm.

Place your static files inside www/static dir, commit and push. Place your php files inside php/ dir, commit and push.

Usage

$ rhc app create phpfpm https://reflector-getupcloud.getup.io/reflect?github=getupcloud/openshift-nginx-php-fpm
$ cd phpfpm
$ echo '<?php phpinfo(); ?>' > php/info.php
$ echo 'Hello World' >> www/static/hello.html
$ git add .
$ git commit -m 'Testing'
$ git push

User-defined configuration

Place your nginx .conf files inside config/nginx.d/. It will be include()ed from "http" scope. Place your php-fpm .conf files inside config/php-fpm.d/. It will be include()ed from main php-fpm.conf file.