Re: Cake PHP Migration Problems

2010-12-19 Thread Kevando
I found what my problem was.

I had an .htaccess file above the root directory and that was causing
the issue. Once I removed that and restarted MAMP, it worked fine.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en


Re: Cake PHP Migration Problems

2010-12-19 Thread Kevando
Cricket,

Thanks for the explanation, but I am still having the same problem..

My .htaccess files are exactly as you listed and I am still getting
the "max internal redirects" in my apache logs.

My instance of cakephp worked fine for me when I tested the setup with
one model. However...

When I deleted that model,controller and views - I recreated it
(through bake), along with several other models. Now I get this max
redirects error.

Any thoughts?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en


Re: Cake PHP Migration Problems

2010-10-21 Thread cricket
On Thu, Oct 21, 2010 at 8:07 AM, jmdesign
 wrote:
> Okay managed to get access to the error logs and they say the
> following:
>
> "mod_rewrite: maximum number of internal redirects reached. Assuming
> configuration error. Use 'RewriteOptions MaxRedirects' to increase the
> limit if neccessary."

You likely have a redirect loop, so increasing the number of redirects
probably won't help. I guess it's ~possible~ that the client's hosting
setup chews through a few redirects, so you could try setting it to
something like 20 (I can't remember the default, but 20 should be far
more than enough) and see what happens. If it does start working,
decrease the number until it breaks again. But I'd put my money on a
loop.

The way Cake's redirection works is through two .htaccess files--one
above app/ and one inside app/ dir. Both of these forward any requests
to that dir to app/webroot/index.php. It's that file that ultimately
handles all requests. A third .htaccess file inside app/webroot checks
if the requested file exists inside that dir (so you can directly
serve your css, js, or other html or php files). If it doesn't, the
request is passed to index.php inside webroot.

If mod_rewrite isn't available, there's an index.php inside the app
dir. that simply includes app/webroot/index.php. But it appears that
mod_rewrite is functioning for you.

Can you clarify something? You said that the web root should be inside
this london dir. But 'london' does not have to appear in the URL? Is
that correct?

Anyway, it could be that you're missing the top-level .htaccess file
(the one ABOVE app). It should have:


   RewriteEngine on
   RewriteRule^$ app/webroot/[L]
   RewriteRule(.*) app/webroot/$1 [L]


The one inside app should be:


RewriteEngine on
RewriteRule^$webroot/[L]
RewriteRule(.*) webroot/$1[L]
 

Finally, the one inside webroot:


RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]


Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en


Re: Cake PHP Migration Problems

2010-10-21 Thread jmdesign
Okay managed to get access to the error logs and they say the
following:

"mod_rewrite: maximum number of internal redirects reached. Assuming
configuration error. Use 'RewriteOptions MaxRedirects' to increase the
limit if neccessary."




On Oct 21, 9:42 am, jmdesign  wrote:
> Thanks for the replies, I thought it might be a doc route issue, I
> presume the doc route is this section of code:
>
>         define('APP_DIR', 'app');
>         define('DS', DIRECTORY_SEPARATOR);
>         define('ROOT', dirname(__FILE__));
>
>         define('WEBROOT_DIR', 'webroot');
>         define('WWW_ROOT', ROOT . DS . APP_DIR . DS . WEBROOT_DIR . DS);
>
> Does that look right if the site is in a sub-folder off the route? At
> the moment I can't access any parts of the site (internal server error
> on everything). I'm going to take a closer look around the clients
> control panel and see if he's missed the error logs.
>
> Thanks for the help so far.
>
> James
>
> On Oct 21, 4:52 am, rgreenphotodesign 
> wrote:
>
> > Could be a mod_rewrite issue or a doc root issue, check to make sure
> > the doc root is set to /path/to/yoursite/app/webroot/. A new server
> > will mean new database credentials as well, so make sure they've been
> > updated.
>
> > On Oct 20, 6:01 pm, cricket  wrote:
>
> > > On Wed, Oct 20, 2010 at 11:33 AM, jmdesign
>
> > >  wrote:
> > > > Hi All,
>
> > > > I'm having a problem with a Cake PHP site that I was hoping somebody
> > > > could help me with. I'm a front-end coder so don't normally get
> > > > involved with any nasty development work but a client has asked me to
> > > > look at something for them for a favour. I've taken a look but it's
> > > > way over my head and he's fallen out with the developer who originally
> > > > built it.
>
> > > > It's a Cake PHP site which he's recently moved from one server to
> > > > another, it was working fine on the old server but now all he's
> > > > getting are Internal Server Error messages (he doesn't have an error
> > > > log to check). The only thing I can think of is that it's something to
> > > > do with the folder structure on the new hosting account. On the old
> > > > one everything was located in the "public_html" folder whereas his new
> > > > setup is located in a sub-folder "london" (although the URL for the
> > > > site is stillwww.websitename.com).
>
> > > > Does this sound like it could be the cause of his problems or am I
> > > > barking up the wrong tree?!
>
> > > Maybe. What's the context of the errors? Can you get anything at all to 
> > > display?
>
> > > If he doesn't have access to the logs this must be a shared hosting
> > > account. Does he at least have Plesk or something similar? They
> > > usually provide some sort of log viewer. If not, have him contact the
> > > provider. If they won't allow him to see the logs they should be
> > > responsible for findingout what they say.
>
> > > Better yet, find a better provider.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en


