Skip to content

rexdf/openshift-nginx-php55

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

openshift-nginx-php55

This is a sample repository to get a custom PHP version 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:

  • Nginx 1.5.1
  • Node 0.6.20
  • PHP 5.5.0

It configures apache to have the www 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 Nginx or PHP. Have a look at the shell script to see with which options both were compiled the first time.

Usage

To get your custom PHP version working at OpenShift, you have to do the following:

  1. Create a new Openshift "Do-It-Yourself" application
  2. Clone this repository Optionally you might want to change to a different branch.
  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/make.sh > $OPENSHIFT_DIY_LOG_DIR/make.log
  7. Wait (This may take at least an hour) If you want to see "what's going on, you may tail the log file and watch some shell movie ;) nohup $OPENSHIFT_REPO_DIR/misc/make.sh > $OPENSHIFT_DIY_LOG_DIR/make.log & tail -f $OPENSHIFT_DIY_LOG_DIR/make.log
  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)

About

Openshift nginx php55

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published