i am getting the following error
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@strivemedicare.in and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
We use DreamHost and the link to the URL is http://strivemedicare.in/
There can be following reasons for 500 Internal Server Error
in CakePHP application:
- Your .htaccess files are not correct. See Here for details
- Permissions of folders are not correct. If CakePHP app is Group Writable i.e.
777
then webserver gives500
error for safety. - You are missing Database Connection. Correct database configuration according to Webhost because most of times local and production server databases have different details.
- Delete the content of your
tmp
folder. It is best practice that you must delete cache if you move your application from one place to another. - For testing purpose debug should be on like
Configure::write('debug',2);
- If not succeeded check your Apache Error Log. If using Linux
/var/log/apache2/error.log
Hope It Helps, Thanks!!
check that when you assign Auth in your $components
in AppController
, define
public function beforeFilter(){
//$this->Auth->loginAction = array('controller' => 'users', 'action' => 'login');
$this->Auth->allow('index');
}
You must enable the intl extension to use CakePHP.
You are getting error in /var/www/html/config/bootstrap.php on line 38
Just enable 'mbstring' and 'intl' modules in your host panel.
来源:https://stackoverflow.com/questions/22242863/cakephp-500-internal-server-error