Read the updated version for CakePHP 1.3 here
Create the database
First we create a database called authcake. Rename it as needed, but be sure to change it in the examples below.
user@host:~$ mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 385 Server version: 5.0.67-0ubuntu6 (Ubuntu) Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> create database authcake; Query OK, 1 row affected (0.00 sec) mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER -> ON authcake.* -> TO 'authcake'@'localhost' IDENTIFIED BY 's3cr3t'; Query OK, 0 rows affected (0.00 sec) mysql> exit Bye
Next we download the latest CakePHP from http://cakephp.org/. The version used in this example is 126.96.36.19966 Stable and the file cake_188.8.131.5266.tar.gz is placed in the homedir.
CakePHP will be installed in the ~/public_html/authcake directory, which is served using mod_userdir. The directory will be available at the URL http://yourhost/~username/authcake . Of course it is possible to install it to another location, but be sure to change the locations in the commands below accordingly.
Make sure mod_rewrite is working and that the AllowOverride property for ~/public_html is set to All.
user@host:~$ cd ~/public_html user@host:~/public_html$ tar xvzf ~/cake_184.108.40.20666.tar.gz cake_220.127.116.1166/ .......... . SNAP . .......... user@host:~/public_html$ mv cake_18.104.22.16866/ authcake user@host:~/public_html$ cd authcake/
Rename the default database config and change the values to match those on your system.
user@host:~/public_html/authcake$ mv app/config/database.php.default app/config/database.php user@host:~/public_html/authcake$ vi app/config/database.php
Change the setting Security.salt in the core.php file
user@host:~/public_html/authcake$ vi app/config/core.php
The tmp dir needs write permissions. Use chmod -R 777 only in development environments. In production environments the owner of the files need to be the user running the webserver.
user@host:~/public_html/authcake$ cd app/ user@host:~/public_html/authcake/app$ chmod -R 777 tmp/ user@host:~/public_html/authcake/app$ cd ..