CakePHP 500 Server Internal Error

I get the following error

Internal Server Error

The server detected an internal error or incorrect configuration and your request failed.

Contact the server administrator, webmaster@strivemedicare.in and inform them of the time when the error occurred, and all that you could have led to the error.

Additional information about this error may be available if a server error logs in.

Also, in the internal error error, 500 internal servers are trying to use ErrorDocument to process the request.

We use DreamHost and the link to the URL is http://strivemedicare.in/ 
+6
source share
5 answers

CakePHP may have the following reasons for 500 Internal Server Error :

  • Your .htaccess files are incorrect. See here for more details.
  • Folder permissions are invalid. If CakePHP is a Group Writable ie 777 application, then the web server provides a 500 security bug.
  • You are missing a database connection. Correct the database configuration according to Webhost, since in most cases the local and production server databases have different details.
  • Delete the contents of your tmp folder. It’s best to delete the cache if you move the application from one place to another.
  • For testing purposes, debugging should be like Configure::write('debug',2);
  • If you failed to check your Apache error log. If you are using Linux /var/log/apache2/error.log

Hope this helps, thanks!

+15
source

make sure that when you assign Auth to $components in the AppController , define

 public function beforeFilter(){ //$this->Auth->loginAction = array('controller' => 'users', 'action' => 'login'); $this->Auth->allow('index'); } 
0
source

You must enable the intl extension to use CakePHP.
You get an error in /var/www/html/config/bootstrap.php on line 38

0
source

On a CentOS server, I usually fix this problem using chmod -R 755 public_html from the current cPanel user interface.

For instance:

  chmod -R 755 /home/{cp_username}/public_html/ 

There is also an alternative method executed using the cPanel GUI:

enter image description here

0
source

Just enable the "mbstring" and "intl" modules in the host panel.

0
source

All Articles