Skip to content

getupcloud/openshift-nginx-php-fpm

Repository files navigation

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.

About

Openshift cartridge for nginx static server with php-fpm support

Resources

License

Stars

Watchers

Forks

Packages

No packages published