Re: Cake PHP Migration Problems

2010-10-21 Thread jmdesign
Thanks for the replies, I thought it might be a doc route issue, I
presume the doc route is this section of code:

define('APP_DIR', 'app');
define('DS', DIRECTORY_SEPARATOR);
define('ROOT', dirname(__FILE__));

define('WEBROOT_DIR', 'webroot');
define('WWW_ROOT', ROOT . DS . APP_DIR . DS . WEBROOT_DIR . DS);

Does that look right if the site is in a sub-folder off the route? At
the moment I can't access any parts of the site (internal server error
on everything). I'm going to take a closer look around the clients
control panel and see if he's missed the error logs.

Thanks for the help so far.

James


On Oct 21, 4:52 am, rgreenphotodesign 
wrote:
> Could be a mod_rewrite issue or a doc root issue, check to make sure
> the doc root is set to /path/to/yoursite/app/webroot/. A new server
> will mean new database credentials as well, so make sure they've been
> updated.
>
> On Oct 20, 6:01 pm, cricket  wrote:
>
> > On Wed, Oct 20, 2010 at 11:33 AM, jmdesign
>
> >  wrote:
> > > Hi All,
>
> > > I'm having a problem with a Cake PHP site that I was hoping somebody
> > > could help me with. I'm a front-end coder so don't normally get
> > > involved with any nasty development work but a client has asked me to
> > > look at something for them for a favour. I've taken a look but it's
> > > way over my head and he's fallen out with the developer who originally
> > > built it.
>
> > > It's a Cake PHP site which he's recently moved from one server to
> > > another, it was working fine on the old server but now all he's
> > > getting are Internal Server Error messages (he doesn't have an error
> > > log to check). The only thing I can think of is that it's something to
> > > do with the folder structure on the new hosting account. On the old
> > > one everything was located in the "public_html" folder whereas his new
> > > setup is located in a sub-folder "london" (although the URL for the
> > > site is stillwww.websitename.com).
>
> > > Does this sound like it could be the cause of his problems or am I
> > > barking up the wrong tree?!
>
> > Maybe. What's the context of the errors? Can you get anything at all to 
> > display?
>
> > If he doesn't have access to the logs this must be a shared hosting
> > account. Does he at least have Plesk or something similar? They
> > usually provide some sort of log viewer. If not, have him contact the
> > provider. If they won't allow him to see the logs they should be
> > responsible for findingout what they say.
>
> > Better yet, find a better provider.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en


Re: Cake PHP Migration Problems

2010-10-21 Thread jmdesign
Thanks for the replies, I thought it might be a doc route issue, I
presume the doc route is this section of code:

define('APP_DIR', 'app');
define('DS', DIRECTORY_SEPARATOR);
define('ROOT', dirname(__FILE__));

define('WEBROOT_DIR', 'webroot');
define('WWW_ROOT', ROOT . DS . APP_DIR . DS . WEBROOT_DIR . DS);

Does that look right if the site is in a sub-folder off the route? At
the moment I can't access any parts of the site (internal server error
on everything). I'm going to take a closer look around the clients
control panel and see if he's missed the error logs.

Thanks for the help so far.

James


