studying-cakephp2
This is just my study project.
This is an application made with CakePHP 2.2(PHP Web Application Framework).
Environment
My environment:
- CentOS 6.2 (Minimal install)
- nginx 1.2.x
- PHP 5.4.x with APC, Xdebug
- MySQL 5.1.x
Running php-fpm with nginx. But Apache is easier to run Symfony2 because the rewrite rule is provided by CakePHP.
Getting started
-
Clone this repository.
-
Setup virtual host and configure document root to
app/webroot
directory. -
Setup permissions. (See http://book.cakephp.org/2.0/en/installation.html#permissions)
-
Copy
app/Config/core.php.dist
toapp/Config/core.php
and set Security.salt, Security.cipherSeed.
You can use below command to generate random string.# Generate random salt. cat /dev/urandom | tr -dc '[:alnum:]' | head -c 40 # Generate random cipher seed. cat /dev/urandom | tr -dc '[:digit:]' | head -c 29
-
Copy
app/Config/database.php.default
toapp/Config/database.php
and change parameters according to you environment. -
Run
git submodule update --init --recursive
-
If you want to use latest version of Twig, run
cd app/Plugin/TwigView/Vendor/Twig; git checkout master
-
Access
http://your_server/example