How do I set up Cakephp to work properly on Bluehost? Should I place my app, cake and vendor folders as well as .htaccess and index.php files in the /public_html/ directory? I followed the instructions here... http://book.cakephp.org/view/37/Apache-and-mod_rewrite-and-htaccess to no avail. All I see when I type the name to my website is a blank page!
A:
The method that I followed to set up everything can be found at this site... http://www.ad7six.com/MiBlog/ProductionSetup
- /cake_install
- /cake_install/app
- /cake_install/cake
- /cake_install/vendor
- /public_html/.htaccess
- /public_html/index.php
/public_html will have other information originally found in app/webroot but that's explained in the link above
if (!defined('ROOT')) {
//define('ROOT', dirname(dirname(dirname(__FILE__))));
define('ROOT',DS.'cake_install');
}
if (!defined('APP_DIR')) {
//define('APP_DIR', basename(dirname(dirname(__FILE__))));
define('APP_DIR',DS.'app');
}
if (!defined('CAKE_CORE_INCLUDE_PATH')) {
//define('CAKE_CORE_INCLUDE_PATH', ROOT);
define('CAKE_CORE_INCLUDE_PATH',DS.'cake_install');
}
donalg d
2009-06-17 16:27:25
A:
With bluehost, dont forget that the folders outside the webroot (ie your home folder) are also accessible for your application - no particular need to put the framework inside folders that are open to the outside world.
danp
2009-11-09 14:40:18