On Oct 21, 4:52 am, rgreenphotodesign 
wrote:
> Could be a mod_rewrite issue or a doc root issue, check to make sure
> the doc root is set to /path/to/yoursite/app/webroot/. A new server
> will mean new database credentials as well, so make sure they've been
> updated.
>
> On Oct 20, 6:01 pm, cricket  wrote:
>
> > On Wed, Oct 20, 2010 at 11:33 AM, jmdesign
>
> >  wrote:
> > > Hi All,
>
> > > I'm having a problem with a Cake PHP site that I was hoping somebody
> > > could help me with. I'm a front-end coder so don't normally get
> > > involved with any nasty development work but a client has asked me to
> > > look at something for them for a favour. I've taken a look but it's
> > > way over my head and he's fallen out with the developer who originally
> > > built it.
>
> > > It's a Cake PHP site which he's recently moved from one server to
> > > another, it was working fine on the old server but now all he's
> > > getting are Internal Server Error messages (he doesn't have an error
> > > log to check). The only thing I can think of is that it's something to
> > > do with the folder structure on the new hosting account. On the old
> > > one everything was located in the "public_html" folder whereas his new
> > > setup is located in a sub-folder "london" (although the URL for the
> > > site is stillwww.websitename.com).
>
> > > Does this sound like it could be the cause of his problems or am I
> > > barking up the wrong tree?!
>
> > Maybe. What's the context of the errors? Can you get anything at all to 
> > display?
>
> > If he doesn't have access to the logs this must be a shared hosting
> > account. Does he at least have Plesk or something similar? They
> > usually provide some sort of log viewer. If not, have him contact the
> > provider. If they won't allow him to see the logs they should be
> > responsible for findingout what they say.
>
> > Better yet, find a better provider.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en


Re: Cake PHP Migration Problems

2010-10-21 Thread jmdesign
Thanks for the replies, I thought it might be a doc route issue, I
presume the doc route is this section of code:

define('APP_DIR', 'app');
define('DS', DIRECTORY_SEPARATOR);
define('ROOT', dirname(__FILE__));

define('WEBROOT_DIR', 'webroot');
define('WWW_ROOT', ROOT . DS . APP_DIR . DS . WEBROOT_DIR . DS);

Does that look right if the site is in a sub-folder off the route? At
the moment I can't access any parts of the site (internal server error
on everything). I'm going to take a closer look around the clients
control panel and see if he's missed the error logs.

Thanks for the help so far.

James


On Oct 21, 4:52 am, rgreenphotodesign 
wrote:
> Could be a mod_rewrite issue or a doc root issue, check to make sure
> the doc root is set to /path/to/yoursite/app/webroot/. A new server
> will mean new database credentials as well, so make sure they've been
> updated.
>
> On Oct 20, 6:01 pm, cricket  wrote:
>
> > On Wed, Oct 20, 2010 at 11:33 AM, jmdesign
>
> >  wrote:
> > > Hi All,
>
> > > I'm having a problem with a Cake PHP site that I was hoping somebody
> > > could help me with. I'm a front-end coder so don't normally get
> > > involved with any nasty development work but a client has asked me to
> > > look at something for them for a favour. I've taken a look but it's
> > > way over my head and he's fallen out with the developer who originally
> > > built it.
>
> > > It's a Cake PHP site which he's recently moved from one server to
> > > another, it was working fine on the old server but now all he's
> > > getting are Internal Server Error messages (he doesn't have an error
> > > log to check). The only thing I can think of is that it's something to
> > > do with the folder structure on the new hosting account. On the old
> > > one everything was located in the "public_html" folder whereas his new
> > > setup is located in a sub-folder "london" (although the URL for the
> > > site is stillwww.websitename.com).
>
> > > Does this sound like it could be the cause of his problems or am I
> > > barking up the wrong tree?!
>
> > Maybe. What's the context of the errors? Can you get anything at all to 
> > display?
>
> > If he doesn't have access to the logs this must be a shared hosting
> > account. Does he at least have Plesk or something similar? They
> > usually provide some sort of log viewer. If not, have him contact the
> > provider. If they won't allow him to see the logs they should be
> > responsible for findingout what they say.
>
> > Better yet, find a better provider.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en


Re: Cake PHP Migration Problems

2010-10-21 Thread jmdesign
Thanks for the replies. I presume the doc route is this section of
code specified in the index.php file:

define('APP_DIR', 'app');
define('DS', DIRECTORY_SEPARATOR);
define('ROOT', dirname(__FILE__));

define('WEBROOT_DIR', 'webroot');
define('WWW_ROOT', ROOT . DS . APP_DIR . DS . WEBROOT_DIR . DS);




