Hi everyone, It seems like I kind of solved this problem. Thanks to everyone's help, I learned a lot through the process.
Just in case anybody is having similar issue, here is what I did, I'm really a novice, so I can't explain why every step is necessary, but it works for me: 1) I followed a youtube tutorial talking about the configuration on shared hosting: http://www.youtube.com/watch?v=4GobWo1rIkE&tracker=False 2) After I've done that, it worked for my homepage, but the rest pages are still 404 error. So I finally found a tutorial here: http://stackoverflow.com/questions/1214658/cakephp-shared-hosting-dilemma/5262323#5262323 The reason I failed was because my domain looks like www.example.com/~username, So in the .htaccess file located in your public_html folder, you need to add the rewriteBase /~username/. So this is really a special case for me, isn't necessary for everyone. And later if I change to a more standard domain, I should remove this line. That's it. Happy Baking. -David On Mar 10, 8:46 am, Tan Cheng <davidtan...@gmail.com> wrote: > Thanks for the article, I'm reading it. > > On Mar 10, 3:49 am, rethab <rethab...@gmail.com> wrote: > > > > > > > > > Find more information about the advanced setup > > here:http://book.cakephp.org/#!/view/915/Advanced-Installation > > > cheers > > > On 10 Mrz., 09:31, thatsgreat2345 <thatsgreat2...@gmail.com> wrote: > > > > You said you wanted to have the website be example.com/exceltv so what > > > you can do is put webroot in public_html then just rename it to > > > exceltv > > > > (the files inside webroot will now be in a folder called exceltv in > > > public_html) > > > > On Mar 9, 8:19 pm, Tan Cheng <davidtan...@gmail.com> wrote: > > > > > Thanks for your help. > > > > > I have a question, when you say "put your webroot in your public_html > > > > ", do you mean put the "webroot" folder in public_html, or you mean > > > > put the files in the webroot in the "public_html"? > > > > > Thanks!! > > > > > -David > > > > > On Mar 9, 9:42 pm, thatsgreat2345 <thatsgreat2...@gmail.com> wrote: > > > > > > I guess I should have used your example folder > > > > > > where I said folder_you_want_to_access_your_site_through, name that > > > > > exceltv > > > > > and you can call your app folder whatever you want > > > > > > This way, if you want to run multiple cake sites on your shared host > > > > > you will have all the apps inside your cake folder > > > > > Then make a new folder in public_html, and change that path properties > > > > > to what i posted there and you only have to have one cake core, but > > > > > multiple apps > > > > > > On Mar 9, 6:39 pm, thatsgreat2345 <thatsgreat2...@gmail.com> wrote: > > > > > > > You need to put your webroot in your public_html and then change > > > > > > your > > > > > > index.php file in webroot to point to your cake root and your app > > > > > > path > > > > > > > This is how I have it setup. > > > > > > > /cake > > > > > > /appnamehere > > > > > > /controllers > > > > > > /models > > > > > > /other stuff > > > > > > /cake > > > > > > /vendors > > > > > > /tests > > > > > > /other folders and files that come with cake > > > > > > > /public_html > > > > > > /folder_you_want_to_access_your_site_through (example.com/ > > > > > > folder_you_want_to_access_your_site_through) > > > > > > > Inside index.php that is in your > > > > > > webroot(folder_you_want_to_access_your_site_through/index.php) > > > > > > > Change to root to > > > > > > if (!defined('ROOT')) { > > > > > > define('ROOT', dirname(dirname(dirname(__FILE__))) > > > > > > . DS . 'cake'); > > > > > > } > > > > > > > And this to > > > > > > > if (!defined('APP_DIR')) { > > > > > > define('APP_DIR', 'appnamehere' ); > > > > > > } > > > > > > > Should work now > > > > > > On Mar 9, 6:03 pm, Tan Cheng <davidtan...@gmail.com> wrote: > > > > > > > > Hi everyone, > > > > > > > > My boss wants the project I'm working with cakephp to be seen on a > > > > > > > host as soon as possible. > > > > > > > > I signed up with Cirtex hosting, but when I upload, it doesn't > > > > > > > work > > > > > > > directly, I am contacting them to change the mod_rewrite and some > > > > > > > other settings, but I don't want to sit here and waiting for > > > > > > > them. I > > > > > > > just started this job and want to "impress" my boss what I have > > > > > > > done > > > > > > > so far... > > > > > > > > So, here is my question, has anyone of you know a shared hosting > > > > > > > plan, > > > > > > > that I can upload my app folders, setup the database, and it just > > > > > > > works... > > > > > > > > Here is the structure of my app, it's called exceltv, of course > > > > > > > there > > > > > > > will be other files, I list the main ones... > > > > > > > > /excetv > > > > > > > /app > > > > > > > /models > > > > > > > /controllers > > > > > > > /views > > > > > > > /webroot > > > > > > > /cake > > > > > > > /plugins > > > > > > > /vendors > > > > > > > > I hope I can launchwww.example.com/exceltv, and it will just > > > > > > > work... > > > > > > > > I am really in a hurry and don't know much about how the htaccess > > > > > > > works, any help really appreciated!! > > > > > > > > Thanks. > > > > > > > > -David -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php