# Preconfigure for mongodb before install

**URL:** <https://discourse.getcockpit.com/t/preconfigure-for-mongodb-before-install/344>\
**Category:** Support\
**Created:** [October 19, 2018, 7:41pm UTC](https://discourse.getcockpit.com/t/preconfigure-for-mongodb-before-install/344 "2018-10-19T19:41:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hellmaca](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/hellmaca/32/126_2.png) [@hellmaca](https://discourse.getcockpit.com/u/hellmaca)\
**Post date:** [October 19, 2018, 7:41pm UTC](https://discourse.getcockpit.com/t/preconfigure-for-mongodb-before-install/344/1 "2018-10-19T19:41:46Z")

</div>

I have setup Cockpit to work with mongodb locally. When I try to deploy the app I am unable to install with SQLite. Is there a way to get Cockpit set up to use mongodb before having to install or deploy it?

---

<div class="post-metadata">

**Author:** ![hellmaca](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/hellmaca/32/126_2.png) [@hellmaca](https://discourse.getcockpit.com/u/hellmaca)\
**Post date:** [October 22, 2018, 8:10pm UTC](https://discourse.getcockpit.com/t/preconfigure-for-mongodb-before-install/344/2 "2018-10-22T20:10:07Z")

</div>

I don’t know if this info will help anyone, but I will post it here just in case. My web app was deployed on cloud foundry. When I would go to cockpit/install it would tell me /data /cache /tmp & /uploads were not writable. I manually created them after logging into the server using cf ssh. I also created a blank index.html file in each directory. I created /config and config.yaml using vim, copying it exactly from my local instance. Magically, it worked. I now have it working in a dev environment! I realize my setup is very unique, but if anyone is having similar issues I hope this helps.
