Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial

Maciej Sitko
16,164 PointsHow can I host MongoDB + PHP based website the best way?
I would like to ask someone if there is a way to do that right. There are pages that offer database hosting like MongoHq or Mongolab, but when it comes to hosting the php/html content itself, it gets a bit hard to find ,since most shared hosting like goDaddy doesnt allow that.
What is the best way to do it, and is there an option to do it all in one place(database with the rest of app and website) if so, how?
If you could take money factor into consideration!
1 Answer

Joseph Turnquist
14,516 PointsI use Webfaction hosting for nearly all of my projects (I work mostly in Drupal and Flask). They do support MongoDB (32-bit, up to 2.5gb storage, but I'd contact their support to see if 64-bit MongoDB can also be supported), as well as several versions of PHP and of course HTML. They have great documentation (for example, this guide on installing MongoDB) and support.
I'm not sure what you mean by the database / app / website being in the same place, but you can access your webapp's code once it's created through SSH (for which I recommend using PuTTY) and the database is available through PHPMyAdmin (on the Webfaction dashboard in your account).
The only thing you need to do outside of Webfaction is to purchase a domain, for which I recommend Hostgator. After the domain name is purchased, you can point it to your Webfaction account. If you don't care about having a "proper" domain, Webfaction provides you with your own subdomain.
Both Webfaction and Hostgator have competitive prices.
Maciej Sitko
16,164 PointsMaciej Sitko
16,164 PointsThanks, Webfaction seems the thing I needed. I got the domain already, so thats not an issue. Thing I want to deploy is a blog.
Joseph Turnquist
14,516 PointsJoseph Turnquist
14,516 PointsYeah, that shouldn't be a problem. Glad I could help.