# Cake but no bake

**URL:** https://discourse.cakephp.org/t/cake-but-no-bake/4758
**Category:** Need Help
**Created:** [August 19, 2018, 9:08pm UTC](https://discourse.cakephp.org/t/cake-but-no-bake/4758 "2018-08-19T21:08:26Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![jlcooke](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/jlcooke/32/1128_2.png) [@jlcooke](https://discourse.cakephp.org/u/jlcooke)
#### Post date: [August 19, 2018, 9:08pm UTC](https://discourse.cakephp.org/t/cake-but-no-bake/4758/1 "2018-08-19T21:08:26Z")

</div>

I’m new to CakePHP and I’m just trying to go through the examples. Everything was fine on the CMS tutorial until I had to use “cake bake”. The command spews an HTML 500 error from the server directly onto my console. I think maybe I’m missing something basic here.

I have done this so far:

- Made bin/cake executable
- Modified cake to use php7.1 (exec php \> exec php7.1) – can’t change my /usr/bin/php symlink
- Run ./bin/cake help

At this point, I noticed that “bake” wasn’t listed as a command? Is it supposed to be?

I assumed so. I tried installing a bake module with:

php7.1-cli composer.phar require --dev cakephp/bake:~1.0

This seemed to work fine, although from the composer.json file it appeared I had the required versions of cakephp and other items. So, not sure why it didn’t work in the first place. I can’t run composer directly.

This is where I’m stuck. Not sure if I am going down the correct rabbit hole. When I run “bin/cake bake” I do not get anything resembling what the tutorial show. I get raw html on my console.

The hosting company I’m using is [1and1.com](http://1and1.com). I’ve searched the CakePHP forums and 1and1 and can’t find anything on this issue.

–Thanks in advance

---

<div class="post-metadata">

### Author: ![jimgwhit](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/jimgwhit/32/378_2.png) [@jimgwhit](https://discourse.cakephp.org/u/jimgwhit)
#### Post date: [August 19, 2018, 10:27pm UTC](https://discourse.cakephp.org/t/cake-but-no-bake/4758/2 "2018-08-19T22:27:59Z")

</div>

First, on shared hosting don’t bake. Bake on the dev server and upload your project that’s all working. I had godaddy for a while and just uploaded all.

---

<div class="post-metadata">

### Author: ![jlcooke](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/jlcooke/32/1128_2.png) [@jlcooke](https://discourse.cakephp.org/u/jlcooke)
#### Post date: [August 20, 2018, 12:27am UTC](https://discourse.cakephp.org/t/cake-but-no-bake/4758/3 "2018-08-20T00:27:04Z")

</div>

That’s a good point. I have my own local CentOS system, so I could do it there. But I’m using a subdomained site with the hosting company, so it really is my dev system.

I understand ‘cake bake’ is a development tool. If that’s the point of (the hosting company) distributing cake without bake, then I suppose I have to take that up with them. I was looking for a simple solution for development on-the-road.

Thanks for the comment.

---

<div class="post-metadata">

### Author: ![jimgwhit](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/jimgwhit/32/378_2.png) [@jimgwhit](https://discourse.cakephp.org/u/jimgwhit)
#### Post date: [August 20, 2018, 2:28am UTC](https://discourse.cakephp.org/t/cake-but-no-bake/4758/4 "2018-08-20T02:28:46Z")

</div>

You can have a wamp or lamp stack on a laptop.

---

<div class="post-metadata">

### Author: ![Graziel](https://avatars.discourse-cdn.com/v4/letter/g/71c47a/32.png) [@Graziel](https://discourse.cakephp.org/u/Graziel)
#### Post date: [August 20, 2018, 2:31am UTC](https://discourse.cakephp.org/t/cake-but-no-bake/4758/5 "2018-08-20T02:31:22Z")

</div>

on some systems it helps to make php execute php file,

```auto
php bin/cake.php

```

---

<div class="post-metadata">

### Author: ![jlcooke](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/jlcooke/32/1128_2.png) [@jlcooke](https://discourse.cakephp.org/u/jlcooke)
#### Post date: [August 20, 2018, 2:03pm UTC](https://discourse.cakephp.org/t/cake-but-no-bake/4758/6 "2018-08-20T14:03:31Z")

</div>

Yep, I been down that road long ago, maybe will try it again. I have an Apache server and a postgresql db on my win10 laptop just had trouble finding a satisfactory php windows solution. I was excited when I found this cheap ($60/yr, first year) hosting deal with “unlimited” databases and subdomains (no, I am not affiliated with them). Thanks again.

---

<div class="post-metadata">

### Author: ![jlcooke](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/jlcooke/32/1128_2.png) [@jlcooke](https://discourse.cakephp.org/u/jlcooke)
#### Post date: [August 20, 2018, 3:52pm UTC](https://discourse.cakephp.org/t/cake-but-no-bake/4758/7 "2018-08-20T15:52:10Z")

</div>

Yep, did that. Thanks anyway.

---

<div class="post-metadata">

### Author: ![justinkbug](https://avatars.discourse-cdn.com/v4/letter/j/d2c977/32.png) [@justinkbug](https://discourse.cakephp.org/u/justinkbug)
#### Post date: [August 25, 2018, 11:25am UTC](https://discourse.cakephp.org/t/cake-but-no-bake/4758/8 "2018-08-25T11:25:21Z")

</div>

If your looking for development on the road have you tried something like putting your code in dropbox? Or if you want your own solution, try next cloud. Then you can have your files synced across all your systems. Have you heard of vagrant? I highly recommend it over something like wamp for a development environment. I forked an instance that I use and you can find it here. [https://github.com/JustAWebDev/lamp-vagrant](https://github.com/JustAWebDev/lamp-vagrant)

It’s basically a LAMP stack that runs a virtual machine on your system. You have to install virtual box and vagrant. Then you can clone the above repository and run “vagrant up” from that cloned directory. You can ssh into the VM to run things like bake, just like you would on a real linux server.
