I would drop your code inside the basic php-5.3
application skeleton, and go from there.
You can add mysql
to any application by listing it as a dependency during your rhc app create
step, or by typing rhc cartridge add mysql
from within your local project repo folder.
Once you get everything working, I would consider publishing the resulting repo to GitHub. This should allow others to spin up your openshift-compatible copy of Kohana by running:
rhc app create kohana php-5.3 mysql --from-code=http://github.com/YOUR_ACCOUNT/YOUR_PROJECT_NAME.git
(with YOUR_ACCOUNT
and YOUR_PROJECT_NAME
substituted into the above command)