Below is my apache2 php.ini
log file line which shows Fatal error.
[Thu Jan 23 11:21:04.634143 2020] [php7:error] [pid 9929] [client ::1:56044] PHP Fatal error: Allowed memory size of 2097152 bytes exhausted (tried to allocate 65536 bytes) in /usr/share/phpmyadmin/libraries/common.inc.php on line 144
I have tried to solve this issue by increasing memory_limit by 4gb but still i am getting this error and it won’t open the PHPMYADMIN.
Also when i am running any Project code then it runs properly if any file does not containg exit()
OR die()
. If i wrote exit()
OR die()
in any file then the project stops working.
I don’t understand what is the issue.
Advertisement
Answer
check your php.ini in apache config check below
memory_limit = 256M upload_max_size = 64M post_max_size = 64M upload_max_filesize = 64M max_execution_time = 300 max_input_time = 1000
or
you can set memory_limit = -1 to resolve this issues.