0 votes
1.4k views
in Drupal by (26.1k points)
edited
Fixing server errors in Drupal

1 Answer

0 votes
by (26.1k points)
selected by
 
Best answer
Error 500Method two

Error 500

One of the options to find out the cause of error 500 is to write the following in the executable script

<?php
ini_set('display_errors', 1);
error_reporting(E_ALL);
?>

"Fatal error: Allowed memory size of XXX bytes exhausted"

In the PHP settings file (php.ini) we write:

memory_limit = 100M

Usually for mere mortals this file is not allowed to edit. It all depends on your hosting provider. And you have nothing to do there.

Method two

In the site settings file (.htaccess) we write:

php_value memory_limit 100M

Method threeWith a certain server configuration, you may receive a 500 - Internal Server Error.

In the body of your script (for example, config.php) we write:

The easiest and safest way to solve the problem. It helps me out all the time

<?php

ini_set('memory_limit', '100M');

ini_set('max_execution_time', 300);

?>.

...