Which CakePHP version should I download and where to place it?
Can someone point me to the CakePHP version I should download?开发者_运维百科
My server is unix-based, and my directory structure is something like this: root/home/webadmin/app_name/html/index.php
Where should I put the stuff that gets downloaded?
Thanks!
Download last 1.3 version (1.3.11 currently). You can download from here: https://github.com/cakephp/cakephp/downloads. There's a 2.0 version but it's not yet finished.
Place it under /home/webadmin/your_cake_app/
Also, take a look at the book: http://book.cakephp.org/ Will help you.
EDIT:
First find your Document Root. You can do it this way:
<?php
$docRoot = getenv("DOCUMENT_ROOT");
echo $docRoot; //Here it is
?>
After that, you uncompress the cakephp tgz and place it in there. If your document root is "/root/home/webadmin/app_name/html/" you place it under that html folder. The name of the folder in the tgz file must be something like "cake_###", rename it to anything related with your project. So, recap:
cd /root/home/webadmin/app_name/html/
wget http://[CAKE_URL AND VERSION]
tar -xzf cake.1.3.11.tar.gz
mv cake_### myProject
Point your server to domain/myProject and you should see the cake home page
精彩评论