1

I'm having a problem with my CakePHP installation.

I was developing it in a subfolder and it was working fine. But, when I move it into the root folder, it's showing 500 Internal Server Error.

For example, it was working fine on: mysite.com/demo/ But, when I move it into the same server root, i.e. mysite.com/ it's showing the error.

CakePHP Version: 2.2

As it was working fine on /demo/ folder, I think the mod_rewrite etc. are working fine, so that confused what's happening with the root folder.

Any Idea?

Thanks in advance.

2
  • 5
    You don't have to guess. Just find your web server's error log. Commented Nov 20, 2013 at 9:44
  • 2
    You can find the CakePHP logs in app/tmp/logs Commented Nov 20, 2013 at 12:13

1 Answer 1

5

Please check .htaccess file and change if RewriteBase /folder/subfolder to RewriteBase /

like below

<IfModule mod_rewrite.c>
   RewriteEngine on
   RewriteBase /
   RewriteRule    ^$ app/webroot/    [L]
   RewriteRule    (.*) app/webroot/$1 [L]
</IfModule>

and also On the debug mode (\app\Config\core.php) Configure::write('debug',2); for clearing cache for a moment and then off Configure::write('debug',0);

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.