This modified DIY cartridge provides newer PHP and freer Apache configuration, which can be found in conf/httpd.conf
folder.
- Open https://openshift.redhat.com/app/console/application_type/cart!diy-0.1
- Fill Source Code text field:
https://github.com/laobubu/openshift-php5.5-cgi-apache.git
- Click Create Application and wait
- After creating the app, visit your app (e.g. https://foo-bar.rhcloud.com/ )
- Click the last link.
- Wait for ~1 hour and then PHP will be ready.
- Git clone your OpenShift App and modify.
- Push the content of this repo to your OpenShift. (Read Tips if you are using Windows)
- Access your app's URL like https://foo-bar.rhcloud.com
- Click the Link.
- Wait (Yes! It's slow!!!) , or do anything you want.
- Push the content of this repo to your OpenShift. (Read Tips if you are using Windows)
- Access SSH and Run
chmod +x ${OPENSHIFT_REPO_DIR}/misc/make.sh && nohup ${OPENSHIFT_REPO_DIR}/misc/make.sh > /tmp/makephp&
- Give your family/friend a ring or watch a movie.
- Do what you want.
- You can also choose other version of PHP by editing
misc/make.sh
before making. - Once you modified
conf/httpd.conf
, you must reload your app, or run${OPENSHIFT_REPO_DIR}/.openshift/action_hooks/reload
, to make it works. - If you are using Windows, the permission information might be lost. To avoid the problem, you can try this in Git Bash:
git clone https://github.com/laobubu/openshift-php5.5-cgi-apache.git --depth 1
cd openshift-php5.5-cgi-apache
git remote set-url origin ssh://[email protected]/xxxxxxx #replace this
git push origin -f
#since then, the repo is yours and do whatever you want.
- The OpenShift
diy
cartridge documentation can be found at: http://openshift.github.io/documentation/oo_cartridge_guide.html#diy