GithubHelp home page GithubHelp logo

pro2s / openshift-cartridge-nginx-php7 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pinodex/openshift-cartridge-nginx-php7

0.0 2.0 0.0 32.21 MB

OpenShift Cartridge for Nginx and PHP 7

License: Other

Shell 11.90% HTML 84.54% PHP 2.96% Python 0.60%

openshift-cartridge-nginx-php7's Introduction

OpenShift Nginx PHP 7 Cartridge

Nginx 1.9 with PHP 7.0 on OpenShift.

  • Nginx: 1.11.6
  • PHP: 7.0.13
  • Composer: 1.2.4

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.

  • version - Get the version of the cartridge and the binaries.
  • service - A psuedo /usr/sbin/service to start and stop services. Example:
    • service php-fpm stop
    • service nginx stop
    • service nginx configtest
  • build_config - Parses config templates to actual config file. Can be used after editing *.erb config files.
  • update - Allows automatic update of the cartridge binaries.
    • update check - Check for updates
    • update install - Install updates
    • update rollback - Rollback to previous version after update`

openshift-cartridge-nginx-php7's People

Contributors

pinodex avatar

Watchers

James Cloos avatar s.protasov avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.