Eric D. Schabell: OpenShift Express - how to get started with Symfony PHP framework

Friday, October 7, 2011

OpenShift Express - how to get started with Symfony PHP framework

I pulled together an installation howto for Symfony PHP Framework on OpenShift Express, you can follow the Readme file to push this into your very own OpenShift Express instance!




# Create an account at http://openshift.redhat.com/
#
# Create a php-5.3 application.
#
$ rhc-create-app -a symfonyphp -t php-5.3

# Add this upstream openshift-symfony repo
#
$ cd symfonyphp
$ git remote add upstream -m master git://github.com/eschabell/openshift-symfony.git
$ git pull -s recursive -X theirs upstream master

# Then push the repo upstream
#
git push

That's it, you can now checkout your application at http://sympfonyphp-$your_domain.rhcloud.com, isn't that easy!

NOTES:

GIT_ROOT/.openshift/action_hooks/build: This has a few lines to ensure that the cache dir exists and is writable for the web server.

Security: Nothing has been done to secure this installation.