# 2.0 & OpenShift

**URL:** <https://community.dreamfactory.com/t/2-0-openshift/1710>\
**Category:** GitHub Installers\
**Created:** [November 3, 2015, 2:10pm UTC](https://community.dreamfactory.com/t/2-0-openshift/1710 "2015-11-03T14:10:30Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![skipatrolmobile](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/skipatrolmobile/32/125_2.png) [@skipatrolmobile](https://community.dreamfactory.com/u/skipatrolmobile)\
**Post date:** [November 3, 2015, 2:10pm UTC](https://community.dreamfactory.com/t/2-0-openshift/1710/1 "2015-11-03T14:10:30Z")

</div>

The OpenShift cartridge is last updated five months ago:

> **[dreamfactorysoftware/openshift-dreamfactory-cartridge](https://github.com/dreamfactorysoftware/openshift-dreamfactory-cartridge)**
>
> OpenShift cartridge for DreamFactory. Contribute to dreamfactorysoftware/openshift-dreamfactory-cartridge development by creating an account on GitHub.

Any idea when we can get a new 2.0 OpenShift cartridge for installation on that PaaS?

Thanks!

---

<div class="post-metadata">

**Author:** ![jeffreystables](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/jeffreystables/32/173_2.png) [@jeffreystables](https://community.dreamfactory.com/u/jeffreystables)\
**Post date:** [November 3, 2015, 2:23pm UTC](https://community.dreamfactory.com/t/2-0-openshift/1710/2 "2015-11-03T14:23:23Z")

</div>

[Last update](https://community.dreamfactory.com/t/update-existing-dreamfactory-1-9-4-to-2-0/1356/15?u=jeffreystables) was that we don’t have an OpenShift 2.0 update assigned to an engineer yet. I will check with the guys and see what they say.

---

<div class="post-metadata">

**Author:** ![skipatrolmobile](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/skipatrolmobile/32/125_2.png) [@skipatrolmobile](https://community.dreamfactory.com/u/skipatrolmobile)\
**Post date:** [November 3, 2015, 2:56pm UTC](https://community.dreamfactory.com/t/2-0-openshift/1710/3 "2015-11-03T14:56:47Z")

</div>

Many thanks. OpenShift has been reliable and highly available for me.

---

<div class="post-metadata">

**Author:** ![benbusse](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/benbusse/32/4_2.png) [@benbusse](https://community.dreamfactory.com/u/benbusse)\
**Post date:** [November 4, 2015, 4:09am UTC](https://community.dreamfactory.com/t/2-0-openshift/1710/4 "2015-11-04T04:09:42Z")

</div>

Hey Gary, we’re working on an OpenShift cartridge for DreamFactory 2.0. I expect it to be a few weeks away. Stay tuned.

---

<div class="post-metadata">

**Author:** ![skipatrolmobile](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/skipatrolmobile/32/125_2.png) [@skipatrolmobile](https://community.dreamfactory.com/u/skipatrolmobile)\
**Post date:** [November 4, 2015, 5:09am UTC](https://community.dreamfactory.com/t/2-0-openshift/1710/5 "2015-11-04T05:09:41Z")

</div>

That’s great Ben. Thanks!

---

<div class="post-metadata">

**Author:** ![allensandiego](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@allensandiego](https://community.dreamfactory.com/u/allensandiego)\
**Post date:** [November 26, 2015, 10:24pm UTC](https://community.dreamfactory.com/t/2-0-openshift/1710/6 "2015-11-26T22:24:29Z")

</div>

Hi Ben,

WIll it be scalable and allow us to use external database (ie. Amazon RDS) for users, roles etc…?

Thanks,  
Allen

---

<div class="post-metadata">

**Author:** ![benbusse](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/benbusse/32/4_2.png) [@benbusse](https://community.dreamfactory.com/u/benbusse)\
**Post date:** [November 29, 2015, 11:50pm UTC](https://community.dreamfactory.com/t/2-0-openshift/1710/7 "2015-11-29T23:50:55Z")

</div>

Yes, here’s a paper on scalability that should be helpful [https://www.dreamfactory.com/resources/whitepapers/scalability-guide/](https://www.dreamfactory.com/resources/whitepapers/scalability-guide/).

You can use an external database for user and roles.

* * *

Connecting to another Database Server after initial setup

To connect to a different Database Server after initial setup…

Edit the .env file at the installation root and change the following configuration.

DB\_DRIVER=mysql ## Supported drivers are sqlite (default), mysql, pgsql  
DB\_HOST=localhost  
DB\_DATABASE=dreamfactory  
DB\_USERNAME=username  
DB\_PASSWORD=secret  
DB\_PORT=3306  
Run following command to clear system cache.

php artisan cache:clear  
Run DreamFactory setup wizard.

php artisan dreamfactory:setup  
Make sure your web server can read/write from/to storage/ (sub directories) and bootstrap/cache/ directories.

Example:

sudo chown -R {www user}:{your user group} storage/ bootstrap/cache/  
sudo chmod -R 2775 storage/ bootstrap/cache/  
Configure your web server to serve the public/ directory and launch your instance from a browser.

Note: The default composer.json has the more common package additions listed. To see all available packages, see the composer.json-all-dist. Likewise to see the minimum required packages, see the composer.json-min-dist.

---

<div class="post-metadata">

**Author:** ![m\_menon](https://avatars.discourse-cdn.com/v4/letter/m/85f322/32.png) [@m\_menon](https://community.dreamfactory.com/u/m_menon)\
**Post date:** [December 5, 2015, 2:52am UTC](https://community.dreamfactory.com/t/2-0-openshift/1710/8 "2015-12-05T02:52:26Z")

</div>

hi,

Any news on release of Dreamfactory 2.0 cartridge for Openshift?

Thanks,  
M.M

---

<div class="post-metadata">

**Author:** ![benbusse](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/benbusse/32/4_2.png) [@benbusse](https://community.dreamfactory.com/u/benbusse)\
**Post date:** [December 6, 2015, 5:01pm UTC](https://community.dreamfactory.com/t/2-0-openshift/1710/9 "2015-12-06T17:01:37Z")

</div>

We’re working on it. The challenge is that Openshift doesn’t support PHP 5.5. We’re looking at this repo to help [https://github.com/boekkooi/openshift-cartridge-php](https://github.com/boekkooi/openshift-cartridge-php). If all goes well, we expect a few weeks to have it ready.

---

<div class="post-metadata">

**Author:** ![skipatrolmobile](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/skipatrolmobile/32/125_2.png) [@skipatrolmobile](https://community.dreamfactory.com/u/skipatrolmobile)\
**Post date:** [December 7, 2015, 12:50am UTC](https://community.dreamfactory.com/t/2-0-openshift/1710/10 "2015-12-07T00:50:23Z")

</div>

Awesome. Looking forward to it.

---

<div class="post-metadata">

**Author:** ![m\_menon](https://avatars.discourse-cdn.com/v4/letter/m/85f322/32.png) [@m\_menon](https://community.dreamfactory.com/u/m_menon)\
**Post date:** [December 22, 2015, 5:02pm UTC](https://community.dreamfactory.com/t/2-0-openshift/1710/11 "2015-12-22T17:02:01Z")

</div>

hi Ben,

Thanks. Any update on release date for Openshift Dreamfactory Cartridge? Regards - M&M

---

<div class="post-metadata">

**Author:** ![benbusse](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/benbusse/32/4_2.png) [@benbusse](https://community.dreamfactory.com/u/benbusse)\
**Post date:** [December 23, 2015, 3:39am UTC](https://community.dreamfactory.com/t/2-0-openshift/1710/12 "2015-12-23T03:39:46Z")

</div>

Hit some snags, but we have a person working on it. Hoping for a DreamFactory 2.0 cartridge in early January.

---

<div class="post-metadata">

**Author:** ![m\_menon](https://avatars.discourse-cdn.com/v4/letter/m/85f322/32.png) [@m\_menon](https://community.dreamfactory.com/u/m_menon)\
**Post date:** [December 23, 2015, 5:48am UTC](https://community.dreamfactory.com/t/2-0-openshift/1710/13 "2015-12-23T05:48:42Z")

</div>

cool, thanks 😌

---

<div class="post-metadata">

**Author:** ![benbusse](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/benbusse/32/4_2.png) [@benbusse](https://community.dreamfactory.com/u/benbusse)\
**Post date:** [January 4, 2016, 4:38pm UTC](https://community.dreamfactory.com/t/2-0-openshift/1710/14 "2016-01-04T16:38:47Z")

</div>

Hey all, the DreamFactory 2.0 cartridge for OpenShift is ready. Get it here [https://github.com/dreamfactorysoftware/openshift-dreamfactory-cartridge](https://github.com/dreamfactorysoftware/openshift-dreamfactory-cartridge). If you have any questions or problems, post on this thread.

---

<div class="post-metadata">

**Author:** ![Miguel\_DoctorYuste](https://avatars.discourse-cdn.com/v4/letter/m/82dd89/32.png) [@Miguel\_DoctorYuste](https://community.dreamfactory.com/u/Miguel_DoctorYuste)\
**Post date:** [May 4, 2016, 5:14pm UTC](https://community.dreamfactory.com/t/2-0-openshift/1710/16 "2016-05-04T17:14:20Z")

</div>

Hi Ben,

I am pretty new on openshift and dreamfactory. I have created my free openshift account (I can manage up 3 small gears with it… which I assume it’s enough for hosting dreamfactory) and I have tried to install the oficial cartridge of dreamfactory. After installing the rhc client tools I typed:

rhc create-app dreamfactory [http://cartreflect-claytondev.rhcloud.com/github/dreamfactorysoftware/openshift-dreamfactory-cartridge](http://cartreflect-claytondev.rhcloud.com/github/dreamfactorysoftware/openshift-dreamfactory-cartridge)

In principle everything worked, but when I tried to access the url: [http://dreamfactory-uborrow.rhcloud.com/](http://dreamfactory-uborrow.rhcloud.com/)  
I get a white page in Firefox and a 500 error in chrome… any ideas about what I did wrong?  
Thanks in advance

---

<div class="post-metadata">

**Author:** ![toddappleton](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/toddappleton/32/159_2.png) [@toddappleton](https://community.dreamfactory.com/u/toddappleton)\
**Post date:** [May 6, 2016, 2:13pm UTC](https://community.dreamfactory.com/t/2-0-openshift/1710/17 "2016-05-06T14:13:52Z")

</div>

There was a problem with the installer. It should work now.

---

<div class="post-metadata">

**Author:** ![Miguel\_DoctorYuste](https://avatars.discourse-cdn.com/v4/letter/m/82dd89/32.png) [@Miguel\_DoctorYuste](https://community.dreamfactory.com/u/Miguel_DoctorYuste)\
**Post date:** [May 9, 2016, 9:09am UTC](https://community.dreamfactory.com/t/2-0-openshift/1710/18 "2016-05-09T09:09:45Z")

</div>

Great!! It’s working now! Thanks

---

<div class="post-metadata">

**Author:** ![ssparasuram](https://avatars.discourse-cdn.com/v4/letter/s/8e7dd6/32.png) [@ssparasuram](https://community.dreamfactory.com/u/ssparasuram)\
**Post date:** [December 5, 2016, 7:47am UTC](https://community.dreamfactory.com/t/2-0-openshift/1710/19 "2016-12-05T07:47:03Z")

</div>

Hi,

I am new to Dream Factory and Open shift. Currently I am facing the issue like, not able to see the welcome page after register an admin user.

I have used same cartridge for hosting the dream factory in open shift. I was doing this for past three days.

In PHP error log,

[05-Dec-2016 04:51:37 UTC] PHP Warning: Uncaught exception ‘ErrorException’ with message ‘DreamFactory\Core\Components\RestHandler and DreamFactory\Core\Components\DbRequestCriteria define the same property ($request) in the composition of DreamFactory\Core\Resources\System\BaseSystemResource. This might be incompatible, to improve maintainability consider using accessor methods in traits instead. Class was composed’ in /var/lib/openshift/5844ef9489f5cf571d0000ab/app-root/runtime/repo/df/vendor/dreamfactory/df-core/src/Resources/System/BaseSystemResource.php:783  
Stack trace:  
#0 /var/lib/openshift/5844ef9489f5cf571d0000ab/app-root/runtime/repo/df/vendor/dreamfactory/df-core/src/Resources/System/BaseSystemResource.php(783): Illuminate\Foundation\Bootstrap\HandleExceptions-\>handleError(2048, ‘DreamFactory\Co…’, ‘/var/lib/opensh…’, 783, Array)  
#1 /var/lib/openshift/5844ef9489f5cf571d0000ab/app-root/runtime/repo/df/vendor/composer/ClassLoader.php(409): include(’/var/lib/opensh…’)  
#2 /var/lib/openshift/5844ef9489f5cf571d0000ab/app-root/runtime/rep in /var/lib/openshift/5844ef9489f5cf571d0000ab/app-root/runtime/repo/df/vendor/dreamfactory/df-core/src/Resources/System/BaseSystemResource.php on line 783  
[05-Dec-2016 04:51:37 UTC] PHP Fatal error: Undefined class constant ‘DreamFactory\Core\User\Resources\Custom::RESOURCE\_NAME’ in /var/lib/openshift/5844ef9489f5cf571d0000ab/app-root/runtime/repo/df/vendor/dreamfactory/df-user/src/Services/User.php on line 127

Kindly help.
