Skip to content

FAQ ( have problem? read this first! )

laobubu edited this page Jan 29, 2016 · 1 revision

Thanks for using this OpenShift cartridge. This quick-start repo make it easier to use newer PHP on OpenShift (the official PHP is up to 5.3.3). Before you submit an issue, read this wiki.

Wrong PHP version on SSH / scripts

Your custom version PHP is not in the system directories.

Use the full path to the executable php to run your own PHP build,

Or, if you don't want to use the looooong path, hack the PATH environment variable! For example, in bash, execute:

export PATH=${OPENSHIFT_HOMEDIR}/app-root/runtime/bin/:${PATH}

Then try php -v.

see: #3 #4

Building stops halfway

Sometimes OpenShift stops your app to save resource, which stops the building process.

You shall open your app website (e.g. https://foo-bar.rhcloud.com/ ) and keep your browser running. The JavaScript will keep the server awake.

The building script can continue the last unfinished building, but sometimes it might got failed. If it fails, clean the previous failed build by executing rm -rf ${OPENSHIFT_DIY_DIR}/php* via SSH.

My question is not found

Don't hesitate. Google it or submit your issue

Clone this wiki locally