This is one thing I haven't been able to do with Cake. I have tried it a few times and couldn't figure it out. I am on hostgator and it could help if someone could point how they've been setting it up (Advanced installation).
Edit
I have read the documentation and I get errors. I guess I haven't been reading it all too well.
Edit I just found this post. http://www.ad7six.com/MiBlog/ProductionSetup
My best shot at your problem is this:
You will probably have a user directory (probably /home/user
) containing a /public_html
directory or /htdocs
or even a /html
where you are supposed to put your files in.
In my personal experience you should descompact your cake/project files on this directory (/public_html
from now) like:
/public_html
/public_html/app
/public_html/cake
/public_html/libs
and you will end with your website root in this structure, located at:
/public_html/app/webroot
Most Hosting sites allow you to put a .htaccess
files on the root dir:
/.htaccess
You will need to creat this .htaccess
file with following content:
DocumentRoot /home/user/public_html/app/webroot
Just remember that the /home/user/public_html
can be anything, but you can probably figure it easily, via shell or calling the host support.
G'luck!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With