pinodex / openshift-cartridge-nginx-php7

DISCONTINUED (see https://blog.openshift.com/migrate-to-v3-v2-eol/). OpenShift Cartridge for Nginx and PHP 7.
Other
55 stars 32 forks source link

OpenShift Nginx PHP 7 Cartridge

Nginx 1.9 with PHP 7.0 on OpenShift.

Installation

Web Console

Run+PHP+7+on+OpenShift

Alternatively, you can use this cartridge definition on application creation page.

Command Line

rhc app create appname http://cartreflect-claytondev.rhcloud.com/github/pinodex/openshift-cartridge-nginx-php7

Updates

You can update the binaries from the cartridge without reinstalling. To check for updates, SSH to your app and run this command:

update

Make sure to have your backup just in case some things went wrong.

Composer

This cartridge supports Composer right out of the box.

To enable composer install on deploy, uncomment this line from .openshift/action_hooks/deploy:

#cd $OPENSHIFT_REPO_DIR; composer install

Configuration

Nginx

Nginx will automatically include config/nginx.d/*.conf files. .conf.erb files will be parsed and included also.

PHP-FPM

PHP-FPM will automatically load config/php.d/*.ini files. .ini.erb files will be parsed and included also.

Website

The web root directory is www/. Make changes to your website there, then commit and push.

Scripts

This cartridge comes with different scripts for easy management of your app inside SSH.