phpmyadmin exhausting memory. Isn't Linod 360 sufficient?

I have a linode 360. I am running lighttpd+php5+mysql-server. After I first installed phpmyadmin, I got a blank screen. So I changed php.ini to have:

display_errors = On

log_errors = Off

Now, when I run phpmyadmin, I get the following Fatal Error:

Fatal error: Allowed memory size of 262144 bytes exhausted (tried to allocate 311296 bytes) in /usr/share/phpmyadmin/libraries/common.inc.php on line 630

However, my memory_limit in php.ini is

memory_limit = 64MB

So why does it say my allowed memory size if 262144 bytes. It should say 64MB (64 x 1024 x 1024)?

4 Replies

Drop the last B from memory_limit = 64MB. Restart lighttpd.

Just one example of how stupid PHP can be 8)

Thanks very much for the reply. Why in the world would someone (PHP or Ubuntu?) leave a comment such as this:

memory_limit = 64MB ; Maximum amount of memory a script may consume(16MB)

in the php.ini file? Anyway, really appreciate the feedback. I changed it to

memory_limit = 64M ; Maximum amount of memory a script may consume(16MB)

and phpmyadmin works just fine.

Or use HeidiSQL or SQLyog over SSH.

Way more secure and it doesn't eat up 1/6 of your memory just for a server based SQL GUI.

by the way, the HeidiSQL idea is great and worked great…I will be uninstalling phpMyAdmin right away. Here is a great link on how to get HeidiSQL up and running using a tunnel through putty (ssh)

http://www.heidisql.com/forum.php?t=167

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct