cakephp.co.uk is intended to bring easy to follow tutorials and CakePHP code snipets to the CakePHP world. It is in no way affiliated to cakephp.org however offers it support and encouragement where it can.
Our homepage can be found here.
CakePHP Installation Over SSH
Introduction: There are a few ways to install CakePHP, such as downloading CakePHP and uploading via FTP or SFTP, installing installing CakePHP with Git Clone, and a handful of other ways. Probably the quickest way if you are not using git is to install CakePHP with SSH. This is only really for Linux users. There is probably a Windows way of doing all of this, but it's not my area and so is not covered by this article.
First, grab the URL of the latest CakePHP packake (or whatever version you want to use) from the CakePHP Version Archive.
For this tutorial, we are using version 2.4.5.
Assumptions: I'm assuming you know what CakePHP is, have SSH and know how to connect to a server with it, and have wget installed and are using some flavour of *nix.
Create a directory for your new CakePHP application and move into that directory.
# mkdir dev //created a directory called 'dev'. This where your Cake app will live. # cd dev //changed into the new 'dev' directory
Download and extract CakePHP to your server using the wget command.
#wget --no-check-certificate https://github.com/cakephp/cakephp/archive/2.4.5.tar.gz #tar -zxvf 2.4.5 // here we extract what we just downloaded above #rm 2.4.5 // remove the downloaded archive, don't need it now we have extracted it
Rename the CakePHP folder (if you want to) to something a little friendlier.
mv cakephp-2.4.5/ mycake
Now if you got to the address of your CakePHP application in your browse (http://something.ext/mycake) you should see some permission errors. Set permissions correctly on mycake/app/tmp and reload the page and you are done.
Need a CakePHP developer? Or website design services? Hire us, we wrote this tutorial.