Installing CakePHP: Difference between revisions

production setup
mNo edit summary
(production setup)
Line 42: Line 42:
in the httpd.conf you should also change the document root to point to the "webroot" folder of your cake install. for a development environment, this makes things easier because you can change your document root to the webroot of whatever app you are working on and reset the uniform server. (that way you can also share the cake folder amongst many apps, which is even handier if you add virtual host directives for each project, as well as corresponding entries to your windows/system32/drivers/etc/hosts file.)
in the httpd.conf you should also change the document root to point to the "webroot" folder of your cake install. for a development environment, this makes things easier because you can change your document root to the webroot of whatever app you are working on and reset the uniform server. (that way you can also share the cake folder amongst many apps, which is even handier if you add virtual host directives for each project, as well as corresponding entries to your windows/system32/drivers/etc/hosts file.)


from here you unpack cake into your document root, (i don't think you even have to edit the app/webroot/index.php file), edit your database.config file, and start baking (open a command prompt inside cake/scripts/ and type: "w:\usr\local\php\php.exe bake.php -help" or just "php.exe bake.php -help" if you did the path setting step above).
from here you unpack cake into your document root, so that inside your www directory you have a "cake" folder and your various app folders, which won't be named "app" unless you only have one project. done this way, i don't think you even have to edit the app/webroot/index.php file (you can split up the cake files any way you want, in production for example, you may want only the app/webroot folder's contents to be in your hosting space's public_html folder, and the app folder and cake folders to be in your non-public user folder, in which case you will have to edit the app/webroot/index.php in at least one place -- see the cake site for instructions on all kinds of different filesystem configurations, but remember, you should not have to edit the .htaccess files or anything in the cake folder or anything other than the three constants in the index.php file in app/webroot to get cake working). next, edit your app/config/database.config file, and start baking (ie: open a command prompt inside w:/www/cake/scripts/ and type: "w:\usr\local\php\php.exe bake.php -help" or just "php.exe bake.php -help" if you did the path setting step above).


i know this tutorial had a lot more beginner instructions on baking a basic app, but a lot has changed since then anyway and mostly i just wanted to repost this uniform-server-specific info. hope someone finds it useful.
i know this tutorial had a lot more beginner instructions on baking a basic app, but a lot has changed since then anyway and mostly i just wanted to repost this uniform-server-specific info. hope someone finds it useful.