Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CakePHP 500 Internal Server Error

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, [email protected] 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/
like image 341
Harsha M V Avatar asked Mar 07 '14 06:03

Harsha M V


2 Answers

There can be following reasons for 500 Internal Server Error in CakePHP application:

  1. Your .htaccess files are not correct. See Here for details
  2. Permissions of folders are not correct. If CakePHP app is Group Writable i.e. 777 then webserver gives 500 error for safety.
  3. You are missing Database Connection. Correct database configuration according to Webhost because most of times local and production server databases have different details.
  4. 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.
  5. For testing purpose debug should be on like Configure::write('debug',2);
  6. If not succeeded check your Apache Error Log. If using Linux /var/log/apache2/error.log

Hope It Helps, Thanks!!

like image 80
عثمان غني Avatar answered Sep 19 '22 01:09

عثمان غني


Just enable 'mbstring' and 'intl' modules in your host panel.

like image 23
Richelly Italo Avatar answered Sep 21 '22 01:09

Richelly Italo