0

I've got two CakePHP sites on a single Bluehost account (shared hosting), and have been trying to bake with both, but whenever I execute the command, the terminal gives no output and hangs permanently until its aborted with Ctrl+C.

I'm certain the command to execute the script is correct, because I have both sites mirrored on a private VPS and both work flawlessly, and I've checked MD5s to make sure there weren't any errors while transferring them. I've also set permissions for the entire console folder to 777, but still nothing. Anyone know what could be going on here?

halfer
  • 19,824
  • 17
  • 99
  • 186
user782161
  • 63
  • 6
  • What command are you executing? Perhaps you need the support of bluehost itself? – konsolebox Jun 11 '14 at 19:12
  • i've tried both `./Console/cake bake` from the app folder, as well as the equivalent from the root directory `/home1/b******i/public_html/admin.b***********s.com/app/Console/cake` – user782161 Jun 11 '14 at 19:13
  • I take it baking is a code build phase? If so, it would be better to do this on a local machine where it can be debugged properly. Then commit the changed files to VCS and push them (or rsync them) to the remote server. – halfer Jun 11 '14 at 19:26
  • Try `php ./Console/cake bake`, assuming the hashbang is meant to call PHP. Also, what version of PHP does it need? Maybe you need to call it with `php5` instead? – halfer Jun 11 '14 at 19:29
  • I noticed that on some servers, you need to execute your cake commands different. This one works for me: first, make sure that you're on the app directory `/home1/b******i/public_html/admin.b***********s.com/app`. Then try running: `php ../Console/cake.php bake` – Timber Jun 11 '14 at 20:07
  • I've got new info, for some reason cake seems to be stuck in an infinite loop whenever its run, running the ./cake command for 5 seconds yeilded 174,540 errors in error_log, the same two repeating: `[11-Jun-2014 14:02:20 America/Denver] PHP Warning: array_splice() expects parameter 1 to be array, null given in /onbi/public_html/lib/Cake/Console/ShellDispatcher.php on line 323 [11-Jun-2014 14:02:20 America/Denver] PHP Warning: array_search() expects parameter 2 to be array, null given in /onbi/public_html/lib/Cake/Console/ShellDispatcher.php on line 319` – user782161 Jun 11 '14 at 20:08
  • @TimothyOnggowasito, tried this, returns the same error as described above – user782161 Jun 11 '14 at 20:13
  • 1
    Try this guy's solution http://stackoverflow.com/questions/3542649/cakephp-console-on-godaddy-hosting – Timber Jun 11 '14 at 20:29
  • @TimothyOnggowasito Holy crap. that did it. Thanks :D – user782161 Jun 11 '14 at 20:49
  • @user782161 Nice! Glad that helped :P. – Timber Jun 11 '14 at 22:30

0 Answers0