Install CakePHP on Bluehost

How to configure CakeFPS to work on Bluehost? Should I place the application, cake and vendor folders, as well as the .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 that I see when entering a name on my site is a blank page!

+3
source share
2 answers

The method that I performed to configure everything can be found on this site ... http://www.ad7six.com/MiBlog/ProductionSetup

  • / cake_install
  • / cake_install / application
  • / cake_install / cake
  • / cake_install / vendor
  • /public_html/.htaccess
  • /public_html/index.php

/public_html , app/webroot,

    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');
}
+1

bluehost , , webroot (.. ), - , .

0

Source: https://habr.com/ru/post/1710608/


All Articles