skip to Main Content

enter image description here

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.

3

Answers


  1. 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.

    Login or Signup to reply.
  2. If not fixed by the above then very likely to be missing json support on Cent OS 8

    yum install php-json
    

    I spent ages trying to figure out why following everyone’s instructions on how to install phpmyadmin which resulted "in this page isn’t working" hopefully this will save someone’s time!

    Login or Signup to reply.
  3. For me I just started apache and then refresh phpmyadmin tab boob it works

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search