Upgrading CakePHP is very easy. In this example we upgrade from CakePHP 2.6.1 to 2.6.2. This can be done by executing the following few commands. This will take only a few minutes.
In the Upgrade Process we kept the libraries of Version 2.6.1 so we could revert the upgrade if necessary
# locate to your CakePHP directory and create a new temporary directory for the new release cd /usr/local/www/logikfabrik.com mkdir www262 cd www262 # download the new release to the temporary directory fetch --no-verify-peer https://github.com/cakephp/cakephp/archive/master.zip tar -xvf master.zip cd /usr/local/www/logikfabrik.com/cakephp/ #check if you are in the correct directory ls -altr # you should see at least: app lib index.php # Replace Lib; save the current lib mv lib lib261 mv /usr/local/www/logikfabrik.com/www262/cakephp-master/lib . # Replace index.php; save the current index.php mv index.php index261.php mv /usr/local/www/logikfabrik.com/www262/cakephp-master/index.php . # Remove temporary download and old releases if exists rm -R /usr/local/www/logikfabrik.com/www262/ rm -R lib260 rm index260.php
Use the following url in your browser to check if the correct version of CakePHP is being used.
http://www.logikfabrik.com/pages/homeNext: Updating FreeBSD Operating System, Packages and Ports UP: TOC