GithubHelp home page GithubHelp logo

openshift-php54's Introduction

Sgoettschkes/openshift-php54

This is a sample repository to get php 5.4 running on openshift. It's a work in progress!

More information about this project: tbd

More information about openshift: https://openshift.redhat.com/

What's inside

The misc/install.sh script installs:

  • Apache 2.4.3
  • PHP 5.4.7

It configures apache to have the diy folder as the document root. It also uses the php.ini-development from the php archive and moves it into the correct folder.

The script does not remove the source files, so you can easily recompile Apache or PHP. Have a look at the shell script to see with which options both were compiled the first time.

The misc/httpconf.py script takes the httpd.conf from misc/templates and replaces some variables with the actual folder pathes (because these depend on the application, they cannot be hardcoded). It then copies the file into the apache conf folder.

Usage

To get PHP 5.4 working at OpenShift, you have to do the following:

  1. Create a new Openshift "Do-It-Yourself" application
  2. Clone this repository
  3. Add a new remote "openshift" (You can find the URL to your git repository on the Openshift application page)
  4. Run git push --force "openshift" master:master
  5. SSH into your gear
  6. nohup $OPENSHIFT_REPO_DIR/misc/install.sh > $OPENSHIFT_DIY_LOG_DIR/install.log
  7. Wait (This may take at least an hour)
  8. Open http://appname-namespace.rhcloud.com/phpinfo.php to verify running apache
  9. You can remove the misc content

Thanks

Thanks to the following people (ordered by name):

Todos

This is stuff which needs to be done right now. Feel free to do a pull request!

  • Add config description
  • (Add link to blog with more in-depth explanation)

openshift-php54's People

Contributors

rodrigoeg avatar sgoettschkes avatar

Watchers

 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.