用户变量和环境变量设成:
D:/workspace/test/cake/app;D:/webserver/php;D:/workspace/test/cake/cake/console
然后在命令行中执行
D:/workspace/test/cake>cake bake
我xp的个人变量path
C:/Program Files/SSH Communications Security/SSH Secure Shell;C:/Program Files/IDM Computer
Solutions/UltraEdit/;C:/Program Files/IDM Computer Solutions/UltraCompare/;D:webserver/php;d:/Program
Files/StormII/Codec;d:/Program
Files/StormII;D:/workspace/test/cake/app;D:/webserver/php;D:/workspace/test/cake/cake/console
系统变量path
%SystemRoot%/system32;%SystemRoot%;%SystemRoot%/System32/Wbem;C:/Program Files/Common Files/Thunder
Network/KanKan/Codecs;D:/Subversion/bin/;C:/Program Files/QuickTime/QTSystem/;D:/Program Files/Microsoft SQL
Server/90/Tools/binn/;D:/workspace/test/cake/app;D:/webserver/php;D:/workspace/test/cake/cake/console
ubuntu 下的 的操作
- Install Apache Server, MySQL, PHP
sudo apt-get install apache2 mysql-server php5
- Download CakePHP 1.2
Go to http://cakephp.org and download latest cakephp. I downloaded cake_1.2.1.8004.tar.bz2 - Copy and extract to web root
Open your terminal where you put cakephp you just downloaded.sudo cp cake_1.2.1.8004.tar.bz2 /var/www/
cd /var/www
sudo tar -xvf cake_1.2.1.8004.tar.bz2
sudo mv cake_1.2.1.8004 cakephp - Change tmp folder permisssion
sudo chmod -R 777 cakephp/app/tmp
- Enable mod-rewrite
sudo a2enmod rewrite
- Open file /etc/apache2/sites-enabled/000-default and change AllowOverride None to AllowOverride All
sudo vim /etc/apache2/sites-enabled/000-default
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>to
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory> - Restart Apache
sudo /etc/init.d/apache2 restart
- Open your browser and type address http://localhost/cakephp/ and you’ll see CakePHP message
我的增加
cake bake 功能
sudo apt-get install cakephp-scripts
sudo apt-get intall php5-cli
sudo vim /
etc/
environment
的PATH加上
:/usr/bin/php:/var/www/cake1/cake/console
其中php的路径用 which php 得到
cake bake -app /
var/www/
cake1/
app/ 就可以开始做自动生成 其中"/var/www/cake1"是cake的路径
http://komunitasweb.com/2009/02/cakephp-tutorial-installing-cakephp-on-ubuntu/
http://grasshopperpebbles.com/ubuntu/cakephp-baking-on-ubuntu/