Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you set up cakephp on a shared hosting?

Tags:

php

cakephp

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

like image 977
Teej Avatar asked Feb 24 '09 03:02

Teej


1 Answers

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!

like image 98
Fernando Barrocal Avatar answered Oct 27 '22 22:10

Fernando Barrocal