On Jan 23, 2008 7:40 AM, Novice Programmer <[EMAIL PROTECTED]> wrote:
> I am running on a shared server.. so /etc/logs is not accesible to me. dont
> know if cake also makes some log or some thing like that some where?
>

Cake's logging mechanism works like so (in your controller):

// writes to /tmp/logs/error.log
$this->log('your msg');

// writes to /tmp/logs/debug.log
$this->log('your msg', LOG_DEBUG);

However, in your case, neither of these will help because Apache is
throwing a 500 error, which means that your Cake app hasn't done
anything. Your only recourse is to check the Apache error log. As you
don't have access to that you've got a bit of a problem.

But you can be confident that your Cake app isn't the cause. My guess
is that you've got something amiss in one of your .htaccess files,
which Apache uses, not Cake. Try backing up them up (the one in
webroot and the other one at the same level as webroot dir) and
replace them with clean, untouched copies .

Of course, if you haven't made any changes to either of these then
that's not going to help. But, keep in mind that a 500 error is
probably not being caused by something like a syntax error in your
code. It's more likely something that Apache is tripping on before it
even passes the request to Cake (or even PHP).

I'd also suggest that you install a webserver on your desktop machine
so that you can get through (most of) the bugs before uploading to a
remote box you have little access to. The LAMP/WAMP setups seem to be
popular and (mostly) pretty easy to install.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to