I'm trying to explore openshift as a possible service to use for a project or two. I require PHP 5.4 due to the fact that a dependency I'm using makes use of PHP Traits. Obviously the default on offer on Openshift Online is PHP 5.3. I have looked around & learned about Cartridges but for the life of me can't get them to work.
I found this solution which is recommended all over the place : Sgoettschkes/openshift-php54, but following the instructions; I keep getting a timeout error informing me that my session has been ended due to it taking too long. (despite the fact that the readme warns one that the process may take up to an hour...)
I can't tell for sure but that particular solution appears to be a V1 cartridge? I've tried to check out V2 cartridges but they keep throwing errors when I try to use them. I'm not sure what I'm doing wrong. smerrill/openshift-php-54
error examples: " --2013-08-22 12:07:38-- http://phpbuild-phase2technology.rhcloud.com/php54.tgz Resolving phpbuild-phase2technology.rhcloud.com... failed: Name or service not known. wget: unable to resolve host address `phpbuild-phase2technology.rhcloud.com' "
and
" Invalid cartridge, error downloading from url 'https://github.com/smerrill/openshift-php-54/archive/master.zip' "
(I've tried this using both the rhc application & the web interface)
I have seen that one needs to make use of the cartridge reflector, but that hasn't helped. Is there something I'm not doing? info here:
Unfortunately every resource I read seems to assume that the reader or viewer knows a lot about the subject beforehand, which I don't. Even watching a video where the speaker skipped concepts because he assumed one already knew this stuff. Video link. I feel like I'd have been set up faster if I had gone and gotten myself a VPS, but the idea is to have a set up that requires less management.
My desire would be to get up & running PHP 5.4, Apache & MySql for a start. I won't even throw in the extra php libraries just because I don't want to get confused.
Can anyone help me get things running? As layman as possible would help.
Hi I have forked the repo to make it work for me. Couple of issues i faced was
I have also submitted a pull request here, meanwhile working code can be accessible from my forked repo.
Feel free to submit improvements. happy coding :)