A
A
alex_io2017-10-19 10:42:31
Kohana
alex_io, 2017-10-19 10:42:31

Why is Kohana throwing a 500 error?

I'm currently using the Kohana framework. When developing on xampp, no errors occur on the computer, but when transferring to a hosting via one of the routes, I get an error 500. What could be the problem?
Contents of .htaccess file
# Turn on URL rewriting
RewriteEngine On
# Installation directory
RewriteBase /
# Protect hidden files from being viewed
Order Deny,Allow
Deny From All
# Protect application and system files from being viewed
RewriteRule ^(?:application|modules|system) \b.* index.php/$0 [L]
# Allow any files or directories that exist to be displayed directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Rewrite all other URLs to index.php/URL
RewriteRule .* index.php/$0 [PT]
Route for which the error is thrown:

Route::set('api', 'api/<controller>/<action>')
->defaults(array(
  'directory'  => 'api',
  'action' => 'index'
));

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Fedorov, 2017-10-19
@Maksclub

A problem with the rights of some directory
does kohana have no debugger?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question