Skip to content

cgvarela/openshift-nginx-php-fpm

 
 

Repository files navigation

OpenShift Nginx PHP-FPM Cartridge

Nginx updated to 1.6.2 with PHP 5.3/5.4/5.5.

Forked from getupcloud/openshift-nginx-php-fpm.

Example Usage

Command line

Install the OpenShift RHC Client Tools first if you haven't installed it yet.

$ rhc app create myapplicationname https://reflector-getupcloud.getup.io/github/pinodex/openshift-nginx-php-fpm
$ cd myapplicationname
$ echo '<?php phpinfo(); ?>' > www/info.php
$ git add .
$ git commit -m 'Testing'
$ git push

Using OpenShift Console

Use this for your cartridge definition URL https://reflector-getupcloud.getup.io/github/pinodex/openshift-nginx-php-fpm

PHP Version

PHP 5.4 will be installed if the "v" parameter is not specified. To install other PHP version, just pass the version to the "v" parameter.

$ rhc app create myapplicationname https://reflector-getupcloud.getup.io/github/pinodex/openshift-nginx-php-fpm?v=5.3

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 with Nginx and PHP-FPM

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 84.1%
  • Shell 7.3%
  • PHP 5.3%
  • Perl 3.3%