Re: Help me set up cakephp on godaddy
Ooops, looks like you already figured it out. Teach me to post before reading to the end of a thread. Well, congrats on getting it all worked out! On 5/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > Okay everone good news, got it set up and running. > > Here's what I did (This applies to godaddy's linux hosting which has > rewrite enabled): > > 1. Added a trailing slash '/' to every rewrite rule located in > > /.htaccess > /app/.htaccess > /app/webroot/.htaccess > > 2. Modified /webroot/index.php > > ... > if (!defined('ROOT')) { > //define('ROOT', 'FULL PATH TO DIRECTORY WHERE APP > DIRECTORY IS > LOCATED DO NOT ADD A TRAILING DIRECTORY SEPARATOR'; > //You should also use the DS define to seperate your > directories > // define('ROOT', dirname(dirname(dirname(__FILE__; > define('ROOT', '/home/content/y/o/u/you/html/'); > > } > if (!defined('APP_DIR')) { > //define('APP_DIR', 'DIRECTORY NAME OF APPLICATION'; > //define('APP_DIR', basename(dirname(dirname(__FILE__; > define ('APP_DIR', 'app'); > } > ... > > Left line 41 on config/core.php commented (thus disabling internal > rewrite) > > Thats it! everything worked fine right there. Even admin and routing > were working right away. > > Thank you so much for all your help! > > > On May 24, 11:49 am, "Samuel DeVore" <[EMAIL PROTECTED]> wrote: > > I have client that I set up with a cake site about a year ago on godaddy > but > > he changed the access so I can't see how I set it. He is going to send > me > > the new passwords today, I should be able to try to help you soon > > > > Sam D > > > > On 5/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > css are all linked using $html->css > > > > > Found out that if I edit webroot's .htaccess from > > > > > RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] > > > to > > > RewriteRule ^(.*)$ /index.php?url=$1 [QSA,L] > > > > > Images and flash will show up, but still controllers are a no-go > > > > > On May 24, 11:11 am, "John David Anderson (_psychic_)" > > > <[EMAIL PROTECTED]> wrote: > > > > On May 24, 2007, at 10:04 AM, [EMAIL PROTECTED] wrote: > > > > > > > John, I already downloaded and installed a brand new copy of cake > and > > > > > uploaded it. > > > > > After that I tried working with internal urls but they worked only > if > > > > > I typed /site/index.php?controller > > > > > > That's how internal URLs work. > > > > > > example.com/index.php?/controller/action > > > > > > or > > > > > > example.com/index.php?url=/controller/action > > > > > > > Btw, im using godaddy's linux hosting with is SUPPOSED to have > > > > > mod_rewrite enabled. > > > > > > Verify that. That seems to be the main issue here, and you'll save a > > > > lot of time double checking that rather than assuming it. If it has > > > > it, why are you not using it? > > > > > > > here is the link to the site:http://sportmarketingcenter.com > > > > > > > so far I've gotten the homepage to render the images and flash > file > > > > > but thats it (try clicking on one of the menu options) it will > just go > > > > > back to the start page with no layout defined. > > > > > > It was my understanding that this was a fresh cake install, but it > > > > seems you're running a complete site - which is it? How are you > > > > linking to your CSS in the layouts? > > > > > > -- John > > > > -- > > (the old fart) the advice is free, the lack of crankiness will cost you > > > > - its a fine line between a real question and an idiot > > > > http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/ > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Help me set up cakephp on godaddy
I actually just wrote a blog post about getting cake working a godaddy hosting. Check it out! http://nathan.ashleafmedia.com/2007/baking-cakephp-on-godaddy-hosting/ On 5/24/07, Samuel DeVore <[EMAIL PROTECTED]> wrote: > > I have client that I set up with a cake site about a year ago on godaddy > but he changed the access so I can't see how I set it. He is going to send > me the new passwords today, I should be able to try to help you soon > > Sam D > > On 5/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > > > css are all linked using $html->css > > > > Found out that if I edit webroot's .htaccess from > > > > RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] > > to > > RewriteRule ^(.*)$ /index.php?url=$1 [QSA,L] > > > > Images and flash will show up, but still controllers are a no-go > > > > On May 24, 11:11 am, "John David Anderson (_psychic_)" > > <[EMAIL PROTECTED]> wrote: > > > On May 24, 2007, at 10:04 AM, [EMAIL PROTECTED] wrote: > > > > > > > > > > > > > John, I already downloaded and installed a brand new copy of cake > > and > > > > uploaded it. > > > > After that I tried working with internal urls but they worked only > > if > > > > I typed /site/index.php?controller > > > > > > That's how internal URLs work. > > > > > > example.com/index.php?/controller/action > > > > > > or > > > > > > example.com/index.php?url=/controller/action > > > > > > > Btw, im using godaddy's linux hosting with is SUPPOSED to have > > > > mod_rewrite enabled. > > > > > > Verify that. That seems to be the main issue here, and you'll save a > > > lot of time double checking that rather than assuming it. If it has > > > it, why are you not using it? > > > > > > > here is the link to the site:http://sportmarketingcenter.com > > > > > > > so far I've gotten the homepage to render the images and flash file > > > > but thats it (try clicking on one of the menu options) it will just > > go > > > > back to the start page with no layout defined. > > > > > > It was my understanding that this was a fresh cake install, but it > > > seems you're running a complete site - which is it? How are you > > > linking to your CSS in the layouts? > > > > > > -- John > > > > > > > > > -- > (the old fart) the advice is free, the lack of crankiness will cost you > > - its a fine line between a real question and an idiot > > http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/ > > > -- Nathan Garza AshLeaf Media | Director of Technology Innovations _ www.ashleafmedia.com | [EMAIL PROTECTED] | 832.514.5726 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Help me set up cakephp on godaddy
This .htaccess setup works for me on godaddy. the key is Options +FollowSymLinks in the .htaccess file in your document root: Options +FollowSymLinks RewriteEngine on RewriteRule^$ /app/webroot/[L] RewriteRule(.*) /app/webroot/$1 [L] and webroot/.htaccess looks like this: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] good luck with all that. On May 24, 12:49 pm, "Samuel DeVore" <[EMAIL PROTECTED]> wrote: > I have client that I set up with a cake site about a year ago on godaddy but > he changed the access so I can't see how I set it. He is going to send me > the new passwords today, I should be able to try to help you soon > > Sam D > > On 5/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > > > > css are all linked using $html->css > > > Found out that if I edit webroot's .htaccess from > > > RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] > > to > > RewriteRule ^(.*)$ /index.php?url=$1 [QSA,L] > > > Images and flash will show up, but still controllers are a no-go > > > On May 24, 11:11 am, "John David Anderson (_psychic_)" > > <[EMAIL PROTECTED]> wrote: > > > On May 24, 2007, at 10:04 AM, [EMAIL PROTECTED] wrote: > > > > > John, I already downloaded and installed a brand new copy of cake and > > > > uploaded it. > > > > After that I tried working with internal urls but they worked only if > > > > I typed /site/index.php?controller > > > > That's how internal URLs work. > > > > example.com/index.php?/controller/action > > > > or > > > > example.com/index.php?url=/controller/action > > > > > Btw, im using godaddy's linux hosting with is SUPPOSED to have > > > > mod_rewrite enabled. > > > > Verify that. That seems to be the main issue here, and you'll save a > > > lot of time double checking that rather than assuming it. If it has > > > it, why are you not using it? > > > > > here is the link to the site:http://sportmarketingcenter.com > > > > > so far I've gotten the homepage to render the images and flash file > > > > but thats it (try clicking on one of the menu options) it will just go > > > > back to the start page with no layout defined. > > > > It was my understanding that this was a fresh cake install, but it > > > seems you're running a complete site - which is it? How are you > > > linking to your CSS in the layouts? > > > > -- John > > -- > (the old fart) the advice is free, the lack of crankiness will cost you > > - its a fine line between a real question and an idiot > > http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Help me set up cakephp on godaddy
Okay everone good news, got it set up and running. Here's what I did (This applies to godaddy's linux hosting which has rewrite enabled): 1. Added a trailing slash '/' to every rewrite rule located in /.htaccess /app/.htaccess /app/webroot/.htaccess 2. Modified /webroot/index.php ... if (!defined('ROOT')) { //define('ROOT', 'FULL PATH TO DIRECTORY WHERE APP DIRECTORY IS LOCATED DO NOT ADD A TRAILING DIRECTORY SEPARATOR'; //You should also use the DS define to seperate your directories // define('ROOT', dirname(dirname(dirname(__FILE__; define('ROOT', '/home/content/y/o/u/you/html/'); } if (!defined('APP_DIR')) { //define('APP_DIR', 'DIRECTORY NAME OF APPLICATION'; //define('APP_DIR', basename(dirname(dirname(__FILE__; define ('APP_DIR', 'app'); } ... Left line 41 on config/core.php commented (thus disabling internal rewrite) Thats it! everything worked fine right there. Even admin and routing were working right away. Thank you so much for all your help! On May 24, 11:49 am, "Samuel DeVore" <[EMAIL PROTECTED]> wrote: > I have client that I set up with a cake site about a year ago on godaddy but > he changed the access so I can't see how I set it. He is going to send me > the new passwords today, I should be able to try to help you soon > > Sam D > > On 5/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > > > > css are all linked using $html->css > > > Found out that if I edit webroot's .htaccess from > > > RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] > > to > > RewriteRule ^(.*)$ /index.php?url=$1 [QSA,L] > > > Images and flash will show up, but still controllers are a no-go > > > On May 24, 11:11 am, "John David Anderson (_psychic_)" > > <[EMAIL PROTECTED]> wrote: > > > On May 24, 2007, at 10:04 AM, [EMAIL PROTECTED] wrote: > > > > > John, I already downloaded and installed a brand new copy of cake and > > > > uploaded it. > > > > After that I tried working with internal urls but they worked only if > > > > I typed /site/index.php?controller > > > > That's how internal URLs work. > > > > example.com/index.php?/controller/action > > > > or > > > > example.com/index.php?url=/controller/action > > > > > Btw, im using godaddy's linux hosting with is SUPPOSED to have > > > > mod_rewrite enabled. > > > > Verify that. That seems to be the main issue here, and you'll save a > > > lot of time double checking that rather than assuming it. If it has > > > it, why are you not using it? > > > > > here is the link to the site:http://sportmarketingcenter.com > > > > > so far I've gotten the homepage to render the images and flash file > > > > but thats it (try clicking on one of the menu options) it will just go > > > > back to the start page with no layout defined. > > > > It was my understanding that this was a fresh cake install, but it > > > seems you're running a complete site - which is it? How are you > > > linking to your CSS in the layouts? > > > > -- John > > -- > (the old fart) the advice is free, the lack of crankiness will cost you > > - its a fine line between a real question and an idiot > > http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Help me set up cakephp on godaddy
I have client that I set up with a cake site about a year ago on godaddy but he changed the access so I can't see how I set it. He is going to send me the new passwords today, I should be able to try to help you soon Sam D On 5/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > css are all linked using $html->css > > Found out that if I edit webroot's .htaccess from > > RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] > to > RewriteRule ^(.*)$ /index.php?url=$1 [QSA,L] > > Images and flash will show up, but still controllers are a no-go > > On May 24, 11:11 am, "John David Anderson (_psychic_)" > <[EMAIL PROTECTED]> wrote: > > On May 24, 2007, at 10:04 AM, [EMAIL PROTECTED] wrote: > > > > > > > > > John, I already downloaded and installed a brand new copy of cake and > > > uploaded it. > > > After that I tried working with internal urls but they worked only if > > > I typed /site/index.php?controller > > > > That's how internal URLs work. > > > > example.com/index.php?/controller/action > > > > or > > > > example.com/index.php?url=/controller/action > > > > > Btw, im using godaddy's linux hosting with is SUPPOSED to have > > > mod_rewrite enabled. > > > > Verify that. That seems to be the main issue here, and you'll save a > > lot of time double checking that rather than assuming it. If it has > > it, why are you not using it? > > > > > here is the link to the site:http://sportmarketingcenter.com > > > > > so far I've gotten the homepage to render the images and flash file > > > but thats it (try clicking on one of the menu options) it will just go > > > back to the start page with no layout defined. > > > > It was my understanding that this was a fresh cake install, but it > > seems you're running a complete site - which is it? How are you > > linking to your CSS in the layouts? > > > > -- John > > > > > -- (the old fart) the advice is free, the lack of crankiness will cost you - its a fine line between a real question and an idiot http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Help me set up cakephp on godaddy
css are all linked using $html->css Found out that if I edit webroot's .htaccess from RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] to RewriteRule ^(.*)$ /index.php?url=$1 [QSA,L] Images and flash will show up, but still controllers are a no-go On May 24, 11:11 am, "John David Anderson (_psychic_)" <[EMAIL PROTECTED]> wrote: > On May 24, 2007, at 10:04 AM, [EMAIL PROTECTED] wrote: > > > > > John, I already downloaded and installed a brand new copy of cake and > > uploaded it. > > After that I tried working with internal urls but they worked only if > > I typed /site/index.php?controller > > That's how internal URLs work. > > example.com/index.php?/controller/action > > or > > example.com/index.php?url=/controller/action > > > Btw, im using godaddy's linux hosting with is SUPPOSED to have > > mod_rewrite enabled. > > Verify that. That seems to be the main issue here, and you'll save a > lot of time double checking that rather than assuming it. If it has > it, why are you not using it? > > > here is the link to the site:http://sportmarketingcenter.com > > > so far I've gotten the homepage to render the images and flash file > > but thats it (try clicking on one of the menu options) it will just go > > back to the start page with no layout defined. > > It was my understanding that this was a fresh cake install, but it > seems you're running a complete site - which is it? How are you > linking to your CSS in the layouts? > > -- John --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Help me set up cakephp on godaddy
On May 24, 2007, at 10:04 AM, [EMAIL PROTECTED] wrote: > > John, I already downloaded and installed a brand new copy of cake and > uploaded it. > After that I tried working with internal urls but they worked only if > I typed /site/index.php?controller That's how internal URLs work. example.com/index.php?/controller/action or example.com/index.php?url=/controller/action > Btw, im using godaddy's linux hosting with is SUPPOSED to have > mod_rewrite enabled. Verify that. That seems to be the main issue here, and you'll save a lot of time double checking that rather than assuming it. If it has it, why are you not using it? > here is the link to the site: http://sportmarketingcenter.com > > so far I've gotten the homepage to render the images and flash file > but thats it (try clicking on one of the menu options) it will just go > back to the start page with no layout defined. It was my understanding that this was a fresh cake install, but it seems you're running a complete site - which is it? How are you linking to your CSS in the layouts? -- John --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Help me set up cakephp on godaddy
John, I already downloaded and installed a brand new copy of cake and uploaded it. After that I tried working with internal urls but they worked only if I typed /site/index.php?controller Btw, im using godaddy's linux hosting with is SUPPOSED to have mod_rewrite enabled. here is the link to the site: http://sportmarketingcenter.com so far I've gotten the homepage to render the images and flash file but thats it (try clicking on one of the menu options) it will just go back to the start page with no layout defined. On May 24, 10:50 am, "John David Anderson (_psychic_)" <[EMAIL PROTECTED]> wrote: > On May 24, 2007, at 9:42 AM, [EMAIL PROTECTED] wrote: > > > > > Still have not been able to shed some light on this. > > > Ive tried: > > > - enabling internal rewrite and deleting all .htaccess files (only > > homepage will show, links dont work) > > - putting back all .htaccess files and disabling internal rewrite (no > > good, only text shows) > > - manually setting the ROOT and APP_DIR in webroot's index.php (no > > good either) > > And what happened? > > If you can't get mod_rewrite to go at all, I'd start off with a brand > new copy of CakePHP, and try enabling Cake's internal pretty URLs > (remove .htaccess and uncomment core.php line 41). > > -- John --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Help me set up cakephp on godaddy
On May 24, 2007, at 9:42 AM, [EMAIL PROTECTED] wrote: > > Still have not been able to shed some light on this. > > Ive tried: > > - enabling internal rewrite and deleting all .htaccess files (only > homepage will show, links dont work) > - putting back all .htaccess files and disabling internal rewrite (no > good, only text shows) > - manually setting the ROOT and APP_DIR in webroot's index.php (no > good either) And what happened? If you can't get mod_rewrite to go at all, I'd start off with a brand new copy of CakePHP, and try enabling Cake's internal pretty URLs (remove .htaccess and uncomment core.php line 41). -- John --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Help me set up cakephp on godaddy
Still have not been able to shed some light on this. Ive tried: - enabling internal rewrite and deleting all .htaccess files (only homepage will show, links dont work) - putting back all .htaccess files and disabling internal rewrite (no good, only text shows) - manually setting the ROOT and APP_DIR in webroot's index.php (no good either) I would really appreciate some help here guys --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---