I am getting challenge with uploading my cakePHP project on the hosting that is shared ( from hostgator ). Here's what I've done: I have organized my cake distribution such as this:

  • home/user/application
  • home/user/cake/cake
  • home/user/cake/suppliers
  • home/user/cake/.htaccess
  • home/user/cake/index.php

    I've taken this content of webroot directory from application and set it in

    • home/user/public_html

    I have modified this file home/user/public_html/index.php ( the one which is at application/webroot ) altering wrinkles such as this:

    • define('ROOT', DS.'home'.DS.'user')
    • define('APP_DIR', 'app')
    • define('CAKE_CORE_INCLUDE_PATH', DS.'home'.DS.'user'.DS.'cake')

    And that is about this.

    MY Issue Is The Next:

    I've handled to cope with all of the problems active in the default index.php cakePHP page and I've got a eco-friendly and completely functional to say, project. Then when I access my "/", I recieve:

    "Your tmp directory is writable.

    The FileEngine has been employed for caching. To alter the config edit Application/config/core.php

    Your database configuration file exists.

    Cake has the capacity to connect with the database."

    Now, I have produced a model-view-controller having a mysql database background (as with the 15 min Blog Tutorial ), however when I am attempting to access some sights ( e.g. /posts )...it provides me with an empty page ( this labored perfect on my small local machine virtual server apache ).

    What configuration am I missing ?


EDIT: Apparently I'd issues with the hosting. My URL was something similar to:


and all sorts of I needed to do was add an additional line within the webroot .htaccess:

RewriteBase /~username/

Just support.

Try dumping your cache folder, also.

My modified application/webroot/.htaccess file is:

<IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteBase /

    RewriteCond % !-d

    RewriteCond % !-f

    RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]


Next, stick to the tutorial. Works best for me like no bodies business .

This tutorial is really a existence saving idea, I'd exactly the same problem that my host title includes ~username. Now after adding the 'rewriteBase /~username/', works like no bodies business.

However, before each one of these, I adopted a youtube tutorial by jason speaking about how exactly to configure cakephp on hosting that is shared. Just paste it here just in case it will help anybody. http://world wide web.youtube.com/watch?v=4GobWo1rIkE&tracker=False

Many thanks!