Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>After research on cakephp tutorial, which come to setting cakephp on shared hosting and it will work :)</strong></p> <ul> <li>move app, cake, plugins, vendors folder into your hosting root folder. It is user root folder on your hosting</li> <li>delete .htaccess and index.php on cakephp root folder</li> <li>move /app/webroot/<em>.</em> to /public_html folder</li> <li>delete empty /app/webroot folder</li> <li>edit /public_html/index.php to point to the ‘cake’ and ‘app’ directories. For example my public_html path for my domain is /home/username/public_html, so i point</li> <li>ROOT to look at /home/username</li> <li>APP_DIR to look at /home/username/app</li> <li>CAKE_CORE_INCLUDE_PATH to look at /home/username/cake</li> <li>edit this line on /public_html/index.php with your appropriate path</li> </ul> <blockquote> <p>/** * The actual directory name for the "app". * Edited By Siraj */ if (!defined('APP_DIR')) { define('APP_DIR', basename(dirname(dirname(<strong>FILE</strong>))) . DS .'public_html' . DS .'app');</p> <p>}</p> <p>/// START --- Edited By Siraj</p> <p>if (!defined('CAKE_CORE_INCLUDE_PATH')) { if (function_exists('ini_set')) { ini_set('include_path', '/home' . DS . 'username' . DS . 'public_html' . DS . 'lib' . PATH_SEPARATOR . ini_get('include_path')); //define('CAKE_CORE_INCLUDE_PATH', 'home' . DS . 'username' . DS . 'public_html' . DS . 'lib'); } if (!include ('/home' . DS . 'username' . DS . 'public_html' . DS . 'lib' . DS .'Cake' . DS . 'bootstrap.php')) { $failed = true; } } else { if (!include ('/home' . DS . 'username' . DS . 'public_html' . DS . 'lib' . DS . 'Cake' . DS . 'bootstrap.php')) { $failed = true; } }</p> <p>//// END</p> </blockquote> <ul> <li>The only .htaccess i have on /home/username/public_html, the setting for .htaccess look like this</li> </ul> <blockquote> <p> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] </p> </blockquote>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload