This is a simple build script for setting up httpd server and php 5.6 (with yaf and phalcon php framework extensions and mongo php driver as modules) on Red Hat's OpenShift platform.
- Let's pick up a name for our new app;
myapp
! - Create a new application:
rhc app create myapp diy
. - Go to the app's directory:
cd myapp
. - Get a build script from this repo:
git pull -s recursive -X theirs https://github.com/mrinx/openshift-httpd-php.git
. - Push your app to the clouds:
git push
. - Tadaa! Wait, we're not done yet, take a coffee, watch your favorite TV show for a bit, and check the building process in an hour or so.
- Yop, something got broken, let's start the build process again:
rhc app deploy master
. - Tadaa! Wait again, get a coffee, watch some TV show; if the process doesn't finish successfully, repeat the previous step.
- Tadaa! Tadaa! Check your application in the web browser, information about your php configuration and set up should appear.
I got inspired by similar project by boekkooi.