I am having problems loading my cakePHP project on shared hosting (from hostgator). Here's what I did: I organized the distribution of the cake as follows:
- Home / User / Application
- home / user / cake / pie
- home / user / cake / manufacturers
- home / user / cake / .htaccess
Home / User / Cake / index.php
I took the contents of the webroot directory from the application and put it in
- Home / User / public_html
I changed this file home / user / public_html / index.php (the one that was in the / webroot application) changing these lines as follows:
- define ('ROOT', DS.'home'.DS.'user ');
- define ('APP_DIR', 'app');
- define ('CAKE_CORE_INCLUDE_PATH', DS.'home'.DS.'user'.DS.'cake ');
And what about that.
MY PROBLEM SHOULD:
I managed to cope with all the problems associated with the index.php cakePHP page by default, and I have a green and fully functional, so to speak, project. Therefore, when I access my "/", I get:
"Your tmp directory is writable.
FileEngine is used for caching. To change the configuration, change APP / config / core.php
There is a database configuration file.
Cake can connect to the database.
Now I created a model view controller with the background of the mysql database (for example, in a 15 minute training blog), but when I try to access some views (like / posts) ... it gives me a blank page (this worked fine on my local machine with apache virtual server).
What configuration am I missing?
Thanks.
EDIT: Apparently, I had problems with the hosting. My url was something like this:
http://gator111.hostgator.com/~username/
and all I had to do was add an extra line to webroot.htaccess:
RewriteBase / ~ username /
Thanks for the support.
source share