Make a new workspace, choose PHP, go to the Terminal, and execute the following:
echo "updating composer" && \ curl -sS https://getcomposer.org/installer | php echo "creating CakePHP project"; php composer.phar create-project cakephp/app name_of_project; cd $1; chmod +x bin/cake;
After downloading CakePHP 3, you will need to change the Apache DocumentRoot and point it at your freshly created project folder. Apache mod_rewrite will take care of the rest.
Now you are free to create your database and add the connection information to
Running the CakePHP Server
While you may choose to run your app with Apache, you can also run it with the built-in CakePHP server. In order to do this you’ll first need to stop Apache to make sure there’s no port conflict.
If you ran Apache with the
Run button, you can stop it by closing out of tab with the running process in it. You can also stop Apache from the terminal by running
sudo service apache2 stop.
From there, run your CakePHP server with the following command:
bin/cake server -H $IP -p $PORT