I've recently installed lighttpd with php5 on my WL500G Premium according to this tutorial http://www.rabinovich.org/ymheebcex/ and everything seems just fine when looking at phpinfo();
Troubles come, though, when I try to resize images using imagecopyresample() from gd library. I realize that it's not a very good idea to resize images on something running at 266Mhz, but I need it very rarely, so I hoped it could work if I set script timeout long enough.
The problem is that when I try to resize .png image, after couple of seconds, I get following message on root's console:
Allowed memory size of 8 bytes exhausted (tried to allocate 256 bytes)
If I immediately run free command, I get this result:
free
total used free shared buffers
Mem: 30512 21488 9024 0 2180
Swap: 4016208 0 4016208
Total: 4046720 21488 4025232
The memory limit in php is set to 64M.
Moreover, when I try to resize .jpeg file, I immediately get the following error:
(mod_cgi.c.584) cgi died, pid: 630
Can someone guess what might be the reason of these errors?