On Oct 21, 4:52 am, rgreenphotodesign 
wrote:
> Could be a mod_rewrite issue or a doc root issue, check to make sure
> the doc root is set to /path/to/yoursite/app/webroot/. A new server
> will mean new database credentials as well, so make sure they've been
> updated.
>
> On Oct 20, 6:01 pm, cricket  wrote:
>
> > On Wed, Oct 20, 2010 at 11:33 AM, jmdesign
>
> >  wrote:
> > > Hi All,
>
> > > I'm having a problem with a Cake PHP site that I was hoping somebody
> > > could help me with. I'm a front-end coder so don't normally get
> > > involved with any nasty development work but a client has asked me to
> > > look at something for them for a favour. I've taken a look but it's
> > > way over my head and he's fallen out with the developer who originally
> > > built it.
>
> > > It's a Cake PHP site which he's recently moved from one server to
> > > another, it was working fine on the old server but now all he's
> > > getting are Internal Server Error messages (he doesn't have an error
> > > log to check). The only thing I can think of is that it's something to
> > > do with the folder structure on the new hosting account. On the old
> > > one everything was located in the "public_html" folder whereas his new
> > > setup is located in a sub-folder "london" (although the URL for the
> > > site is stillwww.websitename.com).
>
> > > Does this sound like it could be the cause of his problems or am I
> > > barking up the wrong tree?!
>
> > Maybe. What's the context of the errors? Can you get anything at all to 
> > display?
>
> > If he doesn't have access to the logs this must be a shared hosting
> > account. Does he at least have Plesk or something similar? They
> > usually provide some sort of log viewer. If not, have him contact the
> > provider. If they won't allow him to see the logs they should be
> > responsible for findingout what they say.
>
> > Better yet, find a better provider.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en


Re: Cake PHP Migration Problems

2010-10-20 Thread rgreenphotodesign
Could be a mod_rewrite issue or a doc root issue, check to make sure
the doc root is set to /path/to/yoursite/app/webroot/. A new server
will mean new database credentials as well, so make sure they've been
updated.


On Oct 20, 6:01 pm, cricket  wrote:
> On Wed, Oct 20, 2010 at 11:33 AM, jmdesign
>
>
>
>
>
>  wrote:
> > Hi All,
>
> > I'm having a problem with a Cake PHP site that I was hoping somebody
> > could help me with. I'm a front-end coder so don't normally get
> > involved with any nasty development work but a client has asked me to
> > look at something for them for a favour. I've taken a look but it's
> > way over my head and he's fallen out with the developer who originally
> > built it.
>
> > It's a Cake PHP site which he's recently moved from one server to
> > another, it was working fine on the old server but now all he's
> > getting are Internal Server Error messages (he doesn't have an error
> > log to check). The only thing I can think of is that it's something to
> > do with the folder structure on the new hosting account. On the old
> > one everything was located in the "public_html" folder whereas his new
> > setup is located in a sub-folder "london" (although the URL for the
> > site is stillwww.websitename.com).
>
> > Does this sound like it could be the cause of his problems or am I
> > barking up the wrong tree?!
>
> Maybe. What's the context of the errors? Can you get anything at all to 
> display?
>
> If he doesn't have access to the logs this must be a shared hosting
> account. Does he at least have Plesk or something similar? They
> usually provide some sort of log viewer. If not, have him contact the
> provider. If they won't allow him to see the logs they should be
> responsible for findingout what they say.
>
> Better yet, find a better provider.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en


Re: Cake PHP Migration Problems

2010-10-20 Thread cricket
On Wed, Oct 20, 2010 at 11:33 AM, jmdesign
 wrote:
> Hi All,
>
> I'm having a problem with a Cake PHP site that I was hoping somebody
> could help me with. I'm a front-end coder so don't normally get
> involved with any nasty development work but a client has asked me to
> look at something for them for a favour. I've taken a look but it's
> way over my head and he's fallen out with the developer who originally
> built it.
>
> It's a Cake PHP site which he's recently moved from one server to
> another, it was working fine on the old server but now all he's
> getting are Internal Server Error messages (he doesn't have an error
> log to check). The only thing I can think of is that it's something to
> do with the folder structure on the new hosting account. On the old
> one everything was located in the "public_html" folder whereas his new
> setup is located in a sub-folder "london" (although the URL for the
> site is still www.websitename.com).
>
> Does this sound like it could be the cause of his problems or am I
> barking up the wrong tree?!

Maybe. What's the context of the errors? Can you get anything at all to display?

If he doesn't have access to the logs this must be a shared hosting
account. Does he at least have Plesk or something similar? They
usually provide some sort of log viewer. If not, have him contact the
provider. If they won't allow him to see the logs they should be
responsible for findingout what they say.

Better yet, find a better provider